mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 15:42:58 +00:00
patch: Debug SELinux relabling: print arguements of setfiles
This commit is contained in:
parent
3291cbb5b1
commit
b205628235
2 changed files with 26 additions and 1 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Summary: Tools for building live CDs
|
Summary: Tools for building live CDs
|
||||||
Name: livecd-tools
|
Name: livecd-tools
|
||||||
Version: 21.1
|
Version: 21.1
|
||||||
Release: 59
|
Release: 60
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System/Base
|
Group: System/Base
|
||||||
|
@ -35,6 +35,7 @@ Patch22: livecd-tools-21.1.no.vga.opts.patch
|
||||||
Patch23: livecd-tools-21.1-genisoimage.patch
|
Patch23: livecd-tools-21.1-genisoimage.patch
|
||||||
Patch24: 0001-Run-setfiles-after-chroot.patch
|
Patch24: 0001-Run-setfiles-after-chroot.patch
|
||||||
Patch25: 0002-Get-system-architecture-by-bin-sh-executable-instead.patch
|
Patch25: 0002-Get-system-architecture-by-bin-sh-executable-instead.patch
|
||||||
|
Patch26: 0003-Debug-SELinux-relabling-print-arguements-of-setfiles.patch
|
||||||
|
|
||||||
Requires: python-imgcreate = %{EVRD}
|
Requires: python-imgcreate = %{EVRD}
|
||||||
Requires: dosfstools
|
Requires: dosfstools
|
||||||
|
|
Loading…
Add table
Reference in a new issue