mirror of https://github.com/mkerrisk/man-pages
tty_ioctl.4: Rework text on root to discuss just in terms of capabilities
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c323f3a1d2
commit
cb476d8850
|
@ -90,9 +90,9 @@ structure of the terminal.
|
||||||
Sets the locking status of the
|
Sets the locking status of the
|
||||||
.I termios
|
.I termios
|
||||||
structure of the terminal.
|
structure of the terminal.
|
||||||
Only root (more precisely: a process with the
|
Only a process with the
|
||||||
.BR CAP_SYS_ADMIN
|
.BR CAP_SYS_ADMIN
|
||||||
capability) can do this.
|
capability can do this.
|
||||||
.SS Get and set window size
|
.SS Get and set window size
|
||||||
Window sizes are kept in the kernel, but not used by the kernel
|
Window sizes are kept in the kernel, but not used by the kernel
|
||||||
(except in the case of virtual consoles, where the kernel will
|
(except in the case of virtual consoles, where the kernel will
|
||||||
|
@ -223,9 +223,9 @@ to the given terminal.
|
||||||
If that was a pseudoterminal master, send it to the slave.
|
If that was a pseudoterminal master, send it to the slave.
|
||||||
In Linux before version 2.6.10,
|
In Linux before version 2.6.10,
|
||||||
anybody can do this as long as the output was not redirected yet;
|
anybody can do this as long as the output was not redirected yet;
|
||||||
since version 2.6.10, only root (a process with the
|
since version 2.6.10, only a process with the
|
||||||
.BR CAP_SYS_ADMIN
|
.BR CAP_SYS_ADMIN
|
||||||
capability) may do this.
|
capability may do this.
|
||||||
If output was redirected already
|
If output was redirected already
|
||||||
.B EBUSY
|
.B EBUSY
|
||||||
is returned,
|
is returned,
|
||||||
|
@ -245,9 +245,9 @@ controlling terminal already.
|
||||||
If this terminal is already the controlling terminal
|
If this terminal is already the controlling terminal
|
||||||
of a different session group then the ioctl fails with
|
of a different session group then the ioctl fails with
|
||||||
.BR EPERM ,
|
.BR EPERM ,
|
||||||
unless the caller is root (more precisely: has the
|
unless the caller has the
|
||||||
.BR CAP_SYS_ADMIN
|
.BR CAP_SYS_ADMIN
|
||||||
capability) and
|
capability and
|
||||||
.I arg
|
.I arg
|
||||||
equals 1, in which case the terminal is stolen, and all processes that had
|
equals 1, in which case the terminal is stolen, and all processes that had
|
||||||
it as controlling terminal lose it.
|
it as controlling terminal lose it.
|
||||||
|
@ -292,7 +292,7 @@ No further
|
||||||
operations on the terminal are permitted.
|
operations on the terminal are permitted.
|
||||||
(They will fail with
|
(They will fail with
|
||||||
.BR EBUSY ,
|
.BR EBUSY ,
|
||||||
except for root, that is, a process with the
|
except for a process with the
|
||||||
.BR CAP_SYS_ADMIN
|
.BR CAP_SYS_ADMIN
|
||||||
capability.)
|
capability.)
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in New Issue