]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: don't try to label network disks
authorJosh Durgin <josh.durgin@dreamhost.com>
Sat, 10 Dec 2011 03:49:40 +0000 (19:49 -0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Dec 2011 10:52:15 +0000 (11:52 +0100)
commit20e1233c31e3150d259073c523077acdccb5d419
tree9ce12b6bdf1904f71fd8443a1733857a45dcc0b2
parent4d9e51f6332037284dfdc3afe8d3d6ccedf17b1a
security: don't try to label network disks

Network disks don't have paths to be resolved or files to be checked
for ownership. ee3efc41e6233e625aa03003bf3127319ccd546f checked this
for some image label functions, but was partially reverted in a
refactor.  This finishes adding the check to each security driver's
set and restore label methods for images.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/security/security_apparmor.c
src/security/security_dac.c
src/security/security_selinux.c