diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-15 16:33:53 +1300 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-15 16:41:24 +1300 |
commit | b6e7016e54079ae689bd2e0f3adc7013c6099acb (patch) | |
tree | 35302da7244ca935effd10f48c29dbc9dfa8a774 | |
parent | 38931a4d3c262750313029a4144fb9ff47f37ff7 (diff) | |
download | man-pages-b6e7016e54079ae689bd2e0f3adc7013c6099acb.tar.gz |
ioperm.2: Permissions are inherited across fork(2)
See https://bugzilla.kernel.org/show_bug.cgi?id=99911
Reported-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man2/ioperm.2 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/man2/ioperm.2 b/man2/ioperm.2 index 91d081c09d..6171e1c870 100644 --- a/man2/ioperm.2 +++ b/man2/ioperm.2 @@ -63,11 +63,9 @@ system call had to be used (with a argument of 3). Since Linux 2.6.8, 65,536 I/O ports can be specified. -Permissions are not inherited by the child created by -.BR fork (2); -following a +Permissions are inherited by the child created by .BR fork (2) -the child must turn on those permissions that it needs. +(but see NOTES). Permissions are preserved across .BR execve (2); this is useful for giving port access permissions to unprivileged @@ -107,6 +105,10 @@ The .I /proc/ioports file shows the I/O ports that are currently allocated on the system. +Before Linux 2.4, +permissions were not inherited by a child created by +.BR fork (2). + Glibc has an .BR ioperm () prototype both in |