multipathd: restrict /var/run/multipathd.sock permissions further
authorMike Snitzer <snitzer@redhat.com>
Wed, 29 Apr 2009 19:26:32 +0000 (15:26 -0400)
committerMike 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

index c7ef4df..dfa1098 100644 (file)
@@ -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;