[Japanese page]

What is this?

On many platforms terminal emulators need some privilege for some functionalities. Especially, they need root privilege on BSDs to prevent other users from peeking user's input. With libspt you can drop all privileges of your terminal emulator. Additionally libspt saves terminal emulator writers many portability related headaches. (Yes, there is many headaches.)

From libspt-0.2 it also provides a minimal termios(termio/sgtty) wrapper functionality. It does not support any customization nor complex settings but enables you to implement easiest functionalities portably with least work.

How it works?

Libspt invokes one helper program "sptagent". It is a setuid root program. Its job is chown of pty and utmp logging. It is similar to SysV pt_chmod or Linux utempter but much more intelligent.

Documentations

See manpage for API.

Download

libspt-1.1.tar.bz2
libspt-1.0.tar.bz2
libspt-0.3.tar.bz2(alpha)
libspt-0.2.1.tar.bz2(alpha)
libspt-0.2.tar.bz2(alpha)
libspt-0.1.tar.bz2(alpha)

Patches

You need to run autoconf after applying these patches. mlterm-2.8.0-libspt.diff rxvt-2.7.10-libspt.diff

Bug report

mail me.

AIDA Shinra shinra@j10n.org