diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2016-09-28 18:37:39 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-05 08:50:54 +0200 |
commit | 26a2fa65615e047ee5f1ceb24e19aa3548e3a033 (patch) | |
tree | e1b1dce12ed1a204085db33b984ddfb9ad7d5145 /src/basic/user-util.h | |
parent | a04fa92ef5cca95a60e4e9e09a31300257b90259 (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 e7add7964..0d000b76c 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -92,3 +92,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); |