test: set /proc/$pid/setgroups to 'deny' before writing to .../gid_map
authorDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 19:09:40 +0000 (20:09 +0100)
committerDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 19:11:18 +0000 (20:11 +0100)
commit4367080952472a39e33bf1aab075a71b95fa412b
tree5a0aec40cc77b3544fee4d60bd01957f084eba39
parentf6f1753b217796b3b677682d57870543e8ebf5e6
test: set /proc/$pid/setgroups to 'deny' before writing to .../gid_map

Since Linux 3.19-rc1, it is necessary to disable setgroups permissions
before writing to gid_map. Silently ignore if 'setgroups' can't be
opened or written to.

Signed-off-by: Daniel Mack <daniel@zonque.org>
test/kdbus-util.c