]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: add -Z to set selinux context
authorKarel Zak <kzak@redhat.com>
Fri, 20 Mar 2015 14:26:58 +0000 (15:26 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Mar 2015 14:39:38 +0000 (15:39 +0100)
commit355ee3b8981ed4990fd069b097dd8ae0f7373920
tree0d23c097d571108c356670d041654f0c936ae8dd
parent8b5b94685b7f91c61ff1abeaa8e7089226d2bf35
nsenter: add -Z to set selinux context

The new context is copied from --target <PID>. This solution allows to
keep SELinux happy when you enter container by nsenter(1).

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1116100
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/Makemodule.am
sys-utils/nsenter.1
sys-utils/nsenter.c