mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
core: don't consider umask for SocketMode=
https://bugs.freedesktop.org/show_bug.cgi?id=89248
This commit is contained in:
parent
42706f47c9
commit
a2c7f25aec
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user