]> git.ipfire.org Git - thirdparty/systemd.git/commit
seccomp: default to something resembling the current personality when locking it
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Aug 2017 18:40:26 +0000 (20:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Aug 2017 13:56:57 +0000 (15:56 +0200)
commite8132d63fea6986cb6bcb2b78d95b1ada3ada708
treec2ab745fa9c6cd35caab91fbac74c4009a5043c6
parent78e864e5b3cc11b72ae663f49f42f158cafbfedf
seccomp: default to something resembling the current personality when locking it

Let's lock the personality to the currently set one, if nothing is
specifically specified. But do so with a grain of salt, and never
default to any exotic personality here, but only PER_LINUX or
PER_LINUX32.
src/basic/process-util.c
src/basic/process-util.h
src/core/execute.c
src/test/test-seccomp.c