mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 15:42:58 +00:00
25 lines
1,011 B
Diff
25 lines
1,011 B
Diff
![]() |
From 91c1f367a489713d13ee6a4d929a4749d859bff0 Mon Sep 17 00:00:00 2001
|
||
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
||
|
Date: Sat, 7 Sep 2019 01:56:55 +0300
|
||
|
Subject: [PATCH] Debug SELinux relabling: print arguements of setfiles
|
||
|
|
||
|
---
|
||
|
imgcreate/creator.py | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/imgcreate/creator.py b/imgcreate/creator.py
|
||
|
index cbd8d61..9a07f62 100644
|
||
|
--- a/imgcreate/creator.py
|
||
|
+++ b/imgcreate/creator.py
|
||
|
@@ -461,6 +461,7 @@ class ImageCreator(object):
|
||
|
if kickstart.selinux_enabled(self.ks):
|
||
|
# label the fs like it is a root before the bind mounting
|
||
|
arglist = ["/sbin/setfiles", "-F", "-r", self._instroot, selinux.selinux_file_context_path(), self._instroot]
|
||
|
+ print("Running SELinux relabling: ", arglist)
|
||
|
subprocess.call(arglist, close_fds = True)
|
||
|
# these dumb things don't get magically fixed, so make the user generic
|
||
|
# if selinux exists on the host we need to lie to the chroot
|
||
|
--
|
||
|
2.20.1
|
||
|
|