summaryrefslogtreecommitdiff
path: root/multipathd/main.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2009-04-29 15:26:32 -0400
committerMike Snitzer <snitzer@redhat.com>2009-04-29 15:26:32 -0400
commit7395bcda3a218df2eab1617df54628af0dc3456e (patch)
tree0c1096cf1f68c27b00519f2668252a8b68dccc65 /multipathd/main.c
parent7cb9418355fb2845b39bd187f39838b7ca241f94 (diff)
downloadmultipath-tools-7395bcda3a218df2eab1617df54628af0dc3456e.tar.gz
multipath-tools-7395bcda3a218df2eab1617df54628af0dc3456e.tar.bz2
multipath-tools-7395bcda3a218df2eab1617df54628af0dc3456e.zip
multipathd: restrict /var/run/multipathd.sock permissions further
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>
Diffstat (limited to 'multipathd/main.c')
-rw-r--r--multipathd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/multipathd/main.c b/multipathd/main.c
index c7ef4df..dfa1098 100644
--- 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;