summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* network: introduce manager_address_is_reachable()Yu Watanabe2021-05-122-0/+41
| | | | The function will be used in later commits.
* network: introduce link_has_route()Yu Watanabe2021-05-122-5/+68
| | | | The function will be used in later commits.
* network: delay resolving interface specifier in MultiPathRoute=Yu Watanabe2021-05-123-29/+53
| | | | The interface may not exist when .network files are loaded.
* network: introduce manager_has_address()Yu Watanabe2021-05-122-0/+58
| | | | The function will be used in later commits.
* ordered-set: introduce ordered_set_clear/free_with_destructor()Yu Watanabe2021-05-121-0/+11
|
* hashmap,set: make hashmap_clear_with_destructor() or friends saferYu Watanabe2021-05-122-23/+20
|
* network: use IPV4_ADDRESS_FMT_STR/VAL macros and in6_addr_to_string() or friendsYu Watanabe2021-05-125-128/+121
|
* in-addr-util: move IPV4_ADDRESS_FMT_STR/VAL macros from networkd-address.hYu Watanabe2021-05-122-7/+7
|
* in-addr-util: introduce in6_addr_to_string() or friendsYu Watanabe2021-05-121-0/+6
|
* network: use in6_addr_is_link_local() or friendsYu Watanabe2021-05-121-4/+4
|
* network: rename routing_policy_rule_configure_internal() and make it take ↵Yu Watanabe2021-05-121-55/+62
| | | | callback
* network: make nexthop_configure() take callbackYu Watanabe2021-05-121-33/+39
|
* network: make neighbor_configure() take callbackYu Watanabe2021-05-121-30/+35
|
* bootctl: same entry path check case-insensitivezsien2021-05-111-1/+5
| | | | | Some motherboards convert the path to uppercase under certain circumstances (e.g. after booting into the Boot Menu in the ASUS ROG STRIX B350-F GAMING).
* hwdb: keyboard: D330 Touchpad toggle keymaphowl2021-05-111-0/+4
| | | | | I have also seen that VIOS LTH17 has the exact same correction and it's also a SIPODEV composite hid device also through usb. In the D330 is a detachable keyboard. It's possible that a very generic way to apply this to at least affected sipodev keyboard could be found using the device ids, but needs info to do that and ensure all sipodev keyboard with the pertinent ids need it. Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
* hwdb: sensor: D330-IGM use pvr instead cvrhowl2021-05-111-2/+2
| | | | | | | We use pvr match for efifb pitch and drm orientation quirk and in touchpad toggle keymap. Also seems most consistent with the devices here. While at it, correct a typo, 81H3 and 81MD are product names not numbers, my bad. Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
* Merge pull request #19562 from keszybz/flag-manipsYu Watanabe2021-05-111-2/+5
|\ | | | | Fix flag manipulations in cryptsetup
| * cryptsetup: fix flags checkZbigniew Jędrzejewski-Szmek2021-05-101-1/+1
| | | | | | | | | | | | | | FLAGS_SET() checks if *all* the bits are set. In this case we want to check if *any* are. FLAGS_SET() was added in cde2f8605e0c3842f9a87785dd758f955f2d04ba, but not a bug then yet, because with just one bit, both options are equivalent. But when more bits were added later, this stopped being correct.
| * cryptsetup: initialize variableZbigniew Jędrzejewski-Szmek2021-05-101-1/+4
| | | | | | | | | | | | | | | | | | Fixup for cde2f8605e0c3842f9a87785dd758f955f2d04ba. Use PIN+PV because the status quo ante was that we turned off "uv" and left "up" and "clientPin" in its default values, which with yubikeys (i.e. the most popular hardware) meant both "up" and "clientPin" were enabled by default. Coverity CID#1453085.
* | unit-def: ensure UnitType enum fits any errno valueLennart Poettering2021-05-111-0/+2
| | | | | | | | | | | | | | | | | | This is a follow-up for #19514 which changed unit_name_to_instance() to return ENOMEM as a UnitType enum, even though the enum didn't necessarily have range for that. Let's extend the range explicitly, so that we can cover the full errno range in it.
* | bootctl: extend --make-machine-id-directory= documentation a bitLennart Poettering2021-05-111-9/+19
| | | | | | | | | | | | | | | | | | | | | | The directory might not be created in the ESP but in the extended boot loader partition, hence don#t claim otherwise. Also, give a brief reason why the concept exists at all. Link up machine-id man page. Follow-up for: 6a3fff75baad94d9ebff1a6c7d1fb35448c44a81
* | test-user-util: fix line break confusionLennart Poettering2021-05-111-1/+3
| | | | | | | | | | | | This fixes some line-break confusion introduced by #11199 (c6cecb744b53561efd329309af7d02a3f9979ed1). It also restores a test with GID_INVALID that was dropped, presumably by accident.
* | Merge pull request #19575 from poettering/hwdb-whitespace-fix-againYu Watanabe2021-05-114-7/+7
|\ \ | | | | | | hwdb: remove trailing whitespace
| * | man: remove some trailing whitespaceLennart Poettering2021-05-103-6/+6
| | |
| * | hwdb: remove trailing whitespaceLennart Poettering2021-05-101-1/+1
|/ /
* | hwdb: add accel matrix for One-netbook OneMix 3s (#19549)gitm02021-05-101-0/+5
| |
* | Merge pull request #19570 from poettering/userdb-followup-fixletsLennart Poettering2021-05-101-5/+3
|\ \ | | | | | | two minor userdb fixes
| * | userdb: initialize .synthesize_root/.synthesize_nobody in generic codeLennart Poettering2021-05-101-4/+2
| | | | | | | | | | | | | | | | | | Let's initialize this at the same place for any iterator allocated. (Yes not all types of iterator objects need this, but it's still nice to share this trivial code at one place).
| * | userdb: return ESRCH if we didn't find a single varlink serviceLennart Poettering2021-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Clearly communicate to callers that we didn't find a single varlink service, when a lookup is attempted. Note that the fallback's to NSS, drop-ins and synthesis might eat up this error again, but we should really make this case reasonably recognizable, in particular as our various tools already handle this condition correctly and print a nice message then.
* | | Merge pull request #19568 from poettering/userdbctl-dropinLennart Poettering2021-05-102-9/+66
|\ \ \ | |/ / |/| | userdbctl: add new --with-varlink= and --with-drop-in= flags
| * | man: document new userdbctl featuresLennart Poettering2021-05-101-1/+36
| | |
| * | userdbctl: add two new switches --with-dropin=/--with-varlink=Lennart Poettering2021-05-101-8/+30
|/ / | | | | | | | | These directly correspond to the underlying flags. They are useful for testing.
* | Merge pull request #19548 from poettering/userdb-dropinLennart Poettering2021-05-1013-81/+693
|\ \ | | | | | | userdb: add support for loading user/group records from JSON drop-ins
| * | docs: link info about static user/group drop-in files from the relevant specsLennart Poettering2021-05-102-1/+11
| | |
| * | man: document new userdbd featuresLennart Poettering2021-05-101-7/+11
| | |
| * | man: update nss-systemd documentation with new featuresLennart Poettering2021-05-101-0/+43
| | |
| * | userdbd: also listen on a varlink socket io.systemd.DropInLennart Poettering2021-05-105-3/+14
| | | | | | | | | | | | | | | Let's explicitly support looking things up via dropin as a varlink service.
| * | userdb: optionally read user/group/membership "dropins", tooLennart Poettering2021-05-105-70/+614
|/ /
* | Merge pull request #19542 from yuwata/unit-after-socketZbigniew Jędrzejewski-Szmek2021-05-107-15/+29
|\ \ | |/ |/| network, timesync, resolve: check bus is ready before emitting property change or signal
| * resolve: check that bus is ready before emitting signal or property changeYu Watanabe2021-05-084-11/+15
| |
| * timesync: check that bus is ready before emitting property changeYu Watanabe2021-05-081-1/+7
| |
| * network: check that bus is ready at one more placeYu Watanabe2021-05-081-0/+3
| |
| * local-addresses: wrap long commentYu Watanabe2021-05-081-3/+4
| | | | | | | | Follow-up for 54e6f97bc9931679aa9b895546621b15e0f464a4.
* | Merge pull request #19556 from lucasrangit/network-wifi-interface-type-typosZbigniew Jędrzejewski-Szmek2021-05-104-4/+7
|\ \ | | | | | | network: update documentation and examples to use correct interface type and lookup command
| * | man: network: use `networkctl list` instead of `status` to list network ↵Lucas Magasweran2021-05-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface type To determine the network interface type for use in the `Type=` directive, it is more concise to use the `list` command. Whereas, the `status` command requires an interface parameter. For example, on a RaspberryPi 4 the following shows that the `wlan0` interface type `wlan` is more coveniently listed by the `list` command. ``` root@raspberrypi4-64:~# networkctl list IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier unmanaged 2 eth0 ether routable configured 3 wlan0 wlan off unmanaged 3 links listed. ``` Whereas the `networkctl status` command doesn't include this information. ``` root@raspberrypi4-64:~# networkctl status ● State: routable Address: 192.168.1.141 on eth0 fd8b:8779:b7a4::f43 on eth0 fd8b:8779:b7a4:0:dea6:32ff:febe:d1ce on eth0 fe80::dea6:32ff:febe:d1ce on eth0 Gateway: 192.168.1.1 (CZ.NIC, z.s.p.o.) on eth0 DNS: 192.168.1.1 May 07 14:17:18 raspberrypi4-64 systemd-networkd[212]: eth0: Gained carrier May 07 14:17:19 raspberrypi4-64 systemd-networkd[212]: eth0: Gained IPv6LL May 07 14:17:19 raspberrypi4-64 systemd-networkd[212]: eth0: DHCPv6 address fd8b:8779:b7a4::f43/128 timeout preferred -1 valid -1 May 07 14:17:21 raspberrypi4-64 systemd-networkd[212]: eth0: DHCPv4 address 192.168.1.141/24 via 192.168.1.1 ``` To get the interface type using the `status` command you need to specify an additional argument. ``` root@raspberrypi4-64:~# networkctl status wlan0 ● 3: wlan0 Link File: /lib/systemd/network/99-default.link Network File: n/a Type: wlan State: off (unmanaged) Path: platform-fe300000.mmcnr Driver: brcmfmac HW Address: dc:a6:32:be:d1:cf (Raspberry Pi Trading Ltd) MTU: 1500 (min: 68, max: 1500) QDisc: noop IPv6 Address Generation Mode: eui64 Queue Length (Tx/Rx): 1/1 ```
| * | network: examples: use wlan for Type instead of wifiLucas Magasweran2021-05-103-3/+3
| | |
* | | resolve: remove RRs from zones before an updateRoman Beranek2021-05-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | During an update of RRs, the records of each DNS-SD service are replaced with new ones. However the old RRs can only be removed from the mDNS scopes as long as they remain accessible from the DnssdService structures, otherwise they remain stuck there. Therefore the removal must take place before the update.
* | | Wider range of options for selecting entries for systemd-journal-gatewaydSamuel BF2021-05-103-3/+77
| | | | | | | | | | | | | | | Introducing --user, --system, --merge and --file flags, like for journalctl and systemd-journal-upload.
* | | hwdb: Add Asus TP550LAHarsh Barsaiyan2021-05-101-0/+1
| | |
* | | Merge pull request #19436 from xnox/sbatDimitri John Ledkov2021-05-105-6/+62
|\ \ \ | |/ / |/| | boot: add optional EFI SBAT support