Federico Simoncelli has uploaded a new change for review. Change subject: tool: skip sebool entry setup when missing ......................................................................
tool: skip sebool entry setup when missing The sebool variable we want to configure might not be present on all platforms. Change-Id: Ib2379e57a33aa280504557a2ea797fe3b4ec8c1a Signed-off-by: Federico Simoncelli <[email protected]> --- M vdsm-tool/seboolsetup.py 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/27/9827/1 diff --git a/vdsm-tool/seboolsetup.py b/vdsm-tool/seboolsetup.py index 437da68..3db52eb 100644 --- a/vdsm-tool/seboolsetup.py +++ b/vdsm-tool/seboolsetup.py @@ -42,6 +42,11 @@ sebool_obj.start() for sebool_variable in VDSM_SEBOOL_LIST: + # The sebool_variable we want to configure might not be + # present on all platforms. + if sebool_variable not in sebool_status + continue + if status and not all(sebool_status[sebool_variable]): sebool_obj.modify(sebool_variable, SEBOOL_ENABLED) -- To view, visit http://gerrit.ovirt.org/9827 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib2379e57a33aa280504557a2ea797fe3b4ec8c1a Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
