Commit ebd437a4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Set owner on watcher pause and queue drain files



If the files were created by a user different, e.g. due to a switch from
running masterd as root to running it as a dedicated user, they couldn't
be modified/removed anymore.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent af8f2fbf
......@@ -164,6 +164,10 @@ def GetPaths():
getent.masterd_uid, getent.masterd_gid, False),
(pathutils.JOB_QUEUE_ARCHIVE_DIR, DIR, 0700,
getent.masterd_uid, getent.masterd_gid),
(pathutils.WATCHER_PAUSEFILE, FILE, 0644,
getent.masterd_uid, getent.masterd_gid, False),
(pathutils.JOB_QUEUE_DRAIN_FILE, FILE, 0644,
getent.masterd_uid, getent.masterd_gid, False),
(rapi_dir, DIR, 0750, getent.rapi_uid, getent.masterd_gid),
(pathutils.RAPI_USERS_FILE, FILE, 0640,
getent.rapi_uid, getent.masterd_gid, False),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment