From: Martin Kletzander Date: Mon, 15 Oct 2012 12:04:36 +0000 (+0200) Subject: selinux: Use raw contexts 2 X-Git-Tag: v0.10.2.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e620a97a949d2bd9a9e6bf5b1c52b80c1c4031fd;p=thirdparty%2Flibvirt.git selinux: Use raw contexts 2 In commit 9674f2c637114fa6ac0680fe5658a41a62bb34a8, I forgot to change selabel_lookup with the other functions, so this one-liner does exactly that. (cherry picked from commit 6676c1fc8fb297de998f96862cbe2396355b2777) --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index f7c675ea97..29fb2de136 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -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