tty_ioctl.4: Explain capability requirements for TIOCCONS

Explain capability requirements for TIOCCONS, and describe
changes in 2.6.10 relating to capabilities.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-10-16 17:31:09 +02:00
parent c0b7505909
commit b5fa38a31f
1 changed files with 7 additions and 3 deletions

View File

@ -216,11 +216,15 @@ or
.I /dev/tty0
to the given tty.
If that was a pty master, send it to the slave.
Anybody can do this as long as the output was not redirected yet.
If it was redirected already
In Linux before version 2.6.10,
anybody can do this as long as the output was not redirected yet;
since version 2.6.10, only root (a process with the
.BR CAP_SYS_ADMIN
capability) may do this.
If output was redirected already
.B EBUSY
is returned,
but root may stop redirection by using this ioctl with
but redirection can be stopped by using this ioctl with
.I fd
pointing at
.I /dev/console