Systemd/src/core
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
..
.gitignore execute: support syscall filtering using seccomp filters 2012-07-17 04:17:53 +02:00
async.c Make tmpdir removal asynchronous 2013-09-17 10:26:30 -05:00
async.h Make tmpdir removal asynchronous 2013-09-17 10:26:30 -05:00
audit-fd.c selinux: remove anything PID1-specific from selinux-access.[ch] so that we can reuse it in logind 2012-10-02 17:56:54 -04:00
audit-fd.h audit: turn the audit fd into a static variable 2012-10-02 17:40:09 -04:00
automount.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
automount.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
build.h journal: make libgcrypt dependency optional 2012-08-20 16:51:46 +02:00
cgroup.c systemd: fix memory leak in cgroup code 2013-11-09 19:02:53 -05:00
cgroup.h cgroup: get rid of MemorySoftLimit= 2013-09-17 14:58:00 -05:00
condition.c util: unify reading of /proc/cmdline 2013-11-06 03:15:16 +01:00
condition.h systemd,systemctl: export condition status and show failing condition 2013-07-17 23:41:10 -04:00
dbus-automount.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-automount.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-cgroup.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-cgroup.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-client-track.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-client-track.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-device.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-device.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-execute.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-execute.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-job.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-job.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-kill.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-kill.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-manager.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-manager.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-mount.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-mount.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-path.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-path.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-scope.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-scope.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-service.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-service.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-slice.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-slice.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-snapshot.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-snapshot.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-socket.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-socket.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-swap.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-swap.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-target.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-target.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-timer.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-timer.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
dbus-unit.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus-unit.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
dbus.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
device.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
device.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
execute.c Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
execute.h Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
hostname-setup.c hostname: only suppress setting of pretty hostname if it is non-equal to the static hostname and if the static hostname is set, too 2013-05-07 20:56:41 +02:00
hostname-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
ima-setup.c core: move mount_setup_early() to main.c 2013-03-07 20:53:14 +01:00
ima-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
initreq.h move libsystemd_core.la sources into core/ 2012-04-11 16:03:51 +02:00
job.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
job.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
kill.c core: optionally send SIGHUP in addition to the configured kill signal 2013-07-30 01:54:59 +02:00
kill.h core: optionally send SIGHUP in addition to the configured kill signal 2013-07-30 01:54:59 +02:00
killall.c killall: do not use alloca() in argument list 2013-06-26 19:52:00 -04:00
killall.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
kmod-setup.c kmod-setup: properly iterate through module table 2013-05-07 17:52:23 +02:00
kmod-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
load-dropin.c id128: when taking user input for a 128bit ID, validate syntax 2013-04-30 08:36:01 -03:00
load-dropin.h Introspect and monitor dropin configuration 2013-04-01 23:43:49 -04:00
load-fragment-gperf.gperf.m4 core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
load-fragment.c socket: fix segfault 2013-11-21 00:06:11 +01:00
load-fragment.h mount/service: drop FsckPassNo support 2013-10-19 12:23:17 +02:00
locale-setup.c local: fix memory leak when putting together locale settings 2013-10-01 00:17:21 +02:00
locale-setup.h rework systemd's own process environment handling/passing 2013-07-26 18:40:40 +02:00
loopback-setup.c loopback-setup: move to rtnl 2013-11-14 15:11:15 +01:00
loopback-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
machine-id-setup.c build-sys: use -Og instead of -O0 to catch warnings 2013-10-21 15:46:00 +02:00
machine-id-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
macros.systemd.in rpm: add RPM macro for creating tmpfiles entries after package installation 2013-07-16 18:54:03 +02:00
main.c valgrind: make running PID 1 in valgrind useful 2013-11-20 22:12:47 +01:00
Makefile build-sys: add stub makefiles to make emacs easier to use 2012-04-12 13:35:56 +02:00
manager.c manager: always sort environment block, it's prettier 2013-11-21 21:12:36 +01:00
manager.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
mount-setup.c Smack: Test if smack is enabled before mounting 2013-10-09 15:06:17 -07:00
mount-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
mount.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
mount.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
namespace.c systemd: use unit name in PrivateTmp directories 2013-10-22 22:54:09 -04:00
namespace.h systemd: use unit name in PrivateTmp directories 2013-10-22 22:54:09 -04:00
org.freedesktop.systemd1.conf systemctl: add commands set-default and get-default 2013-05-30 20:44:41 -04:00
org.freedesktop.systemd1.policy.in.in move more main systemd parts to core/ 2012-04-12 14:24:40 +02:00
org.freedesktop.systemd1.service move more main systemd parts to core/ 2012-04-12 14:24:40 +02:00
path.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
path.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
scope.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
scope.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
securebits.h move libsystemd_core.la sources into core/ 2012-04-11 16:03:51 +02:00
selinux-access.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
selinux-access.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
selinux-setup.c util: make time formatting a bit smarter 2013-04-04 02:56:56 +02:00
selinux-setup.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
service.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
service.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
shutdown.c Remove duplicate includes 2013-11-18 20:28:55 -05:00
slice.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
slice.h core: general cgroup rework 2013-06-27 04:17:34 +02:00
smack-setup.c Run with a custom SMACK domain (label). 2013-10-07 10:23:20 -07:00
smack-setup.h core: mount and initialize Smack 2013-03-07 20:53:14 +01:00
snapshot.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
snapshot.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
socket.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
socket.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
special.h core: general cgroup rework 2013-06-27 04:17:34 +02:00
swap.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
swap.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
switch-root.c switch-root: try pivot_root() before overmounting / 2012-11-16 18:21:09 +01:00
switch-root.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
syscall-list.c Make two functions static 2013-03-20 19:16:01 -04:00
syscall-list.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
sysfs-show.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
system.conf manager: configurable StartLimit default values 2013-11-08 17:00:01 +01:00
systemd.pc.in pkg-config: export systemd{system,user}generatordir and catalogdir 2013-08-03 09:20:12 -04:00
target.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
target.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
tcpwrap.c relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
tcpwrap.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
timer.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
timer.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
transaction.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
transaction.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
umount.c list: make our list macros a bit easier to use by not requring type spec on each invocation 2013-10-14 06:11:19 +02:00
umount.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
unit-printf.c specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
unit-printf.h specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
unit.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
unit.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
user.conf manager: configurable StartLimit default values 2013-11-08 17:00:01 +01:00