[blivet:rhel7/master 2/3] Don't reset the SELinux context before the filesystem is mounted (#1038146)

mulhern amulhern at redhat.com
Mon Jan 20 18:16:26 UTC 2014


Related: rhbz#1038146

It does not seem to make sense to do this kind of thing before the filesystem
is mounted.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index f62d904..43a1548 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -553,10 +553,6 @@ class FS(DeviceFormat):
         #mountpoint = os.path.join(chroot, mountpoint)
         chrootedMountpoint = os.path.normpath("%s/%s" % (chroot, mountpoint))
         util.makedirs(chrootedMountpoint)
-        if flags.selinux:
-            ret = util.reset_file_context(mountpoint, chroot)
-            log.info("set SELinux context for mountpoint %s to %s" \
-                     % (mountpoint, ret))
 
         # passed in options override default options
         if not options or not isinstance(options, str):
-- 
1.8.3.1



More information about the anaconda-patches mailing list