From: Michael Hanselmann Date: Tue, 11 Dec 2012 13:29:45 +0000 (+0100) Subject: Set owner on watcher pause and queue drain files X-Git-Tag: v2.7.0beta1~358 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/ebd437a422718fa9a6c75ff176a150d3cd0b5159 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: Michael Hanselmann Reviewed-by: Guido Trotter --- diff --git a/lib/tools/ensure_dirs.py b/lib/tools/ensure_dirs.py index 8e72b0d..b50e37e 100644 --- a/lib/tools/ensure_dirs.py +++ b/lib/tools/ensure_dirs.py @@ -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),