[Libguestfs] [common PATCH 0/3] SELinux_relabel: relabel only if enforcing (RHBZ#1828952)

Pino Toscano ptoscano at redhat.com
Wed Sep 23 15:57:47 UTC 2020


Continuation/rework of:
https://www.redhat.com/archives/libguestfs/2020-May/msg00020.html

This is my approach, as I explained here:
https://bugzilla.redhat.com/show_bug.cgi?id=1828952#c4
https://www.redhat.com/archives/libguestfs/2020-May/msg00035.html
IOW: do not attempt to relabel if the guest is not enforcing, as it is
either useless or may fail; few words more are in the comments of patch
#3.

Pino Toscano (2):
  mlcustomize: refactor reading from /etc/selinux/config
  mlcustomize: do not relabel if not enforcing (RHBZ#1828952)

Richard W.M. Jones (1):
  mlcustomize: Refactor SELinux_relabel code.

 mlcustomize/SELinux_relabel.ml | 153 ++++++++++++++++++++-------------
 1 file changed, 94 insertions(+), 59 deletions(-)

-- 
2.26.2




More information about the Libguestfs mailing list