[systemd-bugs] [Bug 89248] New: SocketMode directive is "partially" ignored (bug/or lack of documentation)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 20 15:03:11 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89248
Bug ID: 89248
Summary: SocketMode directive is "partially" ignored (bug/or
lack of documentation)
Product: systemd
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: davide.bettio at ispirata.com
QA Contact: systemd-bugs at lists.freedesktop.org
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150220/53023bf0/attachment.html>
More information about the systemd-bugs
mailing list