summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* zsh: Complete systemctl subcommands in separate tagsDaniel Shahaf2020-01-081-11/+17
| | | | Fixes #14422
* Merge pull request #14423 from danielshahaf/zsh-add-missing-completionsChris Down2020-01-071-16/+56
|\ | | | | zsh: Add missing completions
| * zsh: Prepare for classifying systemctl commands (#14422)Daniel Shahaf2019-12-231-3/+22
| |
| * zsh: Complete more systemctl commandsDaniel Shahaf2019-12-231-0/+8
| | | | | | | | The completion is now synced with the manual.
| * zsh: Group systemctl subcommands as in the manual. No functional change.Daniel Shahaf2019-12-231-14/+27
| |
* | boot: fix osrel parserLennart Poettering2020-01-071-1/+1
| | | | | | | | | | | | let's check VERSION instead of VERSION_ID where appropriate. Fixes: #14493
* | Merge pull request #14472 from poettering/test-43-fixesAnita Zhang2020-01-072-24/+25
|\ \ | | | | | | Various robustness fixes for TEST-43-PRIVATEUSER-UNPRIV
| * | testsuite: drop "systemctl is-system-running --wait" invocationLennart Poettering2020-01-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | We wait for "basic.target" being reached in the user instance anyway before allowing the user's session to start, hence doing such a wait is unnecessary, since that would just mean we'd wait for "default.target" on top of "basic.target", but we shouldn#t need anything of that... Hence, let's simplify this, reduce explicit sync points.
| * | test: don't rely on "nobody" user for TEST-43Lennart Poettering2020-01-062-22/+25
| | | | | | | | | | | | | | | | | | The name is not as universal as we want, still, hence let's use our own user we create with sysusers.d/. That should yield same behaviour everywhere (and also test sysusers a bit as side effect).
| * | test: hardcode shell to useLennart Poettering2020-01-061-1/+1
| | | | | | | | | | | | | | | | | | let's make sure we always invoke our commands through /bin/sh, since on some distros su will use /bin/nologin (or whatever is listed in /etc/passwd) as shell otherwise and we don#t want that.
* | | Merge pull request #14499 from yuwata/network-gateway-dhcpLennart Poettering2020-01-079-4/+114
|\ \ \ | | | | | | | | network: static route via DHCP gateway
| * | | test-network: add test for Gateway=DHCPYu Watanabe2020-01-073-0/+45
| | | |
| * | | network: static routes via DHCP gatewayYu Watanabe2020-01-076-4/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Gateway= also take "DHCP". If "DHCP" is set, then the gateway address provided by DHCP or IPv6 RA is used. Closes #8213.
* | | | units: Split modprobing out into a separate service unitIain Lane2020-01-074-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices referred to by `DeviceAllow=` sandboxing are resolved into their corresponding major numbers when the unit is loaded by looking at `/proc/devices`. If a reference is made to a device which is not yet available, the `DeviceAllow` is ignored and the unit's processes cannot access that device. In both logind and nspawn, we have `DeviceAllow=` lines, and `modprobe` in `ExecStartPre=` to load some kernel modules. Those kernel modules cause device nodes to become available when they are loaded: the device nodes may not exist when the unit itself is loaded. This means that the unit's processes will not be able to access the device since the `DeviceAllow=` will have been resolved earlier and denied it. One way to fix this would be to re-evaluate the available devices and re-apply the policy to the cgroup, but this cannot work atomically on cgroupsv1. So we fall back to a second approach: instead of running `modprobe` via `ExecStartPre`, we move this out to a separate unit and order it before the units which want the module. Closes #14322. Fixes: #13943.
* | | | udev: do not use exact match of file permissionYu Watanabe2020-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This partially reverts 25de7aa7b90c23d33ea50ada1e50c5834a414237. Fixes #14473.
* | | | Merge pull request #14481 from yuwata/virt-string-tableLennart Poettering2020-01-071-45/+38
|\ \ \ \ | | | | | | | | | | virt: use string table to detect VM or container
| * | | | virt: drop trailing white spacesYu Watanabe2020-01-071-1/+1
| | | | |
| * | | | virt: use string table to detect VM or containerYu Watanabe2020-01-071-44/+37
| |/ / /
* | | | nspawn: set original ifname as alternative if it is truncatedYu Watanabe2020-01-073-10/+99
| | | |
* | | | man: drop unnecessary white spaceYu Watanabe2020-01-071-1/+1
| | | |
* | | | locale-util: extend comments on unicode glyph use, and drop mdash (that ↵Lennart Poettering2020-01-073-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually was an ndash) Let's add the actual unicode names of the glyphs we use. Let's also add in comments what the width expectations of these glyphs are on the console. Also, remove the "mdash" definition. First of all it wasn't used, but what's worse the glyph encoded was actually an "ndash"... Fixes: #14075
* | | | Merge pull request #14420 from DaanDeMeyer/nspawn-fix-read-only-overlay-rootfsLennart Poettering2020-01-073-1/+19
|\ \ \ \ | |/ / / |/| | | nspawn: Don't mount read-only if we have a custom mount on root.
| * | | nspawn: Make a custom mount on root imply --read-only.Daan De Meyer2020-01-031-0/+3
| | | |
| * | | nspawn: Don't mount read-only if we have a custom mount on root.Daan De Meyer2020-01-033-1/+16
| | | |
* | | | pkcs11-util: don't mask return value of the first asprintf()Frantisek Sumsal2020-01-071-1/+1
| | | | | | | | | | | | | | | | Fixes CID#1409666
* | | | network: lower the log-level of harmless messageYu Watanabe2020-01-071-5/+5
| | | | | | | | | | | | | | | | Closes #14285.
* | | | meson: drop unnecessary linking of libudev_coreYu Watanabe2020-01-071-2/+1
| | | |
* | | | sd-netlink: fix copy and paste mistakeYu Watanabe2020-01-061-2/+2
| | | |
* | | | sd-netlink: use uint8_t* for non-character dataYu Watanabe2020-01-061-2/+2
| |/ / |/| |
* | | dbus-execute: avoid extra strdup()Topi Miettinen2020-01-041-3/+3
| | | | | | | | | | | | | | | bind_mount_add does the strdup(), so we can avoid strdup()ing the strings.
* | | test: use symlinks for MakefilesLennart Poettering2020-01-034-36/+4
| | | | | | | | | | | | | | | for some reason the newer tests used file copyies instead of symlinks. let's fix that.
* | | job: Don't mark as redundant if deps are relevantKevin Kuehler2020-01-033-12/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the steps given in #13850, the resulting graph looks like: C (Anchor) -> B -> A Since B is inactive, it will be flagged as redundant and removed from the transaction, causing A to get garbage collected. The proposed fix is to not mark nodes as redundant if doing so causes a relevant node to be garbage collected. Fixes #13850
* | | Merge pull request #14194 from yuwata/network-multipath-routing-12541Lennart Poettering2020-01-0311-32/+334
|\ \ \ | | | | | | | | network: introduce multipath routing
| * | | test-network: add test case for multipath routingYu Watanabe2019-12-182-0/+43
| | | |
| * | | network: introduce multipath routeYu Watanabe2019-12-186-1/+221
| | | | | | | | | | | | | | | | Closes #12541.
| * | | sd-netlink: introduce rtattr_append_attribute()Yu Watanabe2019-12-183-31/+70
| | | | | | | | | | | | | | | | It will be used in later commit.
* | | | Merge pull request #14469 from aburch/man-tmpfiles.d-minor-improvementsLennart Poettering2020-01-031-5/+4
|\ \ \ \ | |_|/ / |/| | | man: tmpfiles.d: minor improvements
| * | | man: tmpfiles.d: only list "v" onceAnsgar Burchardt2020-01-031-1/+0
| | | |
| * | | man: tmpfiles.d: "b", "c" options require major and minor numbersAnsgar Burchardt2020-01-031-4/+4
| | | |
* | | | Merge pull request #14401 from DaanDeMeyer/nspawn-move-veth-back-to-hostLennart Poettering2020-01-033-30/+92
|\ \ \ \ | |/ / / |/| | | nspawn: move virtual interfaces added with --network-interface back to the host
| * | | nspawn: Move --network-interface interfaces back to the host.Daan De Meyer2020-01-023-10/+48
| | | |
| * | | nspawn-network: Split off udev checking from parse_interface.Daan De Meyer2019-12-233-20/+44
| | | |
* | | | hwdb: Lenovo T490 Synaptics Touchpad hwdb entryMike Auty2020-01-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Synaptics Touchpad that comes with the T490 doesn't explicitly set its resolution, so these lines are needed to provide that, in order to help the libinput code detect overly large jumps. Since this device contains buttons under the lower section of the touchpad, large jumps are common, so having the resolution helps libinput greatly reduce the number of occurances of pointer jump. This comes from https://gitlab.freedesktop.org/libinput/libinput/issues/402.
* | | | Merge pull request #14467 from poettering/nspawn-short-names-reworkLennart Poettering2020-01-039-18/+93
|\ \ \ \ | | | | | | | | | | nspawn: change how we truncate --network-veth names
| * | | | nspawn: Generate unique short veth namesKai Krakow2020-01-025-13/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit lowers the chance of having veth name conflicts for machines created with similar names. Replaces: #12865 Fixes: #13417
| * | | | udev: move naming-scheme.[ch] into src/shared/Lennart Poettering2020-01-026-5/+6
|/ / / / | | | | | | | | | | | | That way we can use it from non-udev code too, for example nspawn.
* | | | Merge pull request #13748 from jwrdegoede/hwdb-updates2Lennart Poettering2020-01-022-8/+9
|\ \ \ \ | | | | | | | | | | Add LCD menu key mappings for the Logitech MX5000 and MX5500
| * | | | hwdb: ignore keys added in kernel 5.5Zbigniew Jędrzejewski-Szmek2019-12-191-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | python-evdev needs to be rebuilt with new kernel headers. Before that happens, our test would reject those keys as unknown.
| * | | | hwdb: Add LCD menu key mappings for the Logitech MX5000 and MX5500 keyboardsHans de Goede2019-12-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel now has proper evdev codes for the menu buttons below the small LCD-s builtin to some keyboards. Add mappings for these buttons on the Logitech MX5000 and MX5500 keyboards.
* | | | | systemctl: show 'VENDOR PRESET' column in 'list-unit-files'Frantisek Sumsal2020-01-022-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | Show the install value presets would suggest for each service in a separate column.