syslogd: set syslog IPC buffer to mode 0644
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 14 Aug 2007 10:27:56 +0000 (10:27 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 14 Aug 2007 10:27:56 +0000 (10:27 -0000)
sysklogd/syslogd.c

index 6ecbd16f018c17498fbda581f365da5ae2d4de2f..72ecc6de14211d25121ef5751597bfc0d8273c07 100644 (file)
@@ -201,7 +201,7 @@ static void ipcsyslog_init(void)
        if (DEBUG)
                printf("shmget(%lx, %d,...)\n", KEY_ID, G.shm_size);
 
-       G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 1023);
+       G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 0644);
        if (G.shmid == -1) {
                bb_perror_msg_and_die("shmget");
        }