]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix a failure to restore SELinux label for character devices
authorDaniel Veillard <veillard@redhat.com>
Thu, 18 Nov 2010 16:55:14 +0000 (17:55 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 18 Nov 2010 16:55:14 +0000 (17:55 +0100)
commit83fa1184585013e4c4b430e5ef7695e825b8d9ec
treeb08895a6b3a0bf127d7b4ba7d8cfd9f912b7043b
parentc505eafeda3d9bec455900f48cbebe144b22e259
Fix a failure to restore SELinux label for character devices

The code in SELinuxRestoreSecurityChardevLabel() was trying to
use SELinuxSetFilecon directly for devices or file types while
it should really use SELinuxRestoreSecurityFileLabel encapsulating
routine, which avoid various problems like resolving symlinks,
making sure he file exists and work around NFS problems
src/security/security_selinux.c