mount-setup: relabel items mentioned directly in relabel-extra.d
authorBenjamin Gilbert <bgilbert@redhat.com>
Wed, 11 Sep 2019 03:23:59 +0000 (23:23 -0400)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
commit1dec47806acf869f09c9ef67a27902c65525312b
tree3475a77162ea28b04eb3bdce9d973db3b2cf07d5
parentc062a1bc36e45374e80460ab9e3601ca823c0bee
mount-setup: relabel items mentioned directly in relabel-extra.d

relabel_extra() relabels the descendants of directories listed in
relabel-extra.d, but doesn't relabel the files or directories
explicitly named there.  This makes it impossible to use
relabel-extra.d to relabel the root of a filesystem.  Fix by
relabeling the named items too.

(cherry picked from commit 71de68476c1897b8624538ce32218891251fa5f6)
(cherry picked from commit 29308bcc1326521081f4d7369945d325c2d41faa)

Gbp-Pq: Name mount-setup-relabel-items-mentioned-directly-in-relabel-e.patch
src/core/mount-setup.c