mooli tayer has uploaded a new change for review. Change subject: vdsm-tool: use geteuid() instead of getuid() for root check. ......................................................................
vdsm-tool: use geteuid() instead of getuid() for root check. Change-Id: I0a54af5737cf47e3f5e8ab62339bddd978ceddb9 Signed-off-by: Mooli Tayer <[email protected]> --- M lib/vdsm/tool/configurator.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/17/31317/1 diff --git a/lib/vdsm/tool/configurator.py b/lib/vdsm/tool/configurator.py index 90e8616..2dbd48e 100644 --- a/lib/vdsm/tool/configurator.py +++ b/lib/vdsm/tool/configurator.py @@ -676,7 +676,7 @@ def requiresRoot(func): @functools.wraps(func) def wrapper(*args, **kwargs): - if os.getuid() != 0: + if os.geteuid() != 0: raise NotRootError() func(*args, **kwargs) return wrapper -- To view, visit http://gerrit.ovirt.org/31317 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0a54af5737cf47e3f5e8ab62339bddd978ceddb9 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: mooli tayer <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
