Re: [libvirt] [PATCH 25/30] security: selinux: Simplify SetImageLabelInternal

2019-10-11 Thread Michal Privoznik
On 10/7/19 11:49 PM, Cole Robinson wrote: All the SetFileCon calls only differ by the label they pass in. Rework the conditionals to track what label we need, and use a single SetFileCon call Signed-off-by: Cole Robinson --- src/security/security_selinux.c | 31 ++-

Re: [libvirt] [PATCH 25/30] security: selinux: Simplify SetImageLabelInternal

2019-10-10 Thread Daniel Henrique Barboza
On 10/7/19 6:49 PM, Cole Robinson wrote: All the SetFileCon calls only differ by the label they pass in. Rework the conditionals to track what label we need, and use a single SetFileCon call Signed-off-by: Cole Robinson --- Reviewed-by: Daniel Henrique Barboza src/security/security_se

[libvirt] [PATCH 25/30] security: selinux: Simplify SetImageLabelInternal

2019-10-07 Thread Cole Robinson
All the SetFileCon calls only differ by the label they pass in. Rework the conditionals to track what label we need, and use a single SetFileCon call Signed-off-by: Cole Robinson --- src/security/security_selinux.c | 31 ++- 1 file changed, 10 insertions(+), 21 deleti