mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
socket: support setting ownership of message queues
This applies the existing SocketUser=/SocketGroup= options to units defining a POSIX message queue, bringing them in line with UNIX sockets and FIFOs. They are set on the file descriptor rather than a file system path because the /dev/mqueue path interface is an optional mount unit.
This commit is contained in:
committed by
Lennart Poettering
parent
2b7a56d286
commit
3eec82f6b3
@@ -375,7 +375,7 @@
|
||||
<term><varname>SocketGroup=</varname></term>
|
||||
|
||||
<listitem><para>Takes a UNIX user/group name. When specified, all <constant>AF_UNIX</constant>
|
||||
sockets and FIFO nodes in the file system are owned by the specified user and group. If unset (the
|
||||
sockets, FIFO nodes, and message queues are owned by the specified user and group. If unset (the
|
||||
default), the nodes are owned by the root user/group (if run in system context) or the invoking
|
||||
user/group (if run in user context). If only a user is specified but no group, then the group is
|
||||
derived from the user's default group.</para>
|
||||
@@ -385,10 +385,9 @@
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>SocketMode=</varname></term>
|
||||
<listitem><para>If listening on a file system socket or FIFO,
|
||||
this option specifies the file system access mode used when
|
||||
creating the file node. Takes an access mode in octal
|
||||
notation. Defaults to 0666.</para></listitem>
|
||||
<listitem><para>If listening on a file system socket, FIFO, or message queue, this option specifies
|
||||
the file system access mode used when creating the file node. Takes an access mode in octal notation.
|
||||
Defaults to 0666.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user