diff options
author | 2017-08-09 20:40:26 +0200 | |
---|---|---|
committer | 2017-08-29 15:56:57 +0200 | |
commit | e8132d63fea6986cb6bcb2b78d95b1ada3ada708 (patch) | |
tree | c2ab745fa9c6cd35caab91fbac74c4009a5043c6 /src/basic/process-util.h | |
parent | seccomp: LockPersonality boolean (#6193) (diff) | |
download | systemd-e8132d63fea6986cb6bcb2b78d95b1ada3ada708.tar.gz systemd-e8132d63fea6986cb6bcb2b78d95b1ada3ada708.tar.bz2 systemd-e8132d63fea6986cb6bcb2b78d95b1ada3ada708.zip |
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.
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r-- | src/basic/process-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index 913991b3c..d71db2df7 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -91,6 +91,8 @@ bool oom_score_adjust_is_valid(int oa); unsigned long personality_from_string(const char *p); const char *personality_to_string(unsigned long); +int opinionated_personality(unsigned long *ret); + int ioprio_class_to_string_alloc(int i, char **s); int ioprio_class_from_string(const char *s); |