]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: add --setgroups=deny|allow
authorKarel Zak <kzak@redhat.com>
Thu, 8 Jan 2015 10:51:58 +0000 (11:51 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Jan 2015 09:35:16 +0000 (10:35 +0100)
commitfbceefded6645de693d576cd988a703a6f60d207
tree9ca52ab8d876e470fd64601c7e7eac1e577fe36c
parent0bf159413bdb9e324864a422b7aecb081e739119
unshare: add --setgroups=deny|allow

Since Linux 3.19 the file /proc/self/setgroups controls setgroups(2)
syscall usage in user namespaces. This patch provides command line knob
for this feature.

The new --setgroups does not automatically implies --user to avoid
complexity, it's user's responsibility to use it in right context. The
exception is --map-root-user which is mutually exclusive to
--setgroups=allow.

CC: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.1
sys-utils/unshare.c