aboutsummaryrefslogtreecommitdiff
path: root/lib/libsmutil
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2021-07-01 08:11:11 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2021-07-01 08:42:07 +0000
commitdb8d680ebe9b12c7d9e0eb8bf9940fcef709f5ec (patch)
tree6b79578d1151497014969da1fda0b35f72c4c7db /lib/libsmutil
parent93c3453f11c9bc99ae482565b3a3f29b39ab8f62 (diff)
downloadsrc-db8d680ebe9b12c7d9e0eb8bf9940fcef709f5ec.tar.gz
src-db8d680ebe9b12c7d9e0eb8bf9940fcef709f5ec.zip
procctl(2): add PROC_NO_NEW_PRIVS_CTL, PROC_NO_NEW_PRIVS_STATUS
This introduces a new, per-process flag, "NO_NEW_PRIVS", which is inherited, preserved on exec, and cannot be cleared. The flag, when set, makes subsequent execs ignore any SUID and SGID bits, instead executing those binaries as if they not set. The main purpose of the flag is implementation of Linux PROC_SET_NO_NEW_PRIVS prctl(2), and possibly also unpriviledged chroot. Reviewed By: kib Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30939
Diffstat (limited to 'lib/libsmutil')
0 files changed, 0 insertions, 0 deletions