diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-27 18:16:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-03-29 19:09:10 +0200 |
commit | 5f43c97cd24b25f846d005eccd7837a2cd279230 (patch) | |
tree | e5e87e70e647b676fc81bb4d434a3e24071108d7 /man | |
parent | 2ea24611b99d12955ba374f072148b9ad6d644dc (diff) | |
download | systemd-5f43c97cd24b25f846d005eccd7837a2cd279230.tar.gz |
analyze: add new fdstore verb
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd-analyze.xml | 35 | ||||
-rw-r--r-- | man/systemd.service.xml | 13 |
2 files changed, 47 insertions, 1 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index ad6d691a1d..9fd28e6f45 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -156,6 +156,12 @@ <arg choice="plain">malloc</arg> <arg choice="opt" rep="repeat"><replaceable>D-BUS SERVICE</replaceable></arg> </cmdsynopsis> + <cmdsynopsis> + <command>systemd-analyze</command> + <arg choice="opt" rep="repeat">OPTIONS</arg> + <arg choice="plain">fdstore</arg> + <arg choice="opt" rep="repeat"><replaceable>UNIT</replaceable></arg> + </cmdsynopsis> </refsynopsisdiv> <refsect1> @@ -803,8 +809,37 @@ $ systemd-analyze verify /tmp/source:alias.service } </programlisting> </example> + </refsect2> + + <refsect2> + <title><command>systemd-analyze fdstore <optional><replaceable>UNIT</replaceable>...</optional></command></title> + + <para>Lists the current contents of the specified service unit's file descriptor store. This shows + names, inode types, device numbers, inode numbers, paths and open modes of the open file + descriptors. The specified units must have <varname>FileDescriptorStoreMax=</varname> enabled, see + <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry> for + details.</para> + + <example> + <title>Table output</title> + <programlisting>$ systemd-analyze fdstore systemd-journald.service +FDNAME TYPE DEVNO INODE RDEVNO PATH FLAGS +stored sock 0:8 4218620 - socket:[4218620] ro +stored sock 0:8 4213198 - socket:[4213198] ro +stored sock 0:8 4213190 - socket:[4213190] ro +…</programlisting> + </example> + <para>Note: the "DEVNO" column refers to the major/minor numbers of the device node backing the file + system the file descriptor's inode is on. The "RDEVNO" column refers to the major/minor numbers of the + device node itself if the file descriptor refers to one. Compare with corresponding + <varname>.st_dev</varname> and <varname>.st_rdev</varname> fields in <type>struct stat</type> (see + <citerefentry + project='man-pages'><refentrytitle>stat</refentrytitle><manvolnum>2</manvolnum></citerefentry> for + details). The listed inode numbers in the "INODE" column are on the file system indicated by + "DEVNO".</para> </refsect2> + </refsect1> <refsect1> diff --git a/man/systemd.service.xml b/man/systemd.service.xml index e8be2ff468..665128ee77 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1141,7 +1141,18 @@ fully stopped and no job is queued or being executed for it. If this option is used, <varname>NotifyAccess=</varname> (see above) should be set to open access to the notification socket provided by systemd. If <varname>NotifyAccess=</varname> is not set, it will be implicitly set to - <option>main</option>.</para></listitem> + <option>main</option>.</para> + + <para>The <command>fdstore</command> command of + <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry> + may be used to list the current contents of a service's file descriptor store.</para> + + <para>Note that the service manager will only pass file descriptors contained in the file descriptor + store to the service's own processes, never to other clients via IPC or similar. However, it does + allow unprivileged clients to query the list of currently open file descriptors of a + service. Sensitive data may hence be safely placed inside the referenced files, but should not be + attached to the metadata (e.g. included in filenames) of the stored file + descriptors.</para></listitem> </varlistentry> <varlistentry> |