diff options
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -232,6 +232,7 @@ static int make_control_sock(char *devname) addr.sun_family = PF_LOCAL; strcpy(addr.sun_path, path); + umask(077); /* ensure no world write access */ if (bind(sfd, &addr, sizeof(addr)) < 0) { close(sfd); return -1; |