core: do not fail in a container if we can't use setgroups

It might be blocked through /proc/PID/setgroups
This commit is contained in:
Giuseppe Scrivano
2016-10-06 11:49:00 +02:00
parent f006b30bd5
commit 36d854780c
4 changed files with 31 additions and 3 deletions
+2
View File
@@ -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);