Systemd/src
Lennart Poettering ebcf1f97de bus: rework message handlers to always take an error argument
Message handler callbacks can be simplified drastically if the
dispatcher automatically replies to method calls if errors are returned.

Thus: add an sd_bus_error argument to all message handlers. When we
dispatch a message handler and it returns negative or a set sd_bus_error
we send this as message error back to the client. This means errors
returned by handlers by default are given back to clients instead of
rippling all the way up to the event loop, which is desirable to make
things robust.

As a side-effect we can now easily turn the SELinux checks into normal
function calls, since the method call dispatcher will generate the right
error replies automatically now.

Also, make sure we always pass the error structure to all property and
method handlers as last argument to follow the usual style of passing
variables for return values as last argument.
2013-11-21 21:12:36 +01:00
..
ac-power unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
activate remove unused variables 2013-11-18 23:04:16 +01:00
analyze analyze: plot the time spent setting up security modules 2013-11-10 23:21:15 +01:00
ask-password clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
backlight Remove duplicate includes 2013-11-18 20:28:55 -05:00
binfmt clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
boot bootctl: remove unused options from getopt_long 2013-11-09 14:11:56 +01:00
bootchart Fix for SIGSEGV in systemd-bootchart on short-living processes 2013-10-15 09:40:34 -04:00
cgls clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
cgroups-agent bus: move ssh support into public API of libsystem-bus 2013-10-30 15:35:49 +01:00
cgtop clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
core bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
cryptsetup util: unify reading of /proc/cmdline 2013-11-06 03:15:16 +01:00
delta clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
detect-virt clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
efi-boot-generator efi-boot-generator: don't mount /boot eagerly 2013-11-21 12:36:05 +01:00
fsck fsck,fstab-generator: be lenient about missing fsck.<type> 2013-11-15 22:53:14 -05:00
fstab-generator fstab-generator: use RequiresOverridable for fsck units 2013-11-15 22:53:14 -05:00
getty-generator getty-generator: modernizations 2013-10-31 01:43:38 +01:00
gpt-auto-generator gpt-auto-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo 2013-10-19 12:23:17 +02:00
gudev licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
hostname bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
initctl bus: move ssh support into public API of libsystem-bus 2013-10-30 15:35:49 +01:00
journal Remove duplicate includes 2013-11-18 20:28:55 -05:00
kernel-install kernel-install: add compat with 'installkernel' 2013-10-01 17:40:30 +02:00
libsystemd-bus bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
libsystemd-daemon Include <fcntl.h> instead of <sys/fcntl.h> 2013-04-13 21:02:03 -04:00
libsystemd-id128 id128: when taking user input for a 128bit ID, validate syntax 2013-04-30 08:36:01 -03:00
libsystemd-rtnl bus/rtnl: silence clang warnings 2013-11-20 12:42:43 +01:00
libudev libudev: always return NULL in _unref() APIs 2013-11-20 19:36:14 +01:00
locale bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
login bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
machine bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
machine-id-setup clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
modules-load clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
network networkd: make sure Network and Link can always be freed 2013-11-21 21:04:04 +01:00
notify clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
nspawn nspawn: add new --drop-capability= switch 2013-11-20 22:10:42 +01:00
nss-myhostname Remove duplicate includes 2013-11-18 20:28:55 -05:00
python-systemd systemd-python: fix booted() and add two functions to docs 2013-11-12 19:01:50 -05:00
quotacheck util: unify reading of /proc/cmdline 2013-11-06 03:15:16 +01:00
random-seed random-seed: improve debugging messages a bit 2013-11-15 22:53:14 -05:00
rc-local-generator rc-local: use access(X_OK) to check if files are executable 2013-10-29 19:34:59 +01:00
readahead clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
remount-fs Introduce _cleanup_endmntent_ 2013-10-03 22:13:55 -04:00
reply-password Use initalization instead of explicit zeroing 2013-04-05 19:50:57 -04:00
rfkill util: unify reading of /proc/cmdline 2013-11-06 03:15:16 +01:00
run bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call() 2013-11-12 00:12:43 +01:00
shared bus: add API calls to escape string components of objects paths 2013-11-21 01:03:26 +01:00
shutdownd Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
sleep clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
socket-proxy bus: introduce concept of a "default" event loop per-thread and make use of it everywhere 2013-11-12 00:12:43 +01:00
stdio-bridge timedated: use libsystemd-bus instead of libdbus for bus communication 2013-10-16 06:15:02 +02:00
sysctl Remove duplicate includes 2013-11-18 20:28:55 -05:00
system-update-generator Standarize on one spelling of symlink error message 2013-04-24 00:25:04 -04:00
systemctl bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
systemd bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
test bus: add API calls to escape string components of objects paths 2013-11-21 01:03:26 +01:00
timedate bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
tmpfiles clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
tty-ask-password-agent clients: unify how we invoke getopt_long() 2013-11-06 18:28:39 +01:00
udev Remove duplicate includes 2013-11-18 20:28:55 -05:00
update-utmp bus: use new property retrieval calls everywhere 2013-11-07 22:17:19 +01:00
vconsole move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
.gitignore Add test coverage and generate report with lcov 2013-07-13 21:56:33 -04:00
Makefile