summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-10-20log: avoid calling the logging functions for log levels above the current ↵Kay Sievers
maximum Messages with log levels above the current maximum log level will be dropped inside log_meta(). But to be able to call the function, all parameters for the function need to be provided. This can easily get expensive, if values need to be calculated or functions are used in parameters. Avoid all useless work by checking inside the macro, before we look at any parameters passed to the logging functions.
2013-10-19socket-proxyd: Remove datagram research TODO. This proxy will not work with ↵David Strauss
them.
2013-10-19socket-proxyd: Comment and log text cleanup.David Strauss
* Standardize on "nonblocking" spelling, per Linux man pages. * Clarify that the nonblocking sockets are never in a "blocking" or "unblocked" state, just a "would block" or "ready" state.
2013-10-20socket-proxyd: initialize variable used in error code pathKay Sievers
2013-10-19trivial: rfkill - don't include util.h twiceTom Gundersen
2013-10-19trivial: rfkill: It's util.h, not utils.hColin Walters
How about we actually run make locally before pushing, eh?
2013-10-19udev-builtin: uaccess - inherit logging form udevTom Gundersen
Not that it makes a difference in this builtin, but otherwise /etc/udev/udev.conf is not respected.
2013-10-19fsck-root: only run when requested in fstabTom Gundersen
fsck-root is redundant in case an initrd is used, or in case the rootfs is never remounted 'rw', so the new default is the correct behavior for most users. For the rest, they should enable it in fstab.
2013-10-19efi-boot-generator: hookup to fsckTom Gundersen
2013-10-19mount/service: drop FsckPassNo supportTom Gundersen
We now treat passno as boleans in the generators, and don't need this any more. fsck itself is able to sequentialize checks on the same local media, so in the common case the ordering is redundant. It is still possible to force an order by using .d fragments, in case that is desired.
2013-10-19gpt-auto-generator: Generate explicit dependencies on systemd-fsck@.service ↵Thomas Bächler
instead of using FsckPassNo [tomegun: check for OOM]
2013-10-19fstab-generator: Generate explicit dependencies on systemd-fsck@.service ↵Thomas Bächler
instead of using FsckPassNo [tomegun: * order all fsck instances after fsck-root * check for OOM * added notes in the manpages]
2013-10-19fstab-generator: When parsing the root= cmdline option, set FsckPassNo to 1Thomas Bächler
[tomegun: without this we would never fsck the rootfs if it was directly mounted 'rw' from the initrd. We now risk fsck'ing it twice in the case it is mounted 'ro', so that should be addressed in a separate patch.]
2013-10-19kerne-command-line: introduce option 'systemd.restore_state'Tom Gundersen
When set to 0 this will stop tools like the backlight and rfkill tools to restore state from previous boot. This is useful in case the stored state is bogus to the extent that it is preventing you from resetting it (e.g., the backlight settings cause the screen to be off on boot on a system where the backlight can not be adjusted directly from the keyboard).
2013-10-18bus: if we hit the end of an array container return 0 as EOF indicator when ↵Lennart Poettering
reading it
2013-10-18update-utmp: port to sd-busTom Gundersen
Change from GetUnit to LoadUnit to make sure we can detect the current legacy runlevel, even if nothing loaded the legacy target files yet.
2013-10-18socket-proxyd: rename from saproxyLennart Poettering
The thing is a daemon, hence needs a "d" prefix. Also, we tend to not abbreviate names of background components unnecessarily, since they are not primary commands people type. Then, the fact that this thing does socket actviation is mostly in implementationd detail for the proxy. Also, do some minor indenting clean-ups and other code updates.
2013-10-18bus: automatically flush bus queue when we exit the event loopLennart Poettering
This way, we do not have to call it manually
2013-10-18initctl: port to sd-busTom Gundersen
2013-10-18cgroup-agent: port to sd-busTom Gundersen
2013-10-18fsck: port to sd-busTom Gundersen
2013-10-18timedated: disable debug loggingLennart Poettering
2013-10-18hostnamed: port over from libdbus to libsystemd-busLennart Poettering
2013-10-17sd-event: initialize return valueDave Reisner
src/libsystemd-bus/sd-event.c:1597:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-10-17tmpfiles: log unaccessible FUSE mount points only as debug messageKay Sievers
2013-10-17timedated: expose time and NTP sync flag via the busLennart Poettering
This way, timedatectl can be run over the network and determine all properties correctly from the server rather than the client.
2013-10-16api: unify some common bits used by public systemd APIsLennart Poettering
2013-10-16timedate: expose RTC timeLennart Poettering
Since access to the RTC is privileged expose the current RTC time as bus property so that unprivileged clients can read it.
2013-10-16bus: fix default exit on idle timeoutLennart Poettering
2013-10-16sabridge: Makefile should be a symlinkDavid Strauss
2013-10-16timedated: use libsystemd-bus instead of libdbus for bus communicationLennart Poettering
Among other things this also adds a few things necessary for the change: - Considerably more powerful error returning APIs in libsystemd-bus - Adapter for connecting an sd_bus to an sd_event - As I reworked the PolicyKit logic to the new library I also made it asynchronous, so that PolicyKit requests of one user cannot block out another user anymore. - We always use the macro names for common bus error. That way it is harder to mistype them since the compiler will notice
2013-10-16bus: return 1 on all calls that send messagesLennart Poettering
This way they are nicer to use from method dispatch callbacks as last call, since method dispatch callbacks expect > 0 return if the message got handled.
2013-10-16bus: make sure sd_bus_get_timeout() returns a 0 timeout of there are already ↵Lennart Poettering
read but not dispatched messages
2013-10-16bus: fix generate introspection XMLLennart Poettering
2013-10-16bus: extend bus protocol definitions a bitLennart Poettering
2013-10-16event: handle arbitrary signals received during epoll gracefullyLennart Poettering
2013-10-16event: properly disarm timers when we don't need them anymoreLennart Poettering
2013-10-16event: fix sd_event_source_set_io_events()Lennart Poettering
2013-10-16macro: clean up usage of gcc attributesLennart Poettering
Always use our own macros, and name all our own macros the same style.
2013-10-15saproxy: Fix for systemd's event library not deduping fds.David Strauss
2013-10-15Bump up the saproxy buffer to 16kB.David Strauss
2013-10-15Rename sabridge to saproxy to be less crypticDavid Strauss
2013-10-15Add sabridge for socket activation of traditional daemonsDavid Strauss
2013-10-15logind: allow unprivileged session-device accessDavid Herrmann
The session-device/control API was introduced for unprivileged device access from within a session. Add the required dbus policy to the default logind policies. Note: logind validates that only root and the user of a session can use the API. Furthermore, only a single API user gets access at a time.
2013-10-15Fix for SIGSEGV in systemd-bootchart on short-living processesIgor Zhbanov
The function svg_ps_bars() dereferencess NULL pointer in the line endtime = ps->last->sampledata->sampletime; because of partially initialized ps_struct (ps->last == NULL). If some process terminates between scaning /proc directory in the log_sample() function and reading additional information from /proc/PID/... files, the files couldn't be read, the loop will be continued and partially initialized structure returned.
2013-10-14Fix misspellings with codespell toolAnatol Pomozov
2013-10-15build-sys: libudev - get rid of the needless selinux linking (again)Kay Sievers
2013-10-14Fix bad assert in show_pid_arrayZbigniew Jędrzejewski-Szmek
This function should get the same treatment as other qsort uses did in 7ff7394 "Never call qsort on potentially NULL arrays". Reported-by: Oleksii Shevchuk <alxchk@gmail.com>
2013-10-14bus: properly handle if new objects are installed in the node tree while we ↵Lennart Poettering
are dispatching to one
2013-10-14bus: make sure that we always keep a ref to the bus when we dispatch callbacksLennart Poettering
Otherwise the callback might unref the bus we are processing and destroy the object while we are processing it.