core: don't consider umask for SocketMode=

https://bugs.freedesktop.org/show_bug.cgi?id=89248
This commit is contained in:
Davide Bettio 2015-05-15 16:36:28 +02:00 committed by Lennart Poettering
parent 42706f47c9
commit a2c7f25aec

View 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) {