]> 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:57:37 +0000 (11:57 +0200)
commit4763080701ceba4fb1af162bbe03a9192ee3c1df
treeb7c55c4c570756fe8b91635e87a87b0c55cc39f4
parent4f2406545c86d27194046f40b0c05903d2c754d0
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