X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_bus_creds_get_pid.xml;h=23763bd6ae273a46dd2219959b11a2477e57e536;hb=e4c691b59db60ef2e6d8e64766d6ae02cd0dd457;hp=fcc5557163ab2a36b9bb3edd071a6469ae07f561;hpb=b7ea3f3ed6204dca31f8f2a84b667c1783259c5b;p=elogind.git diff --git a/man/sd_bus_creds_get_pid.xml b/man/sd_bus_creds_get_pid.xml index fcc555716..23763bd6a 100644 --- a/man/sd_bus_creds_get_pid.xml +++ b/man/sd_bus_creds_get_pid.xml @@ -67,6 +67,7 @@ along with systemd; If not, see . sd_bus_creds_get_audit_login_uid sd_bus_creds_get_unique_name sd_bus_creds_get_well_known_names + sd_bus_creds_get_connection_name Retrieve fields from a credentials object @@ -219,6 +220,12 @@ along with systemd; If not, see . char ***name + + int sd_bus_creds_get_connection_name + sd_bus_creds *c + const char **name + + @@ -230,7 +237,7 @@ along with systemd; If not, see . sd_bus_creds_new_from_pid3, in which case it will describe the specified process, or it may be created by - sd_bus_get_peer_creds3, + sd_bus_get_owner_creds3, in which case it will describe the process at the other endpoint of a connection. @@ -352,6 +359,13 @@ along with systemd; If not, see . url="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus">The D-Bus specification. + sd_bus_creds_get_connection_name() will + retrieve a descriptive name of the bus connection of the + peer. This name is useful to discern multiple bus connections by + the same peer, and may be altered by the peer with the + sd_bus_set_name()3 + call. + All functions that take a const char** parameter will store the answer there as an address of a NUL-terminated string. It will be valid as long as @@ -396,7 +410,7 @@ along with systemd; If not, see . sd_bus_get_user_unit(), sd_bus_get_slice(), sd_bus_get_session(), and - sd_bus_get_owner_uid() if the sender is not + sd_bus_get_name_creds_uid() if the sender is not part of a systemd system unit, systemd user unit, systemd slice, logind session, or a systemd user session.