libvirt/src/security
Michal Privoznik d1fdecb624 virSecuritySELinuxSetFileconHelper: Don't fail on read-only NFS
https://bugzilla.redhat.com/show_bug.cgi?id=996543

When starting up a domain, the SELinux labeling is done depending on
current configuration. If the labeling fails we check for possible
causes, as not all labeling failures are fatal. For example, if the
labeled file is on NFS which lacks SELinux support, the file can still
be readable to qemu process. These cases are distinguished by the errno
code: NFS without SELinux support returns EOPNOTSUPP. However, we were
missing one scenario. In case there's a read-only disk on a read-only
NFS (and possibly any FS) and the labeling is just optional (not
explicitly requested in the XML) there's no need to make the labeling
error fatal. In other words, read-only file on read-only NFS can fail to
be labeled, but be readable at the same time.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-01-17 13:35:01 +01:00
..
security_apparmor.c apparmor: Fix typo in function name in driver struct initialization 2013-10-29 17:01:22 +01:00
security_apparmor.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_dac.c Add '+' to uid/gid printing for label processing 2013-10-29 17:10:15 -04:00
security_dac.h security: use a single function to set DAC user and group 2013-10-29 06:55:09 -06:00
security_driver.c Convert 'int i' to 'size_t i' in src/security files 2013-07-10 17:40:14 +01:00
security_driver.h security: add new internal function "virSecurityManagerGetBaseLabel" 2013-10-29 06:57:07 -06:00
security_manager.c maint: improve VIR_ERR_NO_SUPPORT usage 2014-01-04 12:15:08 -07:00
security_manager.h security: add new internal function "virSecurityManagerGetBaseLabel" 2013-10-29 06:57:07 -06:00
security_nop.c security: add new internal function "virSecurityManagerGetBaseLabel" 2013-10-29 06:57:07 -06:00
security_nop.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_selinux.c virSecuritySELinuxSetFileconHelper: Don't fail on read-only NFS 2014-01-17 13:35:01 +01:00
security_selinux.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_stack.c maint: avoid further typedef accidents 2013-10-30 17:02:12 -06:00
security_stack.h security: fix #endif comment in security_stack.h 2012-12-20 19:55:54 +01:00
virt-aa-helper.c Convert 'int i' to 'size_t i' in src/security files 2013-07-10 17:40:14 +01:00