summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "time-util: fall back to CLOCK_MONOTONIC if CLOCK_BOOTTIME unsupported"revert-2843-clock_boottimeLennart Poettering2016-04-011-5/+2
|
* Merge pull request #2915 from vinaykul/masterZbigniew Jędrzejewski-Szmek2016-03-3125-43/+703
|\
| * DHCP DUID, IAID configuration optionsVinay Kulkarni2016-03-3025-43/+703
| |
* | Merge pull request #2919 from ColdPie1/udev_get_parent_docsDaniel Mack2016-03-301-2/+2
|\ \ | | | | | | man: Fix documented parameters for udev_device_get_ functions
| * | man: Fix documented parameters for udev_device_get_ functionsAndrew Eikum2016-03-301-2/+2
|/ /
* | Merge pull request #2915 from lnykryn/templateZbigniew Jędrzejewski-Szmek2016-03-301-1/+5
|\ \ | | | | | | core: improve error message when starting template without instance
| * | core: improve error message when starting template without instanceLukas Nykryn2016-03-301-1/+5
|/ /
* | Merge pull request #2898 from bengal/lldp-apiZbigniew Jędrzejewski-Szmek2016-03-298-159/+132
|\ \ | | | | | | lldp: move public macros to sd-lldp.h and namespace them
| * | lldp: move public macros to sd-lldp.h and namespace themBeniamino Galvani2016-03-248-159/+132
| | | | | | | | | | | | | | | | | | lldp.h contains definitions of LLDP types, subtypes and capabilities which should be exposed in public headers. Get rid of the file and move those definitions to sd-lldp.h with the SD_ prefix.
* | | Merge pull request #2903 from keszybz/cgroup2-v3Zbigniew Jędrzejewski-Szmek2016-03-298-19/+53
|\ \ \ | | | | | | | | core: cgroup2 support
| * | | core: update invoke_sigchld_event() to handle NULL ->sigchld_event()Tejun Heo2016-03-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After receiving SIGCHLD, one of the ways manager_dispatch_sigchld() maps the now zombie $PID to its unit is through manager_get_unit_by_pid_cgroup() which reads /proc/$PID/cgroup and looks up the unit associated with the cgroup path. On non-unified cgroup hierarchies, a process is immediately migrated to the root cgroup on death and the cgroup lookup would always have returned the unit associated with it, making it rather pointless but safe. On unified hierarchy, a zombie remains associated with the cgroup that it was associated with at the time of death and thus manager_get_unit_by_pid_cgroup() will look up the unit properly. However, by the time manager_dispatch_sigchld() is running, the original cgroup may have become empty and it and its associated unit might already have been removed. If the cgroup path doesn't yield a match, manager_dispatch_sigchld() keeps pruning the leaf component. This means that the function may return a slice unit for a pid and as a slice doesn't have ->sigchld_event() handler, calling invoke_sigchld_event() on it causes a segfault. This patch updates invoke_sigchld_event() so that it skips calling if the handler is not set.
| * | | core: update populated event handling in unified hierarchyTejun Heo2016-03-264-14/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Earlier during the development of unified hierarchy, the populated event was reported through by the dedicated "cgroup.populated" file; however, the interface was updated so that it's reported through the "populated" field of "cgroup.events" file. Update populated event handling logic accordingly.
| * | | cgroup2: use new fstype for unified hierarchyAlban Crequy2016-03-265-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Linux v4.4-rc1, __DEVEL__sane_behavior does not exist anymore and is replaced by a new fstype "cgroup2". With this patch, systemd no longer supports the old (unstable) way of doing unified hierarchy with __DEVEL__sane_behavior and systemd now requires Linux v4.4 for unified hierarchy. Non-unified hierarchy is still the default and is unchanged by this patch. https://github.com/torvalds/linux/commit/67e9c74b8a873408c27ac9a8e4c1d1c8d72c93ff
* | | | Merge pull request #2911 from evverx/shutdown-watchdog-infinityDaniel Mack2016-03-291-1/+1
|\ \ \ \ | | | | | | | | | | core: ShutdownWatchdogSec=infinity disables the watchdog logic too
| * | | | core: ShutdownWatchdogSec=infinity disables the watchdog logic tooEvgeny Vereshchagin2016-03-291-1/+1
|/ / / / | | | | | | | | | | | | This is a follow-up for 947292eef
* | | | Merge pull request #2907 from evverx/runtime-watchdog-infinityDaniel Mack2016-03-292-3/+3
|\ \ \ \ | | | | | | | | | | core: RuntimeWatchdogSec=infinity disables the watchdog logic
| * | | | core: RuntimeWatchdogSec=infinity disables the watchdog logicEvgeny Vereshchagin2016-03-282-3/+3
| |/ / /
* | | | Merge pull request #2905 from keszybz/gcrypt-compilationDaniel Mack2016-03-294-7/+22
|\ \ \ \ | | | | | | | | | | build-sys: fix build with libgrcypt disabled
| * | | | build-sys: fix build with libgrcypt disabledZbigniew Jędrzejewski-Szmek2016-03-274-7/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move gcrypt.h include inside grcrypt-util.h. - Allow gcrypt-util.[ch] to be compiled even without gcrypt. This allows the logic in files using gcrypt to be simplified. - Fix compilation of systemd-resolve without gcrypt. systemd-resolved already supported that. Fixes #2711.
* | | | Merge pull request #2906 from Lu-Biao/sharedZbigniew Jędrzejewski-Szmek2016-03-281-1/+1
|\ \ \ \ | |/ / / |/| | | shared: fix a misspelling of "journalctl"
| * | | shared: fix a misspelling of "journalctl"Biao Lu2016-03-291-1/+1
|/ / /
* | | Merge pull request #2887 from martinpitt/masterZbigniew Jędrzejewski-Szmek2016-03-252-2/+2
|\ \ \ | |/ / |/| | Fix logind crash if shutdown is called from a non-tty
| * | logind: fix crash when shutdown is not issued from a ttyMartin Pitt2016-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's possible that sd_bus_creds_get_tty() fails and thus scheduled_shutdown_tty is NULL in method_schedule_shutdown(). Fix logind_wall_tty_filter() to get along with that, by showing the message on all TTYs, instead of crashing in strcmp(). https://launchpad.net/bugs/1553040
| * | core: fix "stoppping" typoMartin Pitt2016-03-241-1/+1
| |/
* | Merge pull request #2892 from yuwata/localectlDaniel Mack2016-03-241-3/+3
|\ \ | |/ |/| localectl: remove an unnecessary line break from and align the output of status command
| * localectl: align output of 'localectl status' commandYu Watanabe2016-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If kernel command line options for locale are given, the output of 'localectl status' command is not aligned, for example, ============= Warning: Settings on kernel command line override system locale settings in /etc/locale.conf. Command Line: LANG=C System Locale: LANG=C VC Keymap: n/a X11 Layout: n/a ============= This commit fixes the alignment.
| * localectl: remove unnecessary line breakYu Watanabe2016-03-241-1/+1
|/ | | | | | | | | | | | | If /etc/locale.conf is empty or does not exist, the output of 'localectl status' command includes an unnecessary line break as follows: ======================= System Locale: n/a VC Keymap: n/a X11 Layout: n/a ======================= This commit removes the line break after the system locale.
* Merge pull request #2885 from gbrikis/masterDaniel Mack2016-03-231-2/+6
|\ | | | | core: Fix path for opening ffs endpoint ep0
| * core: Fix path for opening ffs endpoint ep0Georgia Brikis2016-03-231-2/+6
| | | | | | | | | | | | | | usbffs_address_create() expects an absolute path to the file that is supposed to be opened. The path specified only leads to the directory containing the endpoint ep0 not the endpoint itself. This commit adds the endpoints name to the path.
* | Merge pull request #2888 from kinvolk/iaguis/remove-dotsDaniel Mack2016-03-232-8/+8
|\ \ | | | | | | run: remove period when printing started units
| * | run: remove period when printing started unitsIago López Galeiras2016-03-232-8/+8
|/ / | | | | | | | | | | If you start a unit with systemd-run you usually need its name to inspect it or stop it. Removing the period makes copying the unit name easier.
* | Merge pull request #2886 from fbuihuu/systemctl-list-units-inactive-stateDaniel Mack2016-03-231-0/+5
|\ \ | | | | | | systemctl: no need to pass --all if inactive is explicitly requested …
| * | systemctl: no need to pass --all if inactive is explicitly requested in ↵Franck Bui2016-03-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | list-units If list-units command is explicitly asked to show inactive units by using '--state=inactive' option, there's no need to force the user to pass '--all' option to include inactive units in the search in this case.
* | | Merge pull request #2883 from keszybz/allow-bomsDaniel Mack2016-03-232-4/+10
|\ \ \ | | | | | | | | Ignore BOM in config files
| * | | Ignore BOM in config filesZbigniew Jędrzejewski-Szmek2016-03-222-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #2823. Also remove unnecessary feof check.
* | | | Merge pull request #2844 from yarda/uaccess-3dprintersZbigniew Jędrzejewski-Szmek2016-03-221-0/+3
|\ \ \ \ | |_|_|/ |/| | | Add support for 3D printers to uaccess (ID_3DPRINTER).
| * | | Added support for 3D printers to uaccess (ID_MAKER_TOOL)Jaroslav Škarvada2016-03-221-0/+3
| | | | | | | | | | | | | | | | This is to support 3D printers, CNCs, laser cutters, 3D scanners, etc.
* | | | Merge pull request #2880 from keszybz/more-testsDaniel Mack2016-03-223-5/+35
|\ \ \ \ | | | | | | | | | | Add some simple tests for env_value_is_valid and env_assignment_is_valid
| * | | | test-env-util: test env_{value,assignment}_is_validZbigniew Jędrzejewski-Szmek2016-03-211-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | Just to make sure everything works as expected in relation to https://bugzilla.redhat.com/show_bug.cgi?id=1312384.
| * | | | tests: rename test-env-replace to test-env-utilZbigniew Jędrzejewski-Szmek2016-03-213-5/+5
| | |/ / | |/| |
* | | | Merge pull request #2879 from ronnychevalier/rc/test_execute_fixZbigniew Jędrzejewski-Szmek2016-03-211-2/+3
|\ \ \ \ | | | | | | | | | | test-execute: fix execution of AmbientCapabilities tests
| * | | | test-execute: fix execution of AmbientCapabilities testsRonny Chevalier2016-03-211-2/+3
| |/ / / | | | | | | | | | | | | Wrong tests were executed
* | | | Merge pull request #2882 from systemd/revert-2818-masterZbigniew Jędrzejewski-Szmek2016-03-2124-509/+44
|\ \ \ \ | |/ / / |/| | | Revert "DHCP DUID and IAID configurability"
| * | | Revert "DHCP DUID and IAID configurability"revert-2818-masterZbigniew Jędrzejewski-Szmek2016-03-2124-509/+44
|/ / /
* | | Merge pull request #2878 from martinpitt/masterDaniel Mack2016-03-211-3/+3
|\ \ \ | | | | | | | | test-copy: use correct data type for max_bytes
| * | | test-copy: use correct data type for max_bytesMartin Pitt2016-03-211-3/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | copy_bytes() and the comparisons in test_copy_bytes_regular_file() expect an uint64_t, not a size_t. On 32 bit architectures the latter is 32 bit, leading to truncation errors. Fixes regression from commit 7a827fcb.
* | | Merge pull request #2760 from ronnychevalier/rc/core_no_new_privileges_seccompv3Daniel Mack2016-03-2111-33/+151
|\ \ \ | | | | | | | | core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMIN
| * | | test-execute: add nfsnobody alternative as a nobody userRonny Chevalier2016-02-288-7/+78
| | | |
| * | | core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMINRonny Chevalier2016-02-285-27/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The manpage of seccomp specify that using seccomp with SECCOMP_SET_MODE_FILTER will return EACCES if the caller do not have CAP_SYS_ADMIN set, or if the no_new_privileges bit is not set. Hence, without NoNewPrivilege set, it is impossible to use a SystemCall* directive with a User directive set in system mode. Now, NoNewPrivileges is set if we are in user mode, or if we are in system mode and we don't have CAP_SYS_ADMIN, and SystemCall* directives are used.
* | | | Merge pull request #2826 from thom311/masterDaniel Mack2016-03-211-7/+10
|\ \ \ \ | | | | | | | | | | lldp: fix starting ttl timer for lldp neighbor