diff options
Diffstat (limited to 'man/sd_bus_creds_get_pid.xml')
-rw-r--r-- | man/sd_bus_creds_get_pid.xml | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/man/sd_bus_creds_get_pid.xml b/man/sd_bus_creds_get_pid.xml index 66fcaa7..0630329 100644 --- a/man/sd_bus_creds_get_pid.xml +++ b/man/sd_bus_creds_get_pid.xml @@ -1,6 +1,6 @@ <?xml version='1.0'?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <!-- SPDX-License-Identifier: LGPL-2.1-or-later --> <refentry id="sd_bus_creds_get_pid" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -17,6 +17,7 @@ <refnamediv> <refname>sd_bus_creds_get_pid</refname> + <refname>sd_bus_creds_get_pidfd_dup</refname> <refname>sd_bus_creds_get_ppid</refname> <refname>sd_bus_creds_get_tid</refname> <refname>sd_bus_creds_get_uid</refname> @@ -65,6 +66,12 @@ </funcprototype> <funcprototype> + <funcdef>int <function>sd_bus_creds_get_pidfd_dup</function></funcdef> + <paramdef>sd_bus_creds *<parameter>c</parameter></paramdef> + <paramdef>int *<parameter>ret_fd</parameter></paramdef> + </funcprototype> + + <funcprototype> <funcdef>int <function>sd_bus_creds_get_ppid</function></funcdef> <paramdef>sd_bus_creds *<parameter>c</parameter></paramdef> <paramdef>pid_t *<parameter>ppid</parameter></paramdef> @@ -289,11 +296,14 @@ <citerefentry><refentrytitle>sd_bus_creds_get_mask</refentrytitle><manvolnum>3</manvolnum></citerefentry> to determine the mask of fields available.</para> - <para><function>sd_bus_creds_get_pid()</function> will retrieve - the PID (process identifier). Similarly, - <function>sd_bus_creds_get_ppid()</function> will retrieve the - parent PID. Note that PID 1 has no parent process, in which case - -ENXIO is returned.</para> + <para><function>sd_bus_creds_get_pid()</function> will retrieve the PID (process identifier). Similarly, + <function>sd_bus_creds_get_ppid()</function> will retrieve the parent PID. Note that PID 1 has no parent + process, in which case -ENXIO is returned.</para> + + <para><function>sd_bus_creds_get_pidfd_dup()</function> will retrieve the PID file descriptor (pidfd), + see <citerefentry + project='man-pages'><refentrytitle>pidfd_open</refentrytitle><manvolnum>2</manvolnum></citerefentry> for + details. The file descriptor is duplicated and thus must be closed by the caller.</para> <para><function>sd_bus_creds_get_tid()</function> will retrieve the TID (thread identifier).</para> @@ -529,9 +539,9 @@ <function>sd_bus_creds_get_selinux_context()</function>, <function>sd_bus_creds_get_audit_session_id()</function>, <function>sd_bus_creds_get_audit_login_uid()</function>, - <function>sd_bus_creds_get_unique_name()</function>, and - <function>sd_bus_creds_get_well_known_names()</function> were added in version 209.</para> - <para><function>sd_bus_creds_get_ppid()</function>, + <function>sd_bus_creds_get_unique_name()</function>, + <function>sd_bus_creds_get_well_known_names()</function>, + <function>sd_bus_creds_get_ppid()</function>, <function>sd_bus_creds_get_uid()</function>, <function>sd_bus_creds_get_euid()</function>, <function>sd_bus_creds_get_suid()</function>, @@ -540,25 +550,26 @@ <function>sd_bus_creds_get_sgid()</function>, <function>sd_bus_creds_get_fsgid()</function>, <function>sd_bus_creds_get_supplementary_gids()</function>, - <function>sd_bus_creds_get_tty()</function>, and - <function>sd_bus_creds_get_description()</function> were added in version 220.</para> - <para><function>sd_bus_creds_get_user_slice()</function> was added in version 223.</para> + <function>sd_bus_creds_get_tty()</function>, + <function>sd_bus_creds_get_description()</function>, and + <function>sd_bus_creds_get_user_slice()</function> were added in version 221.</para> + <para><function>sd_bus_creds_get_pidfd_dup()</function> was added in version 256.</para> </refsect1> <refsect1> <title>See Also</title> - <para> - <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, - <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>, - <citerefentry><refentrytitle>sd_bus_creds_new_from_pid</refentrytitle><manvolnum>2</manvolnum></citerefentry>, - <citerefentry project='man-pages'><refentrytitle>fork</refentrytitle><manvolnum>2</manvolnum></citerefentry>, - <citerefentry project='man-pages'><refentrytitle>execve</refentrytitle><manvolnum>2</manvolnum></citerefentry>, - <citerefentry project='man-pages'><refentrytitle>credentials</refentrytitle><manvolnum>7</manvolnum></citerefentry>, - <citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>, - <citerefentry project='man-pages'><refentrytitle>proc</refentrytitle><manvolnum>5</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemd.journal-fields</refentrytitle><manvolnum>7</manvolnum></citerefentry> - </para> + <para><simplelist type="inline"> + <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>sd_bus_creds_new_from_pid</refentrytitle><manvolnum>2</manvolnum></citerefentry></member> + <member><citerefentry project='man-pages'><refentrytitle>fork</refentrytitle><manvolnum>2</manvolnum></citerefentry></member> + <member><citerefentry project='man-pages'><refentrytitle>execve</refentrytitle><manvolnum>2</manvolnum></citerefentry></member> + <member><citerefentry project='man-pages'><refentrytitle>credentials</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> + <member><citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry></member> + <member><citerefentry project='man-pages'><refentrytitle>proc</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>systemd.journal-fields</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> + </simplelist></para> </refsect1> </refentry> |