]> code.ossystems Code Review - openembedded-core.git/commit
mount-copybind: add SELinux support
authorTobias Kaufmann <Tobias.KA.Kaufmann@bmw.de>
Thu, 9 Sep 2021 08:05:04 +0000 (10:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Oct 2021 17:41:02 +0000 (18:41 +0100)
commit6f3e231dc9bc11772573bf9683de9804460362d1
tree2998d09973334331943ebddb69942f5de7fadbe9
parentda489ef6e36711cb40d26f64f292fb92a0073f4a
mount-copybind: add SELinux support

bind mounts don't use the SELinux label of the target, but the SELinux
label of the source.

This patch restores the SELinux context of the bind mount recursively using
restorecon.

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