]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix setgroups() use
authorKarel Zak <kzak@redhat.com>
Thu, 29 Jul 2021 09:50:48 +0000 (11:50 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jul 2021 09:50:48 +0000 (11:50 +0200)
commit420e914c4cc4c2ba34fd75790ea194d7f4a47d2c
treecf3ccc87d589b138b1e841844038ae7d5f06c1b3
parent760587e1303edb722eb5f7ce059bfd9541b861e1
libmount: fix setgroups() use

* keep process in single supplementary group, which is the real group ID for the process

* make sure we have rights to call setgroups(), requires group permissions

Fixes: https://github.com/karelzak/util-linux/issues/1398
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h