projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb9418
)
multipathd: restrict /var/run/multipathd.sock permissions further
author
Mike Snitzer
<snitzer@redhat.com>
Wed, 29 Apr 2009 19:26:32 +0000
(15:26 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Wed, 29 Apr 2009 19:26:32 +0000
(15:26 -0400)
Use a more restrictive umask for /var/run/multipathd.sock
Group and Other do not need to access the socket.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
multipathd/main.c
patch
|
blob
|
history
diff --git
a/multipathd/main.c
b/multipathd/main.c
index
c7ef4df
..
dfa1098
100644
(file)
--- a/
multipathd/main.c
+++ b/
multipathd/main.c
@@
-759,6
+759,7
@@
uxlsnrloop (void * ap)
set_handler_callback(RESTOREQ+MAPS, cli_restore_all_queueing);
set_handler_callback(QUIT, cli_quit);
+ umask(077);
uxsock_listen(&uxsock_trigger, ap);
return NULL;