diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-08-09 20:40:26 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-08-09 20:40:26 +0200 |
commit | a0065de1a0eef3a79af751c27b8f90fcfb110a89 (patch) | |
tree | d59a6e372009fb7123181819ca4533c5cce453d5 /src/basic/process-util.h | |
parent | 4c604d1e73b04395afc62257fd236128da17a248 (diff) |
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 a7bdbffa9..339dc9f59 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -100,6 +100,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); |