mooli tayer has posted comments on this change.
Change subject: vdsm-tool: use geteuid() instead of getuid() for root check.
......................................................................
Patch Set 1:
(1 comment)
http://gerrit.ovirt.org/#/c/31317/1//COMMIT_MSG
Commit Message:
Line 3: AuthorDate: 2014-08-11 11:30:33 +0300
Line 4: Commit: Mooli Tayer <mtayer(a)redhat.com>
Line 5: CommitDate: 2014-08-11 11:30:33 +0300
Line 6:
Line 7: vdsm-tool: use geteuid() instead of getuid() for root check.
Can you explain why is this more correct, and in which case the
former way
No sudo works fine(do 'sudo id').
I expect this to have no consequence.
It is done because getuid() is more correct when checking permissions.
AFAIK It has consequence when a process has uid bit set on it and other corner cases.
Again, I expect this to have no effect but it is more appropriate for permission
checking.
Line 8:
Line 9: Change-Id: I0a54af5737cf47e3f5e8ab62339bddd978ceddb9
--
To view, visit
http://gerrit.ovirt.org/31317
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I0a54af5737cf47e3f5e8ab62339bddd978ceddb9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <mtayer(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Dima Kuznetsov <dkuznets(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: mooli tayer <mtayer(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes