libptytty 2.0
Channel: guix
Home page: https://github.com/yusiwen/libptytty
Licenses: GPL 2+
Synopsis: Portable, secure PTY/TTY and @file{utmp}/@file{wtmp}/@file{lastlog} handling
Description:
Libptytty is a small C/C++ library to manage pseudo-ttys in a uniform way, created out of frustration over the many differences of PTY/TTY handling in different operating systems.
In addition to mere PTY/TTY management, it supports updating the session database at utmp
, and wtmp
/lastlog
for login shells.
It also supports fork
ing after start-up and dropping privileges in the calling process. This reduces the potential attack surface: if the calling process were to be compromised by the user starting the program, there would be less to gain, as only the helper process is running with privileges (e.g., setuid
/setgid
).
Total results: 1