From 771bf037882d2d5459263d832661acca28c764a4 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Wed, 17 Mar 2010 12:26:15 -0500 Subject: Don't try to set selinux context for read-only mountpoints. --- storage/formats/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage/formats') diff --git a/storage/formats/fs.py b/storage/formats/fs.py index 22291d617..23f5d98e2 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -624,7 +624,7 @@ class FS(DeviceFormat): if rc: raise FSError("mount failed: %s" % rc) - if flags.selinux: + if flags.selinux and "ro" not in options.split(","): ret = isys.resetFileContext(mountpoint, chroot) log.info("set SELinux context for newly mounted filesystem " "root at %s to %s" %(mountpoint, ret)) -- cgit