From 8526052da45ffbe6a790d34299189fc51faf0b9d Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Wed, 29 May 2013 14:07:30 +0900
Subject: [PATCH] Ensure the queue socket has the right permissions

RAPI needs to be able to perform queries as well.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
---
 lib/tools/ensure_dirs.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/tools/ensure_dirs.py b/lib/tools/ensure_dirs.py
index 218350cb9..b5793283f 100644
--- a/lib/tools/ensure_dirs.py
+++ b/lib/tools/ensure_dirs.py
@@ -179,6 +179,8 @@ def GetPaths():
     (pathutils.SOCKET_DIR, DIR, 0770, getent.masterd_uid, getent.daemons_gid),
     (pathutils.MASTER_SOCKET, FILE, 0660,
      getent.masterd_uid, getent.daemons_gid, False),
+    (pathutils.QUERY_SOCKET, FILE, 0660,
+     getent.confd_uid, getent.daemons_gid, False),
     (pathutils.BDEV_CACHE_DIR, DIR, 0755,
      getent.noded_uid, getent.masterd_gid),
     (pathutils.UIDPOOL_LOCKDIR, DIR, 0750,
-- 
GitLab