From ef828a01d866574a3d1206a2bdb7cc5a863b6918 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 22 Jul 2006 14:26:12 +0000 Subject: [PATCH] Noted effect of fork() and execve(). --- man2/chroot.2 | 8 ++++++++ man2/umask.2 | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/man2/chroot.2 b/man2/chroot.2 index 4cad7e9d0..7c7d7964e 100644 --- a/man2/chroot.2 +++ b/man2/chroot.2 @@ -108,9 +108,17 @@ SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions. X/OPEN does not document EIO, ENOMEM or EFAULT error conditions. This interface is marked as legacy by X/OPEN. .SH NOTES +A child process created via +.BR fork (2) +inherits its parent's root directory. +The root directory is left unchanged by +.BR execve (2). + FreeBSD has a stronger .BR jail () system call. +.\" FIXME -- eventually say something about containers, +.\" virtual servers, etc.? .SH "SEE ALSO" .BR chdir (2), .BR path_resolution (2) diff --git a/man2/umask.2 b/man2/umask.2 index df1b1d41d..ffb02b997 100644 --- a/man2/umask.2 +++ b/man2/umask.2 @@ -86,6 +86,12 @@ resulting file will be: .SH "RETURN VALUE" This system call always succeeds and the previous value of the mask is returned. +.SH NOTES +A child process created via +.BR fork (2) +inherits its parent's umask. +The umask is left unchanged by +.BR execve (2). .SH "CONFORMING TO" SVr4, SVID, POSIX, X/OPEN, 4.3BSD .SH "SEE ALSO"