BSD Ports

sysutils/libptytty 2.0 MidnightBSD

OS independent and secure pseudo-tty management

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
gpl2
Categories
sysutils

Description

Libptytty is a small library that offers pseudo-tty management in an OS-independent way. It was created out of frustration over the many differences of pty/tty handling in different operating systems for the use inside "rxvt-unicode".

In addition to offering mere pty/tty management, it also offers session database support (utmp and optional wtmp/lastlog updates for login shells).

It also supports fork'ing after startup and dropping privileges in the calling process, so in case the calling process gets compromised by the user starting the program there is less to gain, as only the helper process runs with privileges (e.g. setuid/setgid), which reduces the area of attack immensely.

Libptytty is written in C++, but it also offers a C-only API.

In the other systems

SystemPortVersion
MidnightBSDsysutils/libptytty2.0
FreeBSDsysutils/libptytty2.0
OpenBSDsysutils/libptytty2.0
NetBSDwip/macos-libptytty2.0
DragonFlysysutils/libptytty2.0
HardenedBSDsysutils/libptytty2.0
GhostBSDsysutils/libptytty2.0

Install

Binary package:

mport install libptytty

From mports:

cd /usr/mports/sysutils/libptytty && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libptytty>0:sysutils/libptytty
LIB_DEPENDS=	libptytty.so:sysutils/libptytty

Dependencies

Required by 1

Configuration

Options name: sysutils_libptytty

OptionDefaultDescription
DOCSoff
EXAMPLESoff
USES
cmake
Service scripts
none

Files

Manual pages 1
  • libptytty(3)
pkg-plist 5
  • include/libptytty.h
  • lib/libptytty.so
  • lib/libptytty.so.0
  • libdata/pkgconfig/libptytty.pc
  • share/man/man3/libptytty.3.gz
distinfo 1
FileSizeSHA256
libptytty-2.0.tar.gz456738033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7
Master sites 1
  • http://dist.schmorp.de/libptytty/%SUBDIR%/