Systemd/src/libsystemd/sd-bus
Lennart Poettering cfeaa44a09 sd-bus: properly handle creds that are known but undefined for a process
A number of fields do not apply to all processes, including: there a
processes without a controlling tty, without parent process, without
service, user services or session. To distuingish these cases from the
case where we simply don't have the data, always return ENXIO for them,
while returning ENODATA for the case where we really lack the
information.

Also update the credentials dumping code to show this properly. Fields
that are known but do not apply are now shown as "n/a".

Note that this also changes some of the calls in process-util.c and
cgroup-util.c to return ENXIO for these cases.
2015-04-29 21:45:58 +02:00
..
bus-bloom.c bus-bloom: Fix bloom filter calculation 2014-08-13 16:24:59 +02:00
bus-bloom.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-common-errors.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
bus-common-errors.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-container.c shared: add process-util.[ch] 2015-04-10 23:54:49 +02:00
bus-container.h libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
bus-control.c sd-bus: properly handle creds that are known but undefined for a process 2015-04-29 21:45:58 +02:00
bus-control.h bus-proxy: fix compat with autostarted services 2014-12-08 23:52:27 +01:00
bus-convenience.c sd-bus: when augmenting creds, remember which ones were augmented 2015-04-21 00:58:56 +02:00
bus-creds.c sd-bus: properly handle creds that are known but undefined for a process 2015-04-29 21:45:58 +02:00
bus-creds.h sd-bus: add controlling tty field to sd_creds object 2015-04-23 19:43:40 +02:00
bus-dump.c sd-bus: properly handle creds that are known but undefined for a process 2015-04-29 21:45:58 +02:00
bus-dump.h busctl: improve output of service creds 2014-11-20 00:01:05 +01:00
bus-error.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
bus-error.h sd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variable 2014-12-10 19:07:48 +01:00
bus-gvariant.c remove unused includes 2015-02-23 23:53:42 +01:00
bus-gvariant.h Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"" 2015-02-16 15:03:44 +01:00
bus-internal.c bus-proxy: properly check for bus name prefixes when enforcing policy 2014-11-14 20:06:01 +01:00
bus-internal.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-introspect.c remove unused includes 2015-02-23 23:53:42 +01:00
bus-introspect.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-kernel.c sd-bus: properly handle creds that are known but undefined for a process 2015-04-29 21:45:58 +02:00
bus-kernel.h bus: sync with kdbus (ABI break) 2015-02-05 16:52:42 +01:00
bus-match.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
bus-match.h sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached to a bus connection 2014-05-15 01:15:30 +02:00
bus-message.c bus: simplify bus_message_read_strv_extend() 2015-04-09 22:59:59 +02:00
bus-message.h sd-bus, shared: fix includes 2015-02-24 00:42:13 +01:00
bus-objects.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
bus-objects.h sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached to a bus connection 2014-05-15 01:15:30 +02:00
bus-protocol.h Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"" 2015-02-16 15:03:44 +01:00
bus-signature.c libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
bus-signature.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-slot.c sd-bus: also allow setting descriptions on bus slots 2014-11-04 18:09:19 +01:00
bus-slot.h sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached to a bus connection 2014-05-15 01:15:30 +02:00
bus-socket.c sd-bus: don't inherit connection creds into message creds when we have a direct connection 2015-04-23 13:40:54 +02:00
bus-socket.h libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
bus-track.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
bus-track.h bus: add sd_bus_track object for tracking peers, and port core over to it 2014-03-03 02:34:13 +01:00
bus-type.c remove unused includes 2015-02-23 23:53:42 +01:00
bus-type.h remove unused includes 2015-02-23 23:53:42 +01:00
bus-util.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
bus-util.h bus-util: drop redundant bus argument from bus_message_map_all_properties() and related calls 2015-04-28 21:34:23 +02:00
busctl-introspect.c busctl: add new "introspect" verb for introspecting objects 2014-11-20 00:01:05 +01:00
busctl-introspect.h remove unused includes 2015-02-23 23:53:42 +01:00
busctl.c shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
DIFFERENCES Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"" 2015-02-16 15:03:44 +01:00
GVARIANT-SERIALIZATION Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"" 2015-02-16 15:03:44 +01:00
kdbus.h sd-bus: sync kdbus.h (ABI break) 2015-03-02 11:36:35 +01:00
Makefile libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
PORTING-DBUS1 sd-bus: sync with kdbus upstream (ABI break) 2014-11-13 20:41:52 +01:00
sd-bus.c sd-bus: allow passing NULL as bus parameter to sd_bus_send() 2015-04-29 18:58:30 +02:00
test-bus-benchmark.c test: rename test-bus-kernel-benchmark to test-bus-benchmark 2015-04-29 17:08:31 +02:00
test-bus-chat.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
test-bus-cleanup.c tests: fix some tests to pass in koji 2014-10-12 17:31:02 -04:00
test-bus-creds.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-error.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
test-bus-gvariant.c Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"" 2015-02-16 15:03:44 +01:00
test-bus-introspect.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-kernel-bloom.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-kernel.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-marshal.c bus: implement bus_path_{en,de}code_unique() 2015-04-11 13:27:49 +02:00
test-bus-match.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
test-bus-objects.c sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
test-bus-server.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-signature.c remove unused includes 2015-02-23 23:53:42 +01:00
test-bus-zero-copy.c remove unused includes 2015-02-23 23:53:42 +01:00