]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: allow LSM attach without new mnt namespace
authorMaximilian Blenk <Maximilian.Blenk@bmw.de>
Mon, 23 Aug 2021 13:39:28 +0000 (15:39 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 24 Aug 2021 07:20:02 +0000 (09:20 +0200)
commitb445fcb114a1753145d0d2dece74ab2cf055241c
treedddf0a8b9ff1a109a5f69dbf4693053c39684dc4
parenta0738fa00b7e35cfd7508b5234b2970c25d0aba6
attach: allow LSM attach without new mnt namespace

Currently, the -c command (to set the selinux context) seems to be
broken because lxc-attach expects that also a new mount namespace
is specified via command line. This commit remove the check for the new
mount namespace to fix this issue. Please note that the
--elevated-privileges option is not affected by this issue.

Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c