[PATCH 4/4] Update selinux tests for default context of mounts under /tmp.
David Lehman
dlehman at redhat.com
Thu Jul 31 22:16:22 UTC 2014
Filesystems mounted under /tmp now have type unlabeled_t unless their
context is reset after mounting.
---
tests/formats_test/selinux_test.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/formats_test/selinux_test.py b/tests/formats_test/selinux_test.py
index 2b6d9d9..00771ad 100755
--- a/tests/formats_test/selinux_test.py
+++ b/tests/formats_test/selinux_test.py
@@ -33,10 +33,10 @@ class SELinuxContextTestCase(loopbackedtestcase.LoopBackedTestCase):
an_fs.unmount()
os.rmdir(mountpoint)
- self.assertEqual(root_selinux_context[1], 'system_u:object_r:file_t:s0')
+ self.assertEqual(root_selinux_context[1], 'system_u:object_r:unlabeled_t:s0')
self.assertEqual(lost_and_found_selinux_context[1],
- 'system_u:object_r:file_t:s0')
+ 'system_u:object_r:unlabeled_t:s0')
blivet.flags.installer_mode = True
mountpoint = tempfile.mkdtemp("test.selinux")
@@ -73,7 +73,7 @@ class SELinuxContextTestCase(loopbackedtestcase.LoopBackedTestCase):
an_fs.unmount()
os.rmdir(mountpoint)
- self.assertEqual(root_selinux_context[1], 'system_u:object_r:file_t:s0')
+ self.assertEqual(root_selinux_context[1], 'system_u:object_r:unlabeled_t:s0')
blivet.flags.installer_mode = True
mountpoint = tempfile.mkdtemp("test.selinux")
--
1.9.3
More information about the anaconda-patches
mailing list