Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.metrics
Commits
b4eb8c3c
Commit
b4eb8c3c
authored
Oct 13, 2021
by
Zuul
Committed by
Gerrit Code Review
Oct 13, 2021
Browse files
Merge "Limit metrics_socket_file permissions"
parents
3b9998a9
b23fb97c
Changes
1
Hide whitespace changes
Inline
Side-by-side
oslo_metrics/__main__.py
View file @
b4eb8c3c
...
...
@@ -17,7 +17,6 @@ import os
import
select
import
signal
import
socket
import
stat
import
sys
import
threading
from
wsgiref.simple_server
import
make_server
...
...
@@ -99,7 +98,7 @@ def main():
socket_path
=
cfg
.
CONF
.
oslo_metrics
.
metrics_socket_file
m
=
MetricsListener
(
socket_path
)
try
:
os
.
chmod
(
socket_path
,
stat
.
S_IRWXU
|
stat
.
S_IRWXO
)
os
.
chmod
(
socket_path
,
0o660
)
except
OSError
:
LOG
.
error
(
"Changing the mode of the file failed.... continuing"
)
mt
=
threading
.
Thread
(
target
=
m
.
serve
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment