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

2012-10-16 Thread Martin Kletzander
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

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

2012-10-15 Thread Martin Kletzander
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

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

2012-10-15 Thread Guannan Ren
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

[libvirt] [PATCH] selinux: Use raw contexts

2012-10-12 Thread Martin Kletzander
We are currently able to work only with non-translated SELinux contexts, but we are using functions that work with translated contexts throughout the code. This patch swaps all SELinux context translation relative calls with their raw sisters to avoid parsing problems. The problems can be

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

2012-10-12 Thread Eric Blake
On 10/12/2012 08:39 AM, Martin Kletzander wrote: We are currently able to work only with non-translated SELinux contexts, but we are using functions that work with translated contexts throughout the code. This patch swaps all SELinux context translation relative calls with their raw sisters

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

2012-10-12 Thread Martin Kletzander
On 10/12/2012 04:53 PM, Eric Blake wrote: On 10/12/2012 08:39 AM, Martin Kletzander wrote: We are currently able to work only with non-translated SELinux contexts, but we are using functions that work with translated contexts throughout the code. This patch swaps all SELinux context

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

2012-10-12 Thread Eric Blake
On 10/12/2012 09:17 AM, Martin Kletzander wrote: On 10/12/2012 04:53 PM, Eric Blake wrote: On 10/12/2012 08:39 AM, Martin Kletzander wrote: We are currently able to work only with non-translated SELinux contexts, but we are using functions that work with translated contexts throughout the

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

2012-10-12 Thread Martin Kletzander
On 10/12/2012 05:41 PM, Eric Blake wrote: On 10/12/2012 09:17 AM, Martin Kletzander wrote: On 10/12/2012 04:53 PM, Eric Blake wrote: On 10/12/2012 08:39 AM, Martin Kletzander wrote: We are currently able to work only with non-translated SELinux contexts, but we are using functions that work