diff options
author | mjg <mjg@FreeBSD.org> | 2014-07-06 22:58:53 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-07-06 22:58:53 +0000 |
commit | 134eeca7553ded4c64041465105cebf1c444c9ca (patch) | |
tree | 838db6b94fe7c8ad442a8406f6c522f0bab4be9f /sys/kern/kern_exec.c | |
parent | c9bb8da01167a7b5ceaa16259e6b6bab943b7ea9 (diff) | |
download | FreeBSD-src-134eeca7553ded4c64041465105cebf1c444c9ca.zip FreeBSD-src-134eeca7553ded4c64041465105cebf1c444c9ca.tar.gz |
MFC r267760:
Tidy up fd-related functions called by do_execve
o assert in each one that fdp is not shared
o remove unnecessary NULL checks - all userspace processes have fdtables
and kernel processes cannot execve
o remove comments about the danger of fd_ofiles getting reallocated - fdtable
is not shared and fd_ofiles could be only reallocated if new fd was about to be
added, but if that was possible the code would already be buggy as setugidsafety
work could be undone
Diffstat (limited to 'sys/kern/kern_exec.c')
0 files changed, 0 insertions, 0 deletions