Add SOCKET_DIR_MODE constant
authorGuido Trotter <ultrotter@google.com>
Tue, 25 Nov 2008 17:10:58 +0000 (17:10 +0000)
committerGuido Trotter <ultrotter@google.com>
Tue, 25 Nov 2008 17:10:58 +0000 (17:10 +0000)
We want the socket dir to have a restricted permission.

Reviewed-by: imsnah

lib/constants.py

index d94885e..15bc4db 100644 (file)
@@ -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 ]