chiark / gitweb /
core: don't consider umask for SocketMode=
authorDavide Bettio <davide.bettio@ispirata.com>
Fri, 15 May 2015 14:36:28 +0000 (16:36 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 08:56:11 +0000 (09:56 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=89248

src/shared/socket-label.c

index dfb8a1a..cbe3ff2 100644 (file)
@@ -109,9 +109,6 @@ int socket_address_listen(
                 /* Enforce the right access mode for the socket */
                 old_mask = umask(~ socket_mode);
 
-                /* Include the original umask in our mask */
-                umask(~socket_mode | old_mask);
-
                 r = mac_selinux_bind(fd, &a->sockaddr.sa, a->size);
 
                 if (r < 0 && errno == EADDRINUSE) {