sd_bus_creds_new_from_pid.xml revision 8474b70c3a3842cdf3d51f331dd117ab6421f6d0
03831d35f7499c87d51205817c93e9a8d42c4baestevel<?xml version='1.0'?> <!--*-nxml-*-->
03831d35f7499c87d51205817c93e9a8d42c4baestevel<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
03831d35f7499c87d51205817c93e9a8d42c4baestevel"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel<!--
03831d35f7499c87d51205817c93e9a8d42c4baestevelThis file is part of systemd.
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCopyright 2014 Zbigniew Jędrzejewski-Szmek
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelsystemd is free software; you can redistribute it and/or modify it
03831d35f7499c87d51205817c93e9a8d42c4baestevelunder the terms of the GNU Lesser General Public License as published by
03831d35f7499c87d51205817c93e9a8d42c4baestevelthe Free Software Foundation; either version 2.1 of the License, or
03831d35f7499c87d51205817c93e9a8d42c4baestevel(at your option) any later version.
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelsystemd is distributed in the hope that it will be useful, but
03831d35f7499c87d51205817c93e9a8d42c4baestevelWITHOUT ANY WARRANTY; without even the implied warranty of
03831d35f7499c87d51205817c93e9a8d42c4baestevelMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
03831d35f7499c87d51205817c93e9a8d42c4baestevelLesser General Public License for more details.
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelYou should have received a copy of the GNU Lesser General Public License
03831d35f7499c87d51205817c93e9a8d42c4baestevelalong with systemd; If not, see <http://www.gnu.org/licenses/>.
03831d35f7499c87d51205817c93e9a8d42c4baestevel-->
07d06da50d310a325b457d6330165aebab1e0064Surya Prakki
03831d35f7499c87d51205817c93e9a8d42c4baestevel<refentry id="sd_bus_creds_new_from_pid" conditional="ENABLE_KDBUS">
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refentryinfo>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>sd_bus_creds_new_from_pid</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <productname>systemd</productname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <authorgroup>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <author>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <contrib>A monkey with a typewriter</contrib>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <firstname>Zbigniew</firstname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <surname>Jędrzejewski-Szmek</surname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <email>zbyszek@in.waw.pl</email>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </author>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </authorgroup>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refentryinfo>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refmeta>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refentrytitle>sd_bus_creds_new_from_pid</refentrytitle>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <manvolnum>3</manvolnum>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refmeta>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refnamediv>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refname>sd_bus_creds_new_from_pid</refname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refname>sd_bus_creds_get_mask</refname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refname>sd_bus_creds_ref</refname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refname>sd_bus_creds_unref</refname>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refpurpose>Retrieve credentials object for the specified PID</refpurpose>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refnamediv>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsynopsisdiv>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcsynopsis>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcdef>int <function>sd_bus_creds_new_from_pid</function></funcdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>pid_t <parameter>pid</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>uint64_t <parameter>creds_mask</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>sd_bus_creds **<parameter>ret</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcdef>uint64_t <function>sd_bus_creds_get_mask</function></funcdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>const sd_bus_creds *<parameter>c</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcdef>sd_bus_creds *<function>sd_bus_creds_ref</function></funcdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>sd_bus_creds *<parameter>c</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <funcdef>sd_bus_creds *<function>sd_bus_creds_unref</function></funcdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <paramdef>sd_bus_creds *<parameter>c</parameter></paramdef>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </funcprototype>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </funcsynopsis>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_PID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_PID_STARTTIME</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_TID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_GID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_COMM</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_TID_COMM</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_EXE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_CMDLINE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_CGROUP</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UNIT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_USER_UNIT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SLICE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SESSION</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_OWNER_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_EFFECTIVE_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_PERMITTED_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_INHERITABLE_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_BOUNDING_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SELINUX_CONTEXT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_AUDIT_SESSION_ID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_AUDIT_LOGIN_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UNIQUE_NAME</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_WELL_KNOWN_NAMES</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>_SD_BUS_CREDS_ALL</constant>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsynopsisdiv>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>Description</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_new_from_pid()</function> creates a new
03831d35f7499c87d51205817c93e9a8d42c4baestevel credentials object and fills it with information about the process
03831d35f7499c87d51205817c93e9a8d42c4baestevel <parameter>pid</parameter>. This pointer to this object will
03831d35f7499c87d51205817c93e9a8d42c4baestevel be stored in <parameter>ret</parameter> pointer.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>The information that will be stored is determined by
03831d35f7499c87d51205817c93e9a8d42c4baestevel <parameter>creds_mask</parameter>. It may contain a subset of ORed
03831d35f7499c87d51205817c93e9a8d42c4baestevel constants <constant>SD_BUS_CREDS_PID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_PID_STARTTIME</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_TID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_GID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_COMM</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_TID_COMM</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_EXE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_CMDLINE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_CGROUP</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UNIT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_USER_UNIT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SLICE</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SESSION</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_OWNER_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_EFFECTIVE_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_PERMITTED_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_INHERITABLE_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_BOUNDING_CAPS</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_SELINUX_CONTEXT</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_AUDIT_SESSION_ID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_AUDIT_LOGIN_UID</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_UNIQUE_NAME</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>SD_BUS_CREDS_WELL_KNOWN_NAMES</constant>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel or <constant>_SD_BUS_CREDS_ALL</constant> to indicate
03831d35f7499c87d51205817c93e9a8d42c4baestevel all known fields.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>Fields can be retrieved from the credentials object using
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_pid</refentrytitle><manvolnum>3</manvolnum></citerefentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel and other functions which correspond directly to the constants
03831d35f7499c87d51205817c93e9a8d42c4baestevel listed above.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>A mask of fields which were actually successfully set
03831d35f7499c87d51205817c93e9a8d42c4baestevel (acquired from <filename>/proc</filename>, etc.) can be retrieved
03831d35f7499c87d51205817c93e9a8d42c4baestevel with <function>sd_bus_creds_get_mask()</function>. If the
03831d35f7499c87d51205817c93e9a8d42c4baestevel credentials object was created with
03831d35f7499c87d51205817c93e9a8d42c4baestevel <function>sd_bus_creds_new_from_pid()</function>, this will be a
03831d35f7499c87d51205817c93e9a8d42c4baestevel subset of fields requested in <parameter>creds_mask</parameter>.
03831d35f7499c87d51205817c93e9a8d42c4baestevel </para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_ref</function> creates a new
03831d35f7499c87d51205817c93e9a8d42c4baestevel reference to the credentials object <parameter>c</parameter>. This
03831d35f7499c87d51205817c93e9a8d42c4baestevel object will not be destroyed until
03831d35f7499c87d51205817c93e9a8d42c4baestevel <function>sd_bus_creds_unref</function> has been called as many
03831d35f7499c87d51205817c93e9a8d42c4baestevel times plus once more. Once the reference count has dropped to zero,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <parameter>c</parameter> cannot be used anymore, so further
03831d35f7499c87d51205817c93e9a8d42c4baestevel calls to <function>sd_bus_creds_ref(c)</function> or
03831d35f7499c87d51205817c93e9a8d42c4baestevel <function>sd_bus_creds_unref(c)</function> are illegal.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_unref</function> destroys a reference
03831d35f7499c87d51205817c93e9a8d42c4baestevel to <parameter>c</parameter>.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>Return Value</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>On success, <function>sd_bus_creds_new_from_pid()</function>
03831d35f7499c87d51205817c93e9a8d42c4baestevel returns 0 or a positive integer. On failure, it returns a negative
03831d35f7499c87d51205817c93e9a8d42c4baestevel errno-style error code.</para>
193974072f41a843678abf5f61979c748687e66bSherry Moore
193974072f41a843678abf5f61979c748687e66bSherry Moore <para><function>sd_bus_creds_get_mask()</function> returns the
193974072f41a843678abf5f61979c748687e66bSherry Moore mask of successfully acquired fields.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_ref</function> always returns the
03831d35f7499c87d51205817c93e9a8d42c4baestevel argument.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_unref</function> always returns
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>NULL</constant>.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>Reference ownership</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
193974072f41a843678abf5f61979c748687e66bSherry Moore <para>Function <function>sd_bus_creds_new_from_pid()</function>
03831d35f7499c87d51205817c93e9a8d42c4baestevel creates a new object and the caller owns the sole reference. When
03831d35f7499c87d51205817c93e9a8d42c4baestevel not needed anymore, this reference should be destroyed with
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
03831d35f7499c87d51205817c93e9a8d42c4baestevel </para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>Errors</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>Returned errors may indicate the following problems:</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <variablelist>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <term><constant>-ESRCH</constant></term>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <listitem><para>Specified <parameter>pid</parameter> could not
03831d35f7499c87d51205817c93e9a8d42c4baestevel be found.</para></listitem>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <term><constant>-EINVAL</constant></term>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <listitem><para>Specified parameter is invalid
03831d35f7499c87d51205817c93e9a8d42c4baestevel (<constant>NULL</constant> in case of output
03831d35f7499c87d51205817c93e9a8d42c4baestevel parameters).</para></listitem>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <term><constant>-ENOMEM</constant></term>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <listitem><para>Memory allocation failed.</para></listitem>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </varlistentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </variablelist>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>Notes</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para><function>sd_bus_creds_new_from_pid()</function> is
03831d35f7499c87d51205817c93e9a8d42c4baestevel available as a shared library, which can be compiled and linked to
03831d35f7499c87d51205817c93e9a8d42c4baestevel with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel <constant>libsystemd</constant> <citerefentry project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel file.</para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <title>See Also</title>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel <para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_ref</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_pid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_pid_starttime</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_tid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_uid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_gid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_comm</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_tid_comm</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_exe</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_cmdline</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_cgroup</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_unit</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_user_unit</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_slice</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_session</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_owner_uid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_has_effective_cap</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_has_permitted_cap</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_has_inheritable_cap</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_has_bounding_cap</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_selinux_context</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_audit_session_id</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_audit_login_uid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_unique_name</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
03831d35f7499c87d51205817c93e9a8d42c4baestevel <citerefentry><refentrytitle>sd_bus_creds_get_well_known_names</refentrytitle><manvolnum>3</manvolnum></citerefentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </para>
03831d35f7499c87d51205817c93e9a8d42c4baestevel </refsect1>
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel</refentry>
03831d35f7499c87d51205817c93e9a8d42c4baestevel