sd_bus_creds_get_pid.xml revision cd6d5e1c7631d6e74cb04be279dee22e423e08b8
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimThis file is part of systemd.
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimCopyright 2014 Zbigniew Jędrzejewski-Szmek
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimsystemd is free software; you can redistribute it and/or modify it
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimunder the terms of the GNU Lesser General Public License as published by
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimthe Free Software Foundation; either version 2.1 of the License, or
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim(at your option) any later version.
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimsystemd is distributed in the hope that it will be useful, but
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimWITHOUT ANY WARRANTY; without even the implied warranty of
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimLesser General Public License for more details.
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimYou should have received a copy of the GNU Lesser General Public License
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jimalong with systemd; If not, see <http://www.gnu.org/licenses/>.
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <refentryinfo>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <authorgroup>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </authorgroup>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </refentryinfo>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </refmeta>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <refnamediv>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <refname>sd_bus_creds_get_well_known_names</refname>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <refpurpose>Retrieve fields from a credentials object</refpurpose>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </refnamediv>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <refsynopsisdiv>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcsynopsis>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <funcsynopsisinfo>#include <systemd/sd-bus.h></funcsynopsisinfo>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_pid</function></funcdef>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere <paramdef>pid_t *<parameter>pid</parameter></paramdef>
834fc281be8e0f7f2614961f12d8bbf603382a17jfclere </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_pid_starttime</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>uint64_t *<parameter>usec</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_tid</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_pid</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
23a31b10f869a72c9197b5f153f4f3e1a4c68f28jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_gid</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <funcprototype>
6bed231822ad2aaba16de74c4c01023e5982a5e2jfclere <funcdef>int <function>sd_bus_creds_get_comm</function></funcdef>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <paramdef>const char **<parameter>comm</parameter></paramdef>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim </funcprototype>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <funcprototype>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <funcdef>int <function>sd_bus_creds_get_tid_comm</function></funcdef>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
2c4ed36c350564e8bfb68e9d9ba58fe77b9bf3c0jim <paramdef>const char **<parameter>comm</parameter></paramdef>
b1e3273c2e70ad5ac64feef979b2ed1d98c09963jim </funcprototype>
6bed231822ad2aaba16de74c4c01023e5982a5e2jfclere <funcprototype>
b1e3273c2e70ad5ac64feef979b2ed1d98c09963jim <funcdef>int <function>sd_bus_creds_get_exe</function></funcdef>
b1e3273c2e70ad5ac64feef979b2ed1d98c09963jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
b1e3273c2e70ad5ac64feef979b2ed1d98c09963jim <paramdef>const char **<parameter>exe</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_cmdline</function></funcdef>
9a0e1ad272fdbe3fee989e93bdae8253418429edjfclere <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
b1e3273c2e70ad5ac64feef979b2ed1d98c09963jim <paramdef>char ***<parameter>cmdline</parameter></paramdef>
9a0e1ad272fdbe3fee989e93bdae8253418429edjfclere </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_cgroup</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>const char **<parameter>cgroup</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
36ef8f77bffe75d1aa327882be1b5bdbe2ff567asf <funcdef>int <function>sd_bus_creds_get_unit</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>const char **<parameter>unit</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim </funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcprototype>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <funcdef>int <function>sd_bus_creds_get_user_unit</function></funcdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>sd_bus_creds* <parameter>c</parameter></paramdef>
dfcadcd3e6bbdee594540b8f8e4e50586a2e3219jim <paramdef>const char **<parameter>unit</parameter></paramdef>
<citerefentry><refentrytitle>sd_bus_creds_new_from_pid</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_bus_get_peer_creds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<filename>/proc/<replaceable>pid</replaceable>/task/<replaceable>tid</replaceable>/comm</filename>).
<citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
<citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> -->.
url="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus">The
url="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus">The
<constant>libsystemd-bus</constant> <citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
<citerefentry><refentrytitle>systemd.journald-fields</refentrytitle><manvolnum>7</manvolnum></citerefentry>