summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-26core: update populated event handling in unified hierarchyTejun Heo
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.
2016-03-26cgroup2: use new fstype for unified hierarchyAlban Crequy
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
2016-03-25Merge pull request #2887 from martinpitt/masterZbigniew Jędrzejewski-Szmek
Fix logind crash if shutdown is called from a non-tty
2016-03-24Merge pull request #2892 from yuwata/localectlDaniel Mack
localectl: remove an unnecessary line break from and align the output of status command
2016-03-24logind: fix crash when shutdown is not issued from a ttyMartin Pitt
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
2016-03-24core: fix "stoppping" typoMartin Pitt
2016-03-24localectl: align output of 'localectl status' commandYu Watanabe
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.
2016-03-24localectl: remove unnecessary line breakYu Watanabe
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.
2016-03-23Merge pull request #2885 from gbrikis/masterDaniel Mack
core: Fix path for opening ffs endpoint ep0
2016-03-23Merge pull request #2888 from kinvolk/iaguis/remove-dotsDaniel Mack
run: remove period when printing started units
2016-03-23core: Fix path for opening ffs endpoint ep0Georgia Brikis
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.
2016-03-23run: remove period when printing started unitsIago López Galeiras
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.
2016-03-23Merge pull request #2886 from fbuihuu/systemctl-list-units-inactive-stateDaniel Mack
systemctl: no need to pass --all if inactive is explicitly requested …
2016-03-23Merge pull request #2883 from keszybz/allow-bomsDaniel Mack
Ignore BOM in config files
2016-03-23systemctl: no need to pass --all if inactive is explicitly requested in ↵Franck Bui
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.
2016-03-22Ignore BOM in config filesZbigniew Jędrzejewski-Szmek
Fixes #2823. Also remove unnecessary feof check.
2016-03-22Merge pull request #2844 from yarda/uaccess-3dprintersZbigniew Jędrzejewski-Szmek
Add support for 3D printers to uaccess (ID_3DPRINTER).
2016-03-22Added support for 3D printers to uaccess (ID_MAKER_TOOL)Jaroslav Škarvada
This is to support 3D printers, CNCs, laser cutters, 3D scanners, etc.
2016-03-22Merge pull request #2880 from keszybz/more-testsDaniel Mack
Add some simple tests for env_value_is_valid and env_assignment_is_valid
2016-03-21Merge pull request #2879 from ronnychevalier/rc/test_execute_fixZbigniew Jędrzejewski-Szmek
test-execute: fix execution of AmbientCapabilities tests
2016-03-21Merge pull request #2882 from systemd/revert-2818-masterZbigniew Jędrzejewski-Szmek
Revert "DHCP DUID and IAID configurability"
2016-03-21Revert "DHCP DUID and IAID configurability"Zbigniew Jędrzejewski-Szmek
2016-03-21test-env-util: test env_{value,assignment}_is_validZbigniew Jędrzejewski-Szmek
Just to make sure everything works as expected in relation to https://bugzilla.redhat.com/show_bug.cgi?id=1312384.
2016-03-21tests: rename test-env-replace to test-env-utilZbigniew Jędrzejewski-Szmek
2016-03-21test-execute: fix execution of AmbientCapabilities testsRonny Chevalier
Wrong tests were executed
2016-03-21Merge pull request #2878 from martinpitt/masterDaniel Mack
test-copy: use correct data type for max_bytes
2016-03-21test-copy: use correct data type for max_bytesMartin Pitt
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.
2016-03-21Merge pull request #2760 from ronnychevalier/rc/core_no_new_privileges_seccompv3Daniel Mack
core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMIN
2016-03-21Merge pull request #2826 from thom311/masterDaniel Mack
lldp: fix starting ttl timer for lldp neighbor
2016-03-21Merge pull request #2875 from evverx/nspawn-template-bash-completionDaniel Mack
bash completion: add --template to nspawn
2016-03-20bash completion: add --template to nspawnEvgeny Vereshchagin
2016-03-20man: fix typo in systemd-sysv-generatorMichael Biebl
2016-03-18Merge pull request #2865 from utezduyar/journald-uploadDaniel Mack
journal-upload: remove microhttpd dependency
2016-03-18Merge pull request #2862 from evverx/nspawn-expose-ports-errorDaniel Mack
nspawn: don't run nspawn --port=... without libiptc support
2016-03-18journal-upload: remove microhttpd dependencyUmut Tezduyar Lindskog
journal-upload doesn't really need microhttpd to run. Without the dependency, we can cross compile systemd without microhttpd and get the uploader part of the remote logging. Change-Id: I28dfa5ad2aae94e50de1d32713e1827623c3fd1d
2016-03-18hwdb: Update database of Bluetooth company identifiersMarcel Holtmann
2016-03-17nspawn: don't run nspawn --port=... without libiptc supportEvgeny Vereshchagin
We get $ systemd-nspawn --image /dev/loop1 --port 8080:80 -n -b 3 --port= is not supported, compiled without libiptc support. instead of a ping-nc-iptables debugging session
2016-03-17Merge pull request #2839 from keszybz/use-sendfile-smarterDaniel Mack
Use sendfile smarter
2016-03-17Merge pull request #2854 from keszybz/log-colorsDaniel Mack
systemd: obey systemd.log_color config
2016-03-17Merge pull request #2856 from msekletar/merge-instanceDaniel Mack
core: look for instance when processing template name
2016-03-17basic/missing: move syscall definitions to basic/missing_syscall.hZbigniew Jędrzejewski-Szmek
We have a bunch of syscall wrapper definitions and it's easier to see that they follow the same pattern if they are not interspersed with other defines. Change the wrappers to be uniform: - if __NR_XXX is not defined, do not bother to call the syscall, and return -1/ENOSYS immediately. - do not check __NR_XXX defines if we detect the symbol as defined, since we don't need them anyway - reindent stuff for readability New file basic/missing_syscall.h is included at the end of missing.h because it might make use of some of the definitions in missing.h.
2016-03-17basic/copy: use copy_file_range()Zbigniew Jędrzejewski-Szmek
For btrfs, c_f_r() is like BTRFS_IOC_CLONE which we already used, but also works when max_bytes is set. We do call copy_bytes in coredump code with max_bytes set, and for large files, so we might see some benefit from using c_f_r() on btrfs. For other filesystems, c_f_r() falls back to do_splice_direct(), the same as sendfile, which we already call, so there shouldn't be much difference. Tested with test-copy and systemd-coredump on Linux 4.3 (w/o c_f_r) and 4.5 (w/ c_f_r).
2016-03-17basic/missing: add copy_file_rangeZbigniew Jędrzejewski-Szmek
syscall numbers based on: https://fedora.juszkiewicz.com.pl/syscalls.html
2016-03-17Merge pull request #2858 from keszybz/fbdev-uaccessDavid Herrmann
rules: allow users to access frame buffer devices
2016-03-17Merge pull request #2848 from keszybz/clang-warningsDaniel Mack
Clang warnings
2016-03-17Merge pull request #2859 from msekletar/ldconfig-after-localfsZbigniew Jędrzejewski-Szmek
units: run ldconfig.service after we have mounted all local file systems
2016-03-17units: run ldconfig.service after we have mounted all local file systemsMichal Sekletar
Also drop ConditionNeedsUpdate=|/etc. Regardless if system is updated online or offline, updating dynamic loader cache should always be responsibility of packaging tools/scripts.
2016-03-17systemd: obey systemd.log_color configZbigniew Jędrzejewski-Szmek
Fixes #2845.
2016-03-17rules: allow users to access frame buffer devicesZbigniew Jędrzejewski-Szmek
For example it allows weston to be started unprivileged. Related discussion: https://bugs.freedesktop.org/show_bug.cgi?id=73782 https://lists.freedesktop.org/archives/wayland-devel/2015-May/022005.html https://bugzilla.redhat.com/show_bug.cgi?id=1226680
2016-03-16core: look for instance when processing template nameMichal Sekletar
If first attempt to merge units failed and we are trying to do merge the other way around and at the same time we are working with template name, then other unit can't possibly be template, because it is not possible to have template unit running, only instances of the template. Thus we need to look for already active instance instead.