summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* separate flags from shebangbleep_blop2017-12-2519-19/+38
|
* sd-boot, udev: trivial condition simplificationsYu Watanabe2017-12-252-2/+2
| | | | | | Reported and proposed by @dcb314. Fixes #7656 and #7657.
* Merge pull request #7742 from poettering/meson-syscallLennart Poettering2017-12-251-13/+12
|\ | | | | Meson syscall
| * meson: hopefully renameat2() will show up where renameat() is definedLennart Poettering2017-12-251-1/+2
| | | | | | | | | | Should glibc add this eventually, let's try to be smart where to look for it.
| * meson: look for gettid() definition where getpid() is definedLennart Poettering2017-12-251-1/+2
| | | | | | | | | | Hopefully, should gettid() show up one day in glibc it'll show up where getpid() is defined too.
| * meson: when pivot_root() is added one day, look for it in <unistd.h>Lennart Poettering2017-12-251-1/+2
| | | | | | | | | | | | | | | | | | | | We of course don't know in which header glibc will export pivot_root() and if it ever will. But there's a good chance they'll place it where chroot() is located, given the similarity in the operations, hence let's try our luck and look for it at the same place. If we are lucky this means we don't have to patch our code if glibc decides to expose the call one day.
| * meson: use "args" for setting _GNU_SOURCE when checking for functionsLennart Poettering2017-12-251-10/+6
|/ | | | | | | | | | | | | | This reworks how we set _GNU_SOURCE when checking for the availability of functions: 1. We set it for most of the functions we look for. After all we set it for our entire built anyway, and it's usually how Linux-specific definitions in glibc are protected these days. Given that we usually have checks for such modern stuff only anyway, let's just blanket enable it. 2. Use "args" instead of "prefix" to set the macro. This is what is suggested in the meson docs, hence let's do it.
* meson: define _GNU_SOURCE to detect copy_file_range() (#7734)Yu Watanabe2017-12-251-1/+2
| | | | | | | | Follow-up for bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f of git repository for glibc. Recently glibc added `copy_file_range()`, but to use it, `_GNU_SOURCE` needs to be defined. This adds the flag in meson.build to detect the function by meson correctly.
* Merge pull request #7663 from keszybz/mkdir-return-valueLennart Poettering2017-12-2410-56/+69
|\ | | | | util-lib: fix return value in mkdir_parents()
| * Move mkdir_label() to mkdir-label.cZbigniew Jędrzejewski-Szmek2017-12-162-17/+21
| | | | | | | | It just seems strange to have it in a different file if mkdir-label.c exists.
| * smack-util: remove unneeded initalizationZbigniew Jędrzejewski-Szmek2017-12-161-1/+1
| |
| * Add mkdir_errno_wrapper() and use instead of mkdir() in various placesZbigniew Jędrzejewski-Szmek2017-12-168-39/+48
| | | | | | | | | | We'd pass pointers to mkdir and mkdir_label to call in various places. mkdir returns the error in errno while mkdir_label returns the error directly.
* | systemctl: don't show vendor preset state for generated/transient units (#7711)Lennart Poettering2017-12-241-1/+2
| | | | | | | | | | | | | | | | | | Showing the preset state for those suggests they could actually be enabled/disabled, but that concept doesn't exist for generated/transient units, hence hide this information. This came up here: https://lists.freedesktop.org/archives/systemd-devel/2017-December/040022.html
* | Merge pull request #7695 from yuwata/transient-socketLennart Poettering2017-12-2328-1387/+2082
|\ \ | | | | | | DBus-API: implement transient socket unit
| * | load-fragment: simplify list insertion logicYu Watanabe2017-12-231-5/+3
| | | | | | | | | | | | LIST_FIND_TAIL and LIST_INSERT_AFTER can work for empty list.
| * | cgroup: IODeviceWeight= or friends can take device node files in ↵Yu Watanabe2017-12-232-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | /run/systemd/inaccessible/ systemd creates several device nodes in /run/systemd/inaccessible/. This makes CGroup's settings related to IO can take device node files in the directory.
| * | core/socket: shorten socket_fdname()Yu Watanabe2017-12-231-4/+1
| | |
| * | core/socket: dump more settingsYu Watanabe2017-12-231-4/+24
| | |
| * | dbus-cgroup: merge several blocks which operate almost same tasksYu Watanabe2017-12-231-158/+44
| | |
| * | dbus-execute: use empty_to_null() where it can be applicableYu Watanabe2017-12-231-52/+34
| | |
| * | doc: add {Condition,Assert}ControlGroupController= to TRANSIENT-SETTINGS.mdYu Watanabe2017-12-231-0/+2
| | | | | | | | | | | | Follow-up for e16647c39d195804711a006667d5bce49c0ef73d.
| * | cgroup: move path checking logic to dbus-cgroup.cYu Watanabe2017-12-232-30/+22
| | |
| * | bus-unit-util: simplify bus_append_cgroup_property()Yu Watanabe2017-12-231-11/+3
| | |
| * | bus-unit-util: make dependency settings can take multiple unitsYu Watanabe2017-12-231-9/+2
| | | | | | | | | | | | | | | This allows people to specify multiple units in dependency settings e.g. `Requires=foo.service baz.service`.
| * | dbus-socket: move truncation check to bus_socket_set_transient_property()Yu Watanabe2017-12-232-4/+7
| | |
| * | basic: introduce socket_protocol_{from,to}_name()Yu Watanabe2017-12-239-33/+141
| | | | | | | | | | | | And use them where they can be applicable.
| * | doc: update TRANSIENT-SETTINGS.mdYu Watanabe2017-12-231-61/+61
| | |
| * | man: add explanation about transient path or socket units in systemd-runYu Watanabe2017-12-231-21/+40
| | |
| * | run: add support to create transient path and socket unitYu Watanabe2017-12-231-20/+66
| | |
| * | bus-unit-util: add socket unit related optionsYu Watanabe2017-12-236-786/+892
| | | | | | | | | | | | Also, split bus_append_unit_property_assignment().
| * | core: implement transient socket unitYu Watanabe2017-12-235-109/+605
| | |
| * | socket-util: add socket_address_type_{from,to}_string()Yu Watanabe2017-12-232-0/+14
| | |
| * | core/socket: add socket_port_type_from_string()Yu Watanabe2017-12-232-2/+20
| | |
| * | core:socket: fix string in socket_exec_command_tableYu Watanabe2017-12-231-5/+5
| | |
| * | core,seccomp: fix logic to parse RestrictAddressFamilies= in dbus-execute.cYu Watanabe2017-12-231-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | If multiple RestrictAddressFamilies= settings, some of them are whitelist and the others are blacklist, are sent to bus, then parsing result was corrupted. This fixes the parse logic, now it is the same as one used in load-fragment.c
| * | core,seccomp: fix logic to parse syscall filter in dbus-execute.cYu Watanabe2017-12-234-96/+102
| | | | | | | | | | | | | | | | | | | | | | | | If multiple SystemCallFilter= settings, some of them are whitelist and the others are blacklist, are sent to bus, then the parse result was corrupted. This fixes the parse logic, now it is the same as one used in load-fragment.c
| * | core: move path_kill_slashes() to managerYu Watanabe2017-12-192-3/+3
| | |
| * | core: fix wrong validity checkYu Watanabe2017-12-191-1/+1
| | |
| * | tree-wide: use !strv_isempty() instead of strv_length() > 0Yu Watanabe2017-12-194-6/+6
| | |
* | | networkd: Add support for ipvlan L3s and flags (#7726)Susant Sahani2017-12-237-4/+59
| | | | | | | | | | | | This works supports to configure L3S mode and flags such as bridge, private and vepa
* | | Merge pull request #7620 from keszybz/two-docsLennart Poettering2017-12-232-7/+18
|\ \ \ | | | | | | | | Two docs
| * | | man: tone down the note that reboot/halt/poweroff are legacyZbigniew Jędrzejewski-Szmek2017-12-141-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | They may be old (or rather compatible implementations of old commands), but they certainly are not going away. Apart from privilege escalation through polkit, they are mostly equivalent.
| * | | man: explain noauto/nofail more carefully in crypttabZbigniew Jędrzejewski-Szmek2017-12-121-5/+12
| | | | | | | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1524759
* | | | man: mention StateDirectory in file-hierarchy(7)Lucas Werkmeister2017-12-231-4/+4
| | | |
* | | | coccinelle: beef up isempty() checks (#7729)Lennart Poettering2017-12-231-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | With these additions, coccinelle finds everything fixed by the first commit in PR #7695. In order not to needlessly conflict with that PR this PR won't include those fixes, but only the coccinelle changes to detect them automatically in the future.
* | | | man: fix example config to conform the content of the man pageDmitry Rozhkov2017-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The config example contains wrong specificator for hostname. It should be %H instead of %h as documented in the man page. Use correct specificator for hostname.
* | | | catalog: update french translationSylvain Plantefève2017-12-221-0/+18
| | | |
* | | | shared/seccomp: add mmap handling for powerpcMathieu Malaterre2017-12-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove the warning: ./src/shared/seccomp-util.c:1414:2: warning: #warning "Consider adding the right mmap() syscall definitions here!" [-Wcpp] #warning "Consider adding the right mmap() syscall definitions here!"
* | | | networkd: show warning on error or cast to void when error is ignored (#7716)Yu Watanabe2017-12-211-54/+110
| | | |
* | | | hwdb: Add accelerometer orientation entry for Lenovo MIIX3-1030 tablet (#7713)Michał2017-12-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Full dmi/id/modalias: dmi:bvnLENOVO:bvrB4CN29WW:bd12/04/2015:svnLENOVO:pn80HV:pvrLenovoMIIX3-1030:rvnLENOVO:rnMartini:rvrSDK0G98662WIN:cvnLENOVO:ct11:cvrLenovoMIIX3-1030: Tested on Lenovo MIIX3 with Debian 9