Re: [PATCH] selinux: Use raw contexts 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/15/2012 04:12 PM, Guannan Ren wrote:
> On 10/15/2012 08:45 PM, Martin Kletzander wrote:
>> 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
> 
>    ACK
> 
>    Guannan
> 

Thanks, pushed.

Martin

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]