https://bugzilla.novell.com/show_bug.cgi?id=447289
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=447289#c17
--- Comment #17 from Dr. Werner Fink 2009-01-23 05:34:41 MST ---
IMHo this kernel is broken ... it could be OK to fail TIOCGSID for with
ENOTTY if the terminal is not a master pseudo-terminal and not our controlling
terminal. In this case the TIOCSCTTY should succeed, from the manual page
tty_ioctl(4):
Controlling terminal
TIOCSCTTY int arg
Make the given terminal the controlling terminal of the calling
process. The calling process must be a session leader and not
have a controlling terminal already. If this terminal is already
the controlling terminal of a different session group then the
ioctl fails with EPERM, unless the caller is root (more
precisely: has the CAP_SYS_ADMIN capability) and arg equals
1,
in which case the terminal is stolen, and all processes that had
it as controlling terminal lose it.
...
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.