]> code.ossystems Code Review - openembedded-core.git/commit
mount-copybind: add rootcontext mountoption for overlayfs
authorMaximilian Blenk <Maximilian.Blenk@bmw.de>
Thu, 9 Sep 2021 08:05:05 +0000 (10:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Oct 2021 17:41:02 +0000 (18:41 +0100)
commit57f51e8c73ab9f55f20815a9459c3afad2b281e6
tree60dc2e4d9ec0fc5990ffbfe241f88cba9d3c9b51
parent6f3e231dc9bc11772573bf9683de9804460362d1
mount-copybind: add rootcontext mountoption for overlayfs

If selinux is enabled, the context of the mountpoint for overlayfs
needs to be specified manually via the rootcontext option. To this
end, the required context is determined using matchpathcon(1) and
passed via the rootcontext mount option.

Additionally, if the mount source directory is created by mount-copybind
it also needs to take care that the context of the directory is correct

Signed-off-by: Tobias Kaufmann <Tobias.KA.Kaufmann@bmw.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/volatile-binds/files/mount-copybind