[node-patches] Change in ovirt-node[master]: Fix SELinux context for /dev/HostVG/Logging
rbarry at redhat.com
rbarry at redhat.com
Fri May 10 22:37:16 UTC 2013
Ryan Barry has uploaded a new change for review.
Change subject: Fix SELinux context for /dev/HostVG/Logging
......................................................................
Fix SELinux context for /dev/HostVG/Logging
Correctly set it as var_log_t instead of file_t at install time.
Part of the fix for rhbz#953963
Change-Id: If4d8834a446e39c83331515e288ad932bb9de9ec
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/installer/progress_page.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/62/14662/1
diff --git a/src/ovirt/node/installer/progress_page.py b/src/ovirt/node/installer/progress_page.py
index ec6923e..d80c15e 100644
--- a/src/ovirt/node/installer/progress_page.py
+++ b/src/ovirt/node/installer/progress_page.py
@@ -271,4 +271,7 @@
super(InstallerThread.SetKeyboardLayout, self).__init__()
def commit(self):
+ from ovirt.node.utils import process
utils.system.Keyboard().set_layout(self.kbd_layout)
+ log_partition = process.check_output("grep Logging /proc/mounts | grep writable")
+ process.call("chcon -R system_u:object_r:var_log_t:s0 %s" % log_partition)
--
To view, visit http://gerrit.ovirt.org/14662
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If4d8834a446e39c83331515e288ad932bb9de9ec
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
More information about the node-patches
mailing list