Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-02-21 | core: Add AppArmor profile switching | Michael Scherer | |
This permit to switch to a specific apparmor profile when starting a daemon. This will result in a non operation if apparmor is disabled. It also add a new build requirement on libapparmor for using this feature. | |||
2014-02-21 | selinux: Don't attempt to load policy in initramfs if it doesn't exist | Colin Walters | |
Currently on at least Fedora, SELinux policy does not come in the initramfs. systemd will attempt to load *both* in the initramfs and in the real root. Now, the selinux_init_load_policy() API has a regular error return value, as well as an "enforcing" boolean. To determine enforcing state, it looks for /etc/selinux/config as well as the presence of "enforcing=" on the kernel command line. Ordinarily, neither of those exist in the initramfs, so it will return "unknown" for enforcing, and systemd will simply ignore the failure to load policy. | |||
2014-02-21 | missing: simplifications | Lennart Poettering | |
2014-02-21 | build-sys: Add setns() functions if not in the C library. | Holger Schurig | |
Debian Stable is still using glibc 2.13, which doesn't provide the setns(). So we detect this and provide a tiny wrapper that issues the setns syscall towards the kernel. | |||
2014-02-21 | hostnamectl: should the sanitized arch, not the native uname() one | Lennart Poettering | |
2014-02-21 | core: add new ConditionArchitecture() that checks the architecture returned ↵ | Lennart Poettering | |
by uname()'s machine field. | |||
2014-02-20 | net-util: match - allow globbing | Tom Gundersen | |
For now support globbing for interface name and path. | |||
2014-02-20 | sd-dhcp-client: prevent timer related memory leaks | Umut Tezduyar Lindskog | |
2014-02-20 | networkd: netdev - allow filtering on kernel cmdline, host and virt | Tom Gundersen | |
2014-02-20 | network/link: Match - filter on kernel cmdline, host and virt | Tom Gundersen | |
2014-02-20 | condition: split out most of condition handling into libsystemd-shard | Tom Gundersen | |
The parts that require linknig to libcap, libselinux and friends stays in libsystemd-core. | |||
2014-02-20 | condition: refactor a bit | Tom Gundersen | |
No functional change, just move code around a bit to make it simpler to split out some functions. | |||
2014-02-20 | python: reindent _reader.c | Lennart Poettering | |
All files should follow our coding style, and that means 8ch indenting. Let's correct that. | |||
2014-02-20 | macro: add nice macro for disabling -Wnonnull temporarily | Lennart Poettering | |
2014-02-20 | macro: introduce nice macro for disabling -Wmissing-prototypes warnigs | Lennart Poettering | |
2014-02-20 | macro: introduce a nice macro for disabling -Wformat-nonliteral temporarily | Lennart Poettering | |
2014-02-20 | util: get rid of warnings around assert_cc() macro | Lennart Poettering | |
Suggested by Holger Schurig. | |||
2014-02-20 | journal: fix compiler warning in journal_file_append_data() | Daniel Mack | |
gcc (4.8.2, arm) does not understand that journal_file_append_field() will always set 'fo' when it returns 0, so this warning is bogus. Anyway, fix it by initialiting fo = NULL. | |||
2014-02-20 | journal: fix compiler warning in real_journal_next() | Daniel Mack | |
gcc (4.8.2, arm) does not understand that next_beyond_location() will always set 'p' when it returns > 0. Initialize p in order to fix this. | |||
2014-02-20 | libsystemd: fix compiler warning in property_get_set_callbacks_run() | Daniel Mack | |
gcc (4.8.2, arm) doesn't understand that vtable_property_get_userdata() will always set 'u' when it returns > 0. Hence, the warning is bogus, but anyway. src/libsystemd/sd-bus/bus-objects.c:510:19: warning: 'u' may be used uninitialized in this function [-Wmaybe-uninitialized] (and yes, indeed, even the reported line numbers are bogus in this case) | |||
2014-02-20 | core/unit: fix unit_add_target_dependencies() for units with no dependencies | Daniel Mack | |
For units without any dependencies, r needs to be initialized to 0. Otherwise, the return value of unit_add_target_dependencies() is unspecified. | |||
2014-02-20 | api: in constructor function calls, always put the returned object pointer ↵ | Lennart Poettering | |
first (or second) Previously the returned object of constructor functions where sometimes returned as last, sometimes as first and sometimes as second parameter. Let's clean this up a bit. Here are the new rules: 1. The object the new object is derived from is put first, if there is any 2. The object we are creating will be returned in the next arguments 3. This is followed by any additional arguments Rationale: For functions that operate on an object we always put that object first. Constructors should probably not be too different in this regard. Also, if the additional parameters might want to use varargs which suggests to put them last. Note that this new scheme only applies to constructor functions, not to all other functions. We do give a lot of freedom for those. Note that this commit only changes the order of the new functions we added, for old ones we accept the wrong order and leave it like that. | |||
2014-02-20 | sd-bus: the bus returned should be the first arg | Jason A. Donenfeld | |
This matches the API of previous headers, such as sd-journal.h. | |||
2014-02-19 | udev: net-config - allow interface names to be set from the hwdb | Tom Gundersen | |
2014-02-19 | build-sys: export experimental symbols only with --enable-kdbus | Kay Sievers | |
2014-02-19 | bus: fix unreffing logic | Lennart Poettering | |
2014-02-19 | sd-dhcp-client: fix mixup between raw and udp sockets | Tom Gundersen | |
2014-02-19 | sd-damon is LGPL now | Kay Sievers | |
2014-02-19 | update TODO | Lennart Poettering | |
2014-02-19 | build-sys: merge libsystemd-journal into libsystemd | Kay Sievers | |
2014-02-19 | tmpfiles: simplification | Lennart Poettering | |
2014-02-19 | util: simplify get_ctty() | Lennart Poettering | |
2014-02-19 | timedatectl: fix minor memory leak | Lennart Poettering | |
2014-02-19 | udev: make sure we always return a valid error code in trie_store() | Lennart Poettering | |
2014-02-19 | sd-id128: use new dev_urandom() call | Lennart Poettering | |
2014-02-19 | journal: don't clobber return parameters of ↵ | Lennart Poettering | |
sd_journal_get_cutoff_realtime_usec() on failure | |||
2014-02-19 | execute: modernizations | Lennart Poettering | |
2014-02-19 | make gcc shut up | Lennart Poettering | |
If -flto is used then gcc will generate a lot more warnings than before, among them a number of use-without-initialization warnings. Most of them without are false positives, but let's make them go away, because it doesn't really matter. | |||
2014-02-19 | busctl: add --no-legend and use in bash completion | Thomas Hindoe Paaboel Andersen | |
2014-02-19 | sd-rtnl: test - include missing.h to build on old kernels | Tom Gundersen | |
2014-02-19 | networkd: dhcp - log when lease is lost | Tom Gundersen | |
2014-02-19 | networkd: link - only reset transient hostname if it was set by us | Tom Gundersen | |
2014-02-19 | systemctl: remove erroneous return in runlevel_parse_argv() | Maciej Wereski | |
2014-02-19 | logind: remove redundant check in manager_new() | Maciej Wereski | |
2014-02-19 | label: minor optimizations | Lennart Poettering | |
2014-02-19 | missing.h: add some IFLA_* constants | Tom Gundersen | |
These were added to the kernel between 3.5 and 3.9, let's not require such recent kernels (yet). | |||
2014-02-19 | event: fix crash on child-source state modifications | David Herrmann | |
Setting a child-source state to anything but SD_EVENT_OFF currently does nothing. The condition logic is flawed. Move the state update *below* the test for the previous state. Fixes a crash if you call: sd_event_source_set_enabled(source, SD_EVENT_ON); sd_event_source_unref(source); on a child-source in its own callback. | |||
2014-02-19 | core: add Personality= option for units to set the personality for spawned ↵ | Lennart Poettering | |
processes | |||
2014-02-18 | build-sys: fixups for libsystemd-daemon merge | Zbigniew Jędrzejewski-Szmek | |
2014-02-19 | build-sys: merge libsystemd-daemon into libsystemd | Kay Sievers | |