From 7395bcda3a218df2eab1617df54628af0dc3456e Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Wed, 29 Apr 2009 15:26:32 -0400 Subject: 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 --- multipathd/main.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3