From 5ecb7e489965c5f4838d2071091d7e96ea649601 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 25 Nov 2008 17:10:58 +0000
Subject: [PATCH] Add SOCKET_DIR_MODE constant

We want the socket dir to have a restricted permission.

Reviewed-by: imsnah
---
 lib/constants.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/constants.py b/lib/constants.py
index d94885e56..15bc4dbd0 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -85,6 +85,7 @@ RUN_GANETI_DIR = RUN_DIR + "/ganeti"
 BDEV_CACHE_DIR = RUN_GANETI_DIR + "/bdev-cache"
 DISK_LINKS_DIR = RUN_GANETI_DIR + "/instance-disks"
 SOCKET_DIR = RUN_GANETI_DIR + "/socket"
+SOCKET_DIR_MODE = 0700
 # keep RUN_GANETI_DIR first here, to make sure all get created when the node
 # daemon is started (this takes care of RUN_DIR being tmpfs)
 SUB_RUN_DIRS = [ RUN_GANETI_DIR, BDEV_CACHE_DIR, DISK_LINKS_DIR ]
-- 
GitLab