summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix a few resource leaks in error pathsZbigniew Jędrzejewski-Szmek2013-12-15
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1043304
* bus: _printf_ attributes should be on prototypes not function definitions ↵Lennart Poettering2013-12-15
| | | | for non-static functions
* bus: update kdbus monitoring interfaceKay Sievers2013-12-15
|
* udev-builtin-path: fix printf specifiersZbigniew Jędrzejewski-Szmek2013-12-14
|
* bus: return negative errno on errorZbigniew Jędrzejewski-Szmek2013-12-14
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=72688
* test-journal-syslog: use streq_ptr since we pass in NULLThomas Hindoe Paaboel Andersen2013-12-15
|
* systemctl: add the --plain option to the help messageDjalal Harouni2013-12-14
|
* man: remove advice to avoid setting the same var more than onceZbigniew Jędrzejewski-Szmek2013-12-14
| | | | | | So far the compatibility with .desktop settings hasn't been imporant at all, and we do not want people to write convoluted unit files.
* man: beef up ExecStart descriptionZbigniew Jędrzejewski-Szmek2013-12-14
| | | | | | | | We have lots of questions from people who assume that shell syntax works here, so let's be very explicit what is allowed and what is not. A few examples should also help. http://bugs.debian.org/732156
* build: use -ftrapv for developmentShawn Landden2013-12-14
| | | | We want to find these bugs if they exist.
* Add more _printf_'s for format-nonliteralsThomas Hindoe Paaboel Andersen2013-12-14
| | | | | | | | | | | 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.
* event: some snake-oil to speed up impossible error checksLennart Poettering2013-12-14
|
* event: instead of reset the revents field when we get new revents data from ↵Lennart Poettering2013-12-14
| | | | epoll, OR it in
* event: dynamically adjust size of events array instead of pre-allocating it ↵Lennart Poettering2013-12-14
| | | | possibly too large or too small
* util: port last code over to new namespace utility callsLennart Poettering2013-12-14
|
* util: when joining a namespace make sure to reset all uids to 0 afterLennart Poettering2013-12-14
| | | | the transition
* bus: when connecting to a container's kdbus instance, enter namespace firstLennart Poettering2013-12-14
| | | | | | | | | | | | | | | | 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.
* getty-generator: fix stripping /dev/Thomas Hindoe Paaboel Andersen2013-12-13
|
* bus: install systemd-bus-proxyd unit files for compatibility with dbus1Lennart Poettering2013-12-13
|
* getty-generator: fix segfault when $container_ttys is not setLennart Poettering2013-12-13
|
* event: make gcc shut upLennart Poettering2013-12-13
|
* journal: downgrade comments about sd_journal_print_with_location()Lennart Poettering2013-12-13
| | | | | | Effectviely these calls are ABI anyway, so downgrade the comments a bit, since it might actually be useful for language bindings to make use of them.
* update TODOLennart Poettering2013-12-13
|
* man: document that systemd-getty-generator can start additional container ↵Lennart Poettering2013-12-13
| | | | gettys on ptys
* getty-generator: look add an environment variable $container_ttys set for ↵Lennart Poettering2013-12-13
| | | | PID 1 and start gettys on all ttys listed therein
* nspawn: add new --setenv= switch to set an environment variable for the ↵Lennart Poettering2013-12-13
| | | | container to spawn
* man: document more error codes for sd_bus_request_name()Lennart Poettering2013-12-13
|
* libsystemd-bus: the same error codes for sd_bus_release_name() (for kdbus ↵Lukasz Skalski2013-12-13
| | | | | | | | | 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.
* build-sys: fix help text for --enable-kdbusLukasz Skalski2013-12-13
|
* update TODOLennart Poettering2013-12-13
|
* bus: when a connection terminated use ECONNRESET as errorLennart Poettering2013-12-13
|
* bus: rework how we attach fds to event loopsLennart Poettering2013-12-13
| | | | | When trying a couple of addresses one after the other, make sure to reattach the fds to the event loop.
* event: add ability to change fd of an active event sourceLennart Poettering2013-12-13
|
* event: allow to query userdata and watchdog stateLennart Poettering2013-12-13
|
* man: add another nspawn exampleZbigniew Jędrzejewski-Szmek2013-12-12
| | | | Taken from https://bugs.freedesktop.org/show_bug.cgi?id=68369.
* event: when unreffing an event source from its own handler, detach fd from epollLennart Poettering2013-12-13
| | | | | | | | 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.
* event: be more conservative when returning errors from event handler callbacksLennart Poettering2013-12-13
| | | | | We really should return errors from event handlers if we have a continous problem and don't know any other solution.
* git: update .gitignoreLennart Poettering2013-12-13
|
* namespace: include boot id in private tmp directoriesLennart Poettering2013-12-13
| | | | | | | | This way it is easy to only exclude directories from the current boot from automatic clean up in /var/tmp. Also, pick a longer name for the directories so that are globs in tmp.conf can be simpler yet equally accurate.
* event: rework sd-event exit logicLennart Poettering2013-12-13
| | | | | | | | | | | | | 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.
* bus: fix make checkLennart Poettering2013-12-13
|
* bus: properly parse NameOwnerChanged messages when caller explicitly wants ↵Lennart Poettering2013-12-13
| | | | to match against names coming/going
* man: update sd_bus_request_name() man pageLennart Poettering2013-12-13
|
* bus: make sure exit-on-idle logic works on kdbus systems that do not ↵Lennart Poettering2013-12-13
| | | | generate NameLost
* bus: fix parsing of matches against empty stringsLennart Poettering2013-12-13
|
* scan-build: silence some warningsThomas Hindoe Paaboel Andersen2013-12-12
| | | | | | | | | test-fileio/test-strv: Use the streq_ptr to make build-scan not worry about passing in a null to a nonnull function. test-dhcp-option: Prevent a theoretical null pointer dereference
* bus: fix rewind logicLennart Poettering2013-12-12
|
* service: process watchdog timeouts with lowest priorityLennart Poettering2013-12-12
|
* bus: remove explicit activator-specific flags, the kdbus supports it nowKay Sievers2013-12-12
|
* bus: update kdbus.hKay Sievers2013-12-12
|