Yaniv Bronhaim has posted comments on this change.
Change subject: Alert if vdsm log has wrong user\group permissions
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File vdsm/vdsmd.init.in
Line 102: done
Line 103: }
Line 104:
Line 105: verify_log_permissions() {
Line 106: VDSM_USER=`id -u vdsm`
The only way I found for that is to echo to vdsm log only after we changed the
user, and it happens only after we run vdsm.
So it that way, or I can move this verification as royce did to vdsm startup,
and if I can't write to the log file I'll crash vdsm (again and again.. until
the respawn stops)
Line 107: VDSM_GROUP=`id -g vdsm`
Line 108: LOG_OWNER=`stat -c "%u" @VDSMLOGDIR@/vdsm.log`
Line 109: LOG_GROUP=`stat -c "%g" @VDSMLOGDIR@/vdsm.log`
Line 110: if [[ $VDSM_USER -ne $LOG_OWNER || $VDSM_GROUP -ne $LOG_GROUP ]];
then
--
To view, visit http://gerrit.ovirt.org/9118
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I8bd379803b01627d6897992ee8798c6a22195b0f
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches