[libvirt] [PATCH] selinux: Use raw contexts 2

Martin Kletzander mkletzan at redhat.com
Mon Oct 15 12:45:27 UTC 2012


In commit 9674f2c637114fa6ac0680fe5658a41a62bb34a8, I forgot to change
selabel_lookup with the other functions, so this one-liner does exactly
that.
---
 src/security/security_selinux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
index 10135ed..e6fba21 100644
--- a/src/security/security_selinux.c
+++ b/src/security/security_selinux.c
@@ -861,7 +861,7 @@ getContext(const char *newpath, mode_t mode, security_context_t *fcon)
     if (handle == NULL)
         return -1;

-    ret = selabel_lookup(handle, fcon, newpath, mode);
+    ret = selabel_lookup_raw(handle, fcon, newpath, mode);
     selabel_close(handle);
     return ret;
 #else
-- 
1.7.12.3




More information about the libvir-list mailing list