Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
5ecb7e48
Commit
5ecb7e48
authored
16 years ago
by
Guido Trotter
Browse files
Options
Downloads
Patches
Plain Diff
Add SOCKET_DIR_MODE constant
We want the socket dir to have a restricted permission. Reviewed-by: imsnah
parent
b4442fd9
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/constants.py
+1
-0
1 addition, 0 deletions
lib/constants.py
with
1 addition
and
0 deletions
lib/constants.py
+
1
−
0
View file @
5ecb7e48
...
@@ -85,6 +85,7 @@ RUN_GANETI_DIR = RUN_DIR + "/ganeti"
...
@@ -85,6 +85,7 @@ RUN_GANETI_DIR = RUN_DIR + "/ganeti"
BDEV_CACHE_DIR
=
RUN_GANETI_DIR
+
"
/bdev-cache
"
BDEV_CACHE_DIR
=
RUN_GANETI_DIR
+
"
/bdev-cache
"
DISK_LINKS_DIR
=
RUN_GANETI_DIR
+
"
/instance-disks
"
DISK_LINKS_DIR
=
RUN_GANETI_DIR
+
"
/instance-disks
"
SOCKET_DIR
=
RUN_GANETI_DIR
+
"
/socket
"
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
# 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)
# daemon is started (this takes care of RUN_DIR being tmpfs)
SUB_RUN_DIRS
=
[
RUN_GANETI_DIR
,
BDEV_CACHE_DIR
,
DISK_LINKS_DIR
]
SUB_RUN_DIRS
=
[
RUN_GANETI_DIR
,
BDEV_CACHE_DIR
,
DISK_LINKS_DIR
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment