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

Michal Privoznik mprivozn at redhat.com
Fri Oct 11 13:04:32 UTC 2019


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 <crobinso at redhat.com>
> ---
>   src/security/security_selinux.c | 31 ++++++++++---------------------
>   1 file changed, 10 insertions(+), 21 deletions(-)

Huh, I posted the same patch a while ago:

https://www.redhat.com/archives/libvir-list/2019-September/msg01240.html

Great minds think alike :-D

Michal




More information about the libvir-list mailing list