summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | core: fix bpf-foreign cg controller realizationJulia Kartseva2021-11-102-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requiring /sys/fs/bpf path to be a mount point at the moment of cgroup controllers realization does more harm than good, because: * Realization happens early on boot, the mount point may not be ready at the time. That happens if mounts are made by a .mount unit (the issue we encountered). * BPF filesystem may be mounted on another point. Remove the check. Instead verify that path provided by BPFProgram= is within BPF fs when unit properties are parsed. Split in two commits for simple backport.
* | | | update TODOLennart Poettering2021-11-111-0/+40
| |/ / |/| |
* | | scope: count successful cgroup additions when delegating via D-BusJonas Witschel2021-11-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 8d3e4ac7cd37200d1431411a4b98925a24b7d9b3 ("scope: refuse activation of scopes if no PIDs to add are left") all "systemd-run --scope --user" calls fail because cgroup attachments delegated to the system instance are not counted towards successful additions. Fix this by incrementing the return value in case unit_attach_pid_to_cgroup_via_bus() succeeds, similar to what happens when cg_attach() succeeds directly. Note that this can *not* distinguish the case when unit_attach_pid_to_cgroup_via_bus() has been run successfully, but all processes to attach are gone in the meantime, unlike the checks that commit 8d3e4ac7cd37200d1431411a4b98925a24b7d9b3 adds for the system instance. This is because even though unit_attach_pid_to_cgroup_via_bus() leads to an internal unit_attach_pids_to_cgroup() call, the return value over D-Bus does not include the number of successfully attached processes and is always NULL on success. Fixes: #21297
* | | man: remove unintentionally repetitive wordsml2021-11-117-7/+7
| | |
* | | Merge pull request #21302 from yuwata/udev-drop-colon-from-ID_NET_NAME_MACLennart Poettering2021-11-113-6/+24
|\ \ \ | | | | | | | | udev: drop colon from ID_NET_NAME_MAC
| * | | udev: drop colon from ID_NET_NAME_MACYu Watanabe2021-11-111-1/+1
| | | | | | | | | | | | | | | | Fixes a bug introduced by eaba9bb3e69635d2c490c5e1b0d262b763753e1d.
| * | | ether-addr-util: introduce hw_addr_to_string_full()Yu Watanabe2021-11-112-5/+23
| |/ /
* | | Merge pull request #21304 from poettering/chain-ssh-auth-keysLennart Poettering2021-11-118-42/+114
|\ \ \ | | | | | | | | userdbctl: add support for chaining other ssh-authorized-keys commands from userdbctl
| * | | man: document new --chain switch to userdbctlLennart Poettering2021-11-111-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | And while we are at it, make 'ssh-authorized-keys' verb properly documented. Given that OpenSSH documents the interface in its man page it's fine to just document our implementation of it too.
| * | | userdbctl: add support for chaining command lines in "authorized-keys" verbLennart Poettering2021-11-111-16/+79
| | | |
| * | | escape: return unused memory in quote_command_line()Lennart Poettering2021-11-111-1/+1
| | | |
| * | | process-util: use quote_command_line() at one more placeLennart Poettering2021-11-111-12/+1
| | | |
| * | | escape: add flags argument to quote_command_line()Lennart Poettering2021-11-115-11/+10
| |/ / | | | | | | | | | That way, we can reuse the call at one more place (see later patch).
* | | Merge pull request #21301 from yuwata/network-neighbor-use-hw-addr-dataLuca Boccassi2021-11-116-89/+32
|\ \ \ | | | | | | | | network: neighbor: use "struct hw_addr_data"
| * | | network: neighbor: accept an empty string assignmentYu Watanabe2021-11-111-5/+17
| | | |
| * | | network: neighbor: use "struct hw_addr_data" to store link layer addressYu Watanabe2021-11-113-83/+13
| | | |
| * | | ether-addr-util: expose hw_addr_hash_func()Yu Watanabe2021-11-112-1/+2
| | | |
| * | | sd-netlink: fix type of NDA_LLADDR attributeYu Watanabe2021-11-111-1/+1
| |/ /
* | | test: use kbd-mode-map we ship in one more test caseYu Watanabe2021-11-111-1/+1
|/ / | | | | | | | | | | Follow-up for be0cc2ce6c947aafadb3f42dba405269f670b31c. Fixes https://github.com/systemd/systemd/pull/19670#issuecomment-965817823.
* | Merge pull request #21273 from yuwata/hostname-device-treeLuca Boccassi2021-11-103-8/+5
|\ \ | | | | | | hostnamed: use /proc/device-tree to get chassis type
| * | sd-id128: use /proc/device-treeYu Watanabe2021-11-111-1/+1
| | |
| * | condition: use /proc/device-tree/Yu Watanabe2021-11-111-6/+3
| | |
| * | hostnamed: use /proc/device-tree to get chassis typeYu Watanabe2021-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-ofw --- Userspace must not use the /sys/firmware/devicetree/base path directly, but instead should follow /proc/device-tree symlink. It is possible that the absolute path will change in the future, but the symlink is the stable ABI. --- Addresses the comment https://github.com/systemd/systemd/pull/20731#discussion_r744095262.
* | | netif-util: fix stack-use-after-scopeYu Watanabe2021-11-101-4/+2
| | | | | | | | | | | | | | | | | | Fixes a bug introduced by 0295b2fd1d97c68010c7528af13e2952886d52e0. Fixes #21292.
* | | ci: take CIFuzz's matrix into considerationFrantisek Sumsal2021-11-101-1/+1
|/ / | | | | | | | | | | Otherwise the jobs will try to cancel each other out. Follow-up to 3884837610168e6fb69fc2d5709f6c017a30beb9.
* | Merge pull request #21290 from poettering/arch-me-harderLuca Boccassi2021-11-106-12/+94
|\ \ | | | | | | some docs/tweaks regarding porting to new archs
| * | doc: add some docs with a checklist of what to do for new architecturesLennart Poettering2021-11-101-0/+61
| | |
| * | shared: nudge people into sending us patches to make /lib64/ symlink ↵Lennart Poettering2021-11-101-3/+18
| | | | | | | | | | | | | | | | | | | | | generation work on all archs that need it This is an attempt to nudge people into sending us patches that fix bug #14311 for us, given that the original submitter lost interest.
| * | docs: invite people to define GPT partition types for all archs nowLennart Poettering2021-11-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The discovery partitions spec so far suggested we should define arch-specific partition type uuids only for archs that have EFI. Let's change that and invite people to define them for any arch. Why? Even if GPT is defined as part of the UEFI spec it's quite useful independently of it, too. Specifically, our image dissection logic makes use of it, i.e. systemd-nspawn, systemd-gpt-auto-generator, systemd-repart, RootImage=, portable services, and so on. None of these tools are related to UEFI in any way. Hence, let's open this up.
| * | shared: start pushing people gently to define GPT partition type UUIDs for ↵Lennart Poettering2021-11-101-0/+10
| | | | | | | | | | | | | | | | | | | | | missing archs Let's generate a single gcc `#warning` message asking people to define partition type UUIDs for their architectures if they are missing.
| * | architecture: drop __riscv__ checks, it's obsolete since 2018Lennart Poettering2021-11-102-4/+2
| | |
* | | meson: Rework gnu-efi detectionJan Janssen2021-11-102-329/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | Moving all of the gnu-efi detection into src/boot/efi/meson.build makes more sense than having it partially split. And thanks to subdir_done() we can simplify the code a lot. Fixes: #21258
* | | Merge pull request #21293 from mrc0mmand/ci-cancel-old-jobsLuca Boccassi2021-11-105-36/+44
|\ \ \ | |/ / |/| | ci: cancel previous jobs on ref update
| * | ci: cancel previous jobs on ref updateFrantisek Sumsal2021-11-105-0/+15
| | | | | | | | | | | | | | | | | | | | | Let's save the environment (and reduce the number of jobs in GH Actions queues) by cancelling old jobs on a ref update (force push). See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
| * | ci: fix indentationFrantisek Sumsal2021-11-101-29/+29
| | |
| * | Revert "CI: run GCC unit test job on push to main"Frantisek Sumsal2021-11-101-7/+0
|/ / | | | | | | | | | | This reverts commit c1036042f5aa3369d771776fb6d57fac2543d80d. Follow-up to 0ad536c16a940b4557322f3f811db73c4b374898.
* | fsck: no emergency.target on nofail mountsScott Lamb2021-11-103-8/+16
| | | | | | | | | | Also describe failure behavior more precisely in the manpage. Fixes #20237.
* | core: replace slice dependencies as they get addedAnita Zhang2021-11-106-8/+45
| | | | | | | | | | | | | | | | Defines a "UNIT_DEPENDENCY_SLICE_PROPERTY" UnitDependencyMask type that is used when adding slices to the dependencies hashmap. This type is used to remove slice dependencies when they get overridden by new ones. Fixes #20182
* | Merge pull request #21287 from yuwata/man-network-conditionZbigniew Jędrzejewski-Szmek2021-11-102-71/+11
|\ \ | | | | | | man: cleanups for [Match] section
| * | man: use include directive for [Match] sectionYu Watanabe2021-11-101-71/+10
| | |
| * | man: add missing Firmware= settingYu Watanabe2021-11-101-0/+1
| | |
* | | network: cake: fix copy-and-paste errorYu Watanabe2021-11-101-1/+1
|/ / | | | | | | | | | | Follow-up for 35896db4895f68050c3edd2c58b913dcba4e0fd8. Fixes CID#1465796.
* | Merge pull request #21276 from yuwata/ether-addr-utilYu Watanabe2021-11-1019-153/+447
|\ \ | | | | | | ether-addr-util: introduce parse_hw_addr() and related conf parsers
| * | conf-parser: introduce config_parse_hw_addr() and config_parse_hw_addrs()Yu Watanabe2021-11-092-0/+96
| | |
| * | ether-addr-util: introduce {hw,ether}_addr_hash_ops_freeYu Watanabe2021-11-095-8/+10
| | |
| * | conf-parser: rename config_parse_hwaddr() -> config_parse_ether_addr()Yu Watanabe2021-11-096-77/+77
| | |
| * | ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()Yu Watanabe2021-11-0912-88/+14
| | |
| * | ether-addr-util: introduce parse_ether_addr()Yu Watanabe2021-11-092-0/+16
| | |
| * | test: add tests for parse_hw_addr()Yu Watanabe2021-11-091-0/+102
| | |
| * | ether-addr-util: introduce parse_hw_addr()Yu Watanabe2021-11-092-0/+152
| | |