]> xenbits.xensource.com Git - libvirt.git/commitdiff
selinux: Use raw contexts 2
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 15 Oct 2012 12:04:36 +0000 (14:04 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Oct 2012 08:30:18 +0000 (10:30 +0200)
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

index 0a2a9fe7b6cba7af6c6dcfe1027663dd8d74b314..85419ba41dbad882de3ccb836e86f026b7f02522 100644 (file)
@@ -901,7 +901,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