]> git.ipfire.org Git - thirdparty/lxc.git/commit
apparmor: allow various remount,bind options 2758/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 15 Nov 2018 10:51:34 +0000 (11:51 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 17 Dec 2018 07:40:15 +0000 (08:40 +0100)
commit1cc28d37b7b74c45e5e11a5aa09cc0103a8510b7
treec7f5193e3cd295370d6254b66f78b1fe0e68a7de
parent51a9e74bae816b034766fd93bd97457b91b87511
apparmor: allow various remount,bind options

RW bind mounts need to be restricted for some paths in
order to avoid MAC restriction bypasses, but read-only bind
mounts shouldn't have that problem.

Additionally, combinations of 'nosuid', 'nodev' and
'noexec' flags shouldn't be a problem either and are
required with newer systemd versions, so let's allow those
as long as they're combined with 'ro,remount,bind'.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
(cherry picked from commit e6ec0a9e71aa68c9fd67c691a62aaae87e356cef)
config/apparmor/abstractions/container-base
config/apparmor/abstractions/container-base.in