How to reproduce this bug: use: SocketMode=0777 result: srwxr-xr-x 1 myuser mygroup 0 Feb 20 22:42 /var/run/mysocket it looks like the following code is executed: /* 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); Fix: Either remove umask(~socket_mode | old_mask) or document this behavior.
Created attachment 113705 [details] Proposed fix
You are right, we probably should not consider the umask in this case. Applied: http://cgit.freedesktop.org/systemd/systemd/commit/?id=a2c7f25aec23b6d74ff5cf169e38159754e6dfe8
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.