diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2024-10-28 20:58:58 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-11-01 11:46:55 +0100 |
commit | 890bdd1d77f773744612a0da53ce9411f71a13b0 (patch) | |
tree | 278d50877c3e1332f5dfc2a3b12624ecc4de0d4f /man/org.freedesktop.systemd1.xml | |
parent | build(deps): bump actions/checkout from 4.2.0 to 4.2.2 (diff) | |
download | systemd-890bdd1d77f773744612a0da53ce9411f71a13b0.tar.xz systemd-890bdd1d77f773744612a0da53ce9411f71a13b0.zip |
core: add read-only flag for exec directories
When an exec directory is shared between services, this allows one of the
service to be the producer of files, and the other the consumer, without
letting the consumer modify the shared files.
This will be especially useful in conjunction with id-mapped exec directories
so that fully sandboxed services can share directories in one direction, safely.
Diffstat (limited to 'man/org.freedesktop.systemd1.xml')
-rw-r--r-- | man/org.freedesktop.systemd1.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index f484f28a70..7ade8c3e8b 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -4847,8 +4847,12 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice { <varname>CacheDirectorySymlink</varname> and <varname>LogsDirectorySymlink</varname> respectively implement the destination parameter of the unit files settings <varname>RuntimeDirectory</varname>, <varname>StateDirectory</varname>, <varname>CacheDirectory</varname> and <varname>LogsDirectory</varname>, - which will create a symlink of the given name to the respective directory. The messages take an unused - <varname>flags</varname> parameter, reserved for future backward-compatible changes.</para> + which will create a symlink of the given name to the respective directory. The messages take a + <varname>flags</varname> parameter that make the directory read only:</para> + + <programlisting> +#define SD_EXEC_DIRECTORY_READ_ONLY (UINT64_C(1) << 0) + </programlisting> <para><varname>ExtraFileDescriptorNames</varname> contains file descriptor names passed to the service via the <varname>ExtraFileDescriptors</varname> property in the <function>StartTransientUnit()</function> |