Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-12-16 | bus: use gperf to map error string to errno | Zbigniew Jędrzejewski-Szmek | |
2013-12-17 | bus: update kdbus.h | Kay Sievers | |
2013-12-17 | bus: when connecting to a container's system bus, double fork after joining ↵ | Lennart Poettering | |
the container's namespace setns(CLONE_NEWPID) only applies to child processes, hence let's fork once after joining the container's namespace. | |||
2013-12-17 | bus: when entering an existing namespace to connect to a container's system ↵ | Lennart Poettering | |
bus also switch over PID namespace This is necessary to ensure that kdbus can collect creds of the destination namespace when connecting. | |||
2013-12-16 | bus: use GREEDY_REALLOC() when allocating message queues | Lennart Poettering | |
2013-12-16 | bus: let's use GREEDY_REALLOC() when allocating space for containers | Lennart Poettering | |
2013-12-16 | kdbus.h: add alignment requirements | Kay Sievers | |
2013-12-16 | bus: increase the bus socket buffer to 8 MB similar, to the log socket buffers | Lennart Poettering | |
2013-12-15 | Fix segv introduced by 2fd069b18e525860514a70d3ea08410ca122d3e2 | Colin Walters | |
n->path is pointing to the value now, we set s = NULL above. | |||
2013-12-15 | Fix a few resource leaks in error paths | Zbigniew Jędrzejewski-Szmek | |
https://bugzilla.redhat.com/show_bug.cgi?id=1043304 | |||
2013-12-15 | bus: _printf_ attributes should be on prototypes not function definitions ↵ | Lennart Poettering | |
for non-static functions | |||
2013-12-15 | bus: update kdbus monitoring interface | Kay Sievers | |
2013-12-14 | bus: return negative errno on error | Zbigniew Jędrzejewski-Szmek | |
https://bugs.freedesktop.org/show_bug.cgi?id=72688 | |||
2013-12-14 | Add more _printf_'s for format-nonliterals | Thomas Hindoe Paaboel Andersen | |
Clang is a bit more strict wrt format-nonliterals: http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking Adding these extra printf attributes also makes gcc able to find more problems. E.g. this patch uncovers a format issue in udev-builtin-path_id.c Some parts looked intetional about breaking the format-nonliteral check. I added some supression for warnings there. | |||
2013-12-14 | event: some snake-oil to speed up impossible error checks | Lennart Poettering | |
2013-12-14 | event: instead of reset the revents field when we get new revents data from ↵ | Lennart Poettering | |
epoll, OR it in | |||
2013-12-14 | event: dynamically adjust size of events array instead of pre-allocating it ↵ | Lennart Poettering | |
possibly too large or too small | |||
2013-12-14 | bus: when connecting to a container's kdbus instance, enter namespace first | Lennart Poettering | |
Previously we'd open the connection in the originating namespace, which meant most peers of the bus would not be able to make sense of the PID/UID/... identity of us since we didn't exist in the namespace they run in. However they require this identity for privilege decisions, hence disallowing access to anything from the host. Instead, when connecting to a container, create a temporary subprocess, make it join the container's namespace and then connect from there to the kdbus instance. This is similar to how we do it for socket conections already. THis also unifies the namespacing code used by machinectl and the bus APIs. | |||
2013-12-13 | event: make gcc shut up | Lennart Poettering | |
2013-12-13 | libsystemd-bus: the same error codes for sd_bus_release_name() (for kdbus ↵ | Lukasz Skalski | |
and dbus1) Due to this patch, sd_bus_release_name() function returns the same code errors for kdbus and dbus1 if we try release non-existing name or foreign name. | |||
2013-12-13 | update TODO | Lennart Poettering | |
2013-12-13 | bus: when a connection terminated use ECONNRESET as error | Lennart Poettering | |
2013-12-13 | bus: rework how we attach fds to event loops | Lennart Poettering | |
When trying a couple of addresses one after the other, make sure to reattach the fds to the event loop. | |||
2013-12-13 | event: add ability to change fd of an active event source | Lennart Poettering | |
2013-12-13 | event: allow to query userdata and watchdog state | Lennart Poettering | |
2013-12-13 | event: when unreffing an event source from its own handler, detach fd from epoll | Lennart Poettering | |
The pattern of unreffing an IO event source and then closing its fd is frequently seen in even source callbacks. Previously this likely resultet in us removing the fd from the epoll after it was closed which is problematic, since while we were dispatching we always kept an extra reference to event source objects because we might still need it later. | |||
2013-12-13 | event: rework sd-event exit logic | Lennart Poettering | |
With this change a failing event source handler will not cause the entire event loop to fail. Instead, we just disable the specific event source, log a message at debug level and go on. This also introduces a new concept of "exit code" which can be stored in the event loop and is returned by sd_event_loop(). We also rename "quit" to "exit" everywhere else. Altogether this should make things more robus and keep errors local while still providing a way to return event loop errors in a clear way. | |||
2013-12-13 | bus: fix make check | Lennart Poettering | |
2013-12-13 | bus: properly parse NameOwnerChanged messages when caller explicitly wants ↵ | Lennart Poettering | |
to match against names coming/going | |||
2013-12-13 | bus: make sure exit-on-idle logic works on kdbus systems that do not ↵ | Lennart Poettering | |
generate NameLost | |||
2013-12-13 | bus: fix parsing of matches against empty strings | Lennart Poettering | |
2013-12-12 | bus: fix rewind logic | Lennart Poettering | |
2013-12-12 | bus: update kdbus.h | Kay Sievers | |
2013-12-12 | bus: always pass valid timeout to kdbus | Lennart Poettering | |
2013-12-12 | bus: enforce endianess and marshalling for messages we send | Lennart Poettering | |
2013-12-12 | bus: add SD_BUS_NAME_REPLACE_EXISTING to all activatable services, fix one ↵ | Kay Sievers | |
flags conversion | |||
2013-12-12 | bus: instead of exposing the dbus1 flags when acquiring a name use our own ↵ | Lennart Poettering | |
that are closer to kdbus This turns around DO_NOT_QUEUE into QUEUE which implies a more useful default. (And negative options are awful anyway.) | |||
2013-12-12 | bus: properly return an error when we detect a method call timeout | Lennart Poettering | |
2013-12-12 | timedated: make sure GetAll() succeeds in systems lacking /dev/rtc (such as ↵ | Lennart Poettering | |
containers) | |||
2013-12-12 | bus: properly generate NameOwnerChanged messages when we take from/give back ↵ | Lennart Poettering | |
to queue/starter | |||
2013-12-12 | bus: fix order in which we check creds | Lennart Poettering | |
2013-12-12 | bus: update name listing logic to current kernel interface | Lennart Poettering | |
2013-12-12 | bus: when checking whether a creds object contains some field, don't use ↵ | Lennart Poettering | |
assert_return() These are not programming errors, so they shouldn't use assert_return() | |||
2013-12-12 | bus: connect directly via kdbus in sd_bus_open_system_container() | Lennart Poettering | |
kdbus fortunately exposes the container's busses in the host fs, hence we can access it directly instead of doing the namespacing dance. | |||
2013-12-11 | sd-event: try to move each wakeup to the same spot within every 10s | Lennart Poettering | |
In addition to the same spot within every 1min, every 1s, every 250s | |||
2013-12-11 | journal: add ability to browse journals of running OS containers | Lennart Poettering | |
This adds the new library call sd_journal_open_container() and a new "-M" switch to journalctl. Particular care is taken that journalctl's "-b" switch resolves to the current boot ID of the container, not the host. | |||
2013-12-11 | event: hook up sd-event with the service watchdog logic | Lennart Poettering | |
Adds a new call sd_event_set_watchdog() that can be used to hook up the event loop with the watchdog supervision logic of systemd. If enabled and $WATCHDOG_USEC is set the event loop will ping the invoking systemd daemon right after coming back from epoll_wait() but not more often than $WATCHDOG_USEC/4. The epoll_wait() will sleep no longer than $WATCHDOG_USEC/4*3, to make sure the service manager is called in time. This means that setting WatchdogSec= in a .service file and calling sd_event_set_watchdog() in your daemon is enough to hook it up with the watchdog logic. | |||
2013-12-11 | event: when handling SIGCHLD of a child process only reap after dispatching ↵ | Lennart Poettering | |
event source That way the even source callback is run with the zombie process still around so that it can access /proc/$PID/ and similar, and so that it can be sure that the PID has not been reused yet. | |||
2013-12-11 | bus: kdbus - skip only STARTER and IN_QUEUE names for NameOwnerChanged | Kay Sievers | |
2013-12-10 | bus: do not dispatch incoming method calls that are broacasted to vtables | Lennart Poettering | |