summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-16saproxy: man page formatting and terminology fixesDavid 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-16rules: don't limit some of the rules to the "add" actionLennart Poettering
Devices should show up in systemd regardless whether the user invoked "udevadm trigger" or not. Before this change some devices might have suddenly disappeared due issuing that command.
2013-10-16rules: expose loop block devices to systemdLennart Poettering
Since the kernel no longer exposes a large number of "dead" loop devices it is OK to expose them now in systemd, so let's do that. This has the benefit that mount dependencies on loop devices start to work.
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-15Update TODOs with follow-up sabridge work.David 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-15man: document the -b special boot optionJan Engelhardt
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-15man: wording and grammar updatesJan Engelhardt
This is a recurring submission and includes corrections to various issue spotted. I guess I can just skip over reporting ubiquitous comma placement fixes…
2013-10-14Fix misspellings with codespell toolAnatol Pomozov
2013-10-15build-sys: libsystemd-id128 - get rid of the needless selinux linking (again)Kay Sievers
$ ldd libsystemd-id128.so linux-vdso.so.1 => (0x00007fffce377000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f4de1fc1000) librt.so.1 => /lib64/librt.so.1 (0x00007f4de1db9000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f4de1bb4000) libc.so.6 => /lib64/libc.so.6 (0x00007f4de17f5000) /lib64/ld-linux-x86-64.so.2 (0x00007f4de2406000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f4de158f000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4de1371000) $ ldd libsystemd-id128.so linux-vdso.so.1 => (0x00007fff25187000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f41a3964000) libc.so.6 => /lib64/libc.so.6 (0x00007f41a35a5000) /lib64/ld-linux-x86-64.so.2 (0x00007f41a3d89000)
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.
2013-10-14bus: use assert_return() for more API callsLennart Poettering
2013-10-14git: add test-ellipsize to files to ignore by gitLennart Poettering
2013-10-14backlight: include ID_PATH in file names for backlight settingsLennart Poettering
Much like for rfkill devices we should provide some stability regarding enumeration order, hence include the stable bits of the device path in the file name we store settings under.
2013-10-14rfkill: use ID_PATH as identifier for rfkill state filesLennart Poettering
Let's include the stable device path for the rfkill devices in the name of the file we store the rfkill state in, so that we have some stability regarding enumeration order.
2013-10-14shared/util: Fix glob_extend() argumentBastien Nocera
glob_extend() would completely fail to work, or return incorrect data if it wasn't being passed the current getopt "optarg" variable as it used the global variable, instead of the passed parameters.
2013-10-14list: make our list macros a bit easier to use by not requring type spec on ↵Lennart Poettering
each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use.
2013-10-14util: allow trailing semicolons on define_trivial_cleanup_func linesLennart Poettering
Emacs C indenting really gets confused by these lines if they carry no trailing semicolon, hence let's make this nicer for good old emacs. The other macros which define functions already do this too, so let's copy the scheme here. Also, let's use an uppercase name for the macro. So far our rough rule was that macros that are totally not function-like (like this ones, which define a function) are uppercase. (Well, admittedly it is a rough rule only, for example function and variable decorators are all lower-case SINCE THE CONSTANT YELLING IN THE SOURCES WOULD SUCK, and also they at least got underscore prefixes.) Also, the macros that define functions that we already have are all uppercase, so let's do the same here...
2013-10-14update TODOLennart Poettering
2013-10-13manager: connect to private bus even if $DBUS_SESSION_BUS_ADDRESS is not setMantas Mikulėnas
Because that's exactly the kind of situation where the private bus is necessary.
2013-10-14rfkill: add new rfkill tool to save/restore rfkill state across rebootsLennart Poettering
This works analogous to the existing backlight and random seed services
2013-10-14backlight: always prefer "firmware"/"platform" backlights over "raw" ↵Lennart Poettering
backlights if we have both for the same device
2013-10-13man: add more markup to udevadm(8)Zbigniew Jędrzejewski-Szmek
2013-10-13event: avoid derefencing null pointerZbigniew Jędrzejewski-Szmek
2013-10-13bus: make sure we don't try to malloc 0 bytesZbigniew Jędrzejewski-Szmek
2013-10-13Introduce udev object cleanup functionsZbigniew Jędrzejewski-Szmek
2013-10-13gitignore: ignore clang --analyze outputZbigniew Jędrzejewski-Szmek
2013-10-13Make sure that we don't dereference NULLZbigniew Jędrzejewski-Szmek
The code was actually safe, because b should never be null, because if rvalue is empty, a different branch is taken. But we *do* check for NULL in the loop above, so it's better to also check here for symmetry.
2013-10-13udev: use initialization instead of zeroing in one placeZbigniew Jędrzejewski-Szmek