projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4442fd
)
Add SOCKET_DIR_MODE constant
author
Guido Trotter
<ultrotter@google.com>
Tue, 25 Nov 2008 17:10:58 +0000
(17:10 +0000)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/lib/constants.py
b/lib/constants.py
index
d94885e
..
15bc4db
100644
(file)
--- 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 ]