]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: add --keep-caps option
authorJames Peach <jpeach@apache.org>
Thu, 17 Jan 2019 22:16:54 +0000 (14:16 -0800)
committerJames Peach <jpeach@apache.org>
Tue, 10 Sep 2019 03:23:08 +0000 (20:23 -0700)
commitcef4decf0436953031b4a8ea91a8aec89459a8fd
tree4536c34129863b144ae65da31ab0d03b809f7e51
parenta1790d265d50b15b3a06506209806d59a5b707e3
unshare: add --keep-caps option

Add the --keep-caps option to unshare to preserve capabilities that
are granted when creating a new user namespace. This allows the child
process to retain privilege within the new user namespace without also
being UID 0.
include/Makemodule.am
include/caputils.h [new file with mode: 0644]
lib/Makemodule.am
lib/caputils.c [new file with mode: 0644]
sys-utils/setpriv.c
sys-utils/unshare.1
sys-utils/unshare.c