diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2016-09-28 18:37:39 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2016-10-06 11:49:00 +0200 |
commit | 36d854780c01d589e5da1fc6e94f46aa41f7016f (patch) | |
tree | 57a0d3871f1903ab5dd0a2077e4aa669dc44e36c /src/basic/user-util.h | |
parent | f006b30bd5a24cb4420e0d439ebb5805b2b4c84d (diff) |
core: do not fail in a container if we can't use setgroups
It might be blocked through /proc/PID/setgroups
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r-- | src/basic/user-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h index 6c61f63cae..dfea561bde 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -86,3 +86,5 @@ bool valid_user_group_name(const char *u); bool valid_user_group_name_or_id(const char *u); bool valid_gecos(const char *d); bool valid_home(const char *p); + +int maybe_setgroups(size_t size, const gid_t *list); |