]> xenbits.xensource.com Git - libvirt.git/commit
security_selinux: Remember old labels
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Sep 2018 08:06:44 +0000 (10:06 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Dec 2018 14:32:28 +0000 (15:32 +0100)
commit4dc37a39cff95702c191cbfb4e52a3b5d3297e9a
tree730b39e446ea47b14807b0771680c8953cca1938
parent1e9c4724524d9758933b889b5adf62c14087cc99
security_selinux: Remember old labels

Similarly to what I did in DAC driver, this also requires the
same SELinux label to be used for shared paths. If a path is
already in use by a domain (or domains) then and the domain we
are starting now wants to access the path it has to have the same
SELinux label. This might look too restrictive as the new label
can still guarantee access to already running domains but in
reality it is very unlikely and usually an admin mistake.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/security_selinux.c