Zbigniew Jędrzejewski-Szmek [Fri, 14 May 2021 14:12:51 +0000 (16:12 +0200)]
meson: revert the change to unquote commands in add_install_script
Old meson fails with:
Element not a string: [<Holder: <ExternalProgram 'sh' -> ['/bin/sh']>>, '-c', 'test -n "$DESTDIR" || /bin/journalctl --update-catalog']
I'm doing it as a revert so that it's easy to undo the revert when we require
newer meson. The effect is not so bad, maybe a dozen or so lines about finding
'sh'.
Zbigniew Jędrzejewski-Szmek [Fri, 14 May 2021 12:20:33 +0000 (14:20 +0200)]
meson: print autodetected sbat fields
...
Message: sbat-distro (from ID): fedora
Message: sbat-distro-summary (from NAME): Fedora
Message: sbat-distro-url (from BUG_REPORT_URL): https://bugzilla.redhat.com/
...
Zbigniew Jędrzejewski-Szmek [Fri, 14 May 2021 12:16:17 +0000 (14:16 +0200)]
meson: call find_program() once and reuse the variable everywhere
Meson 0.58 has gotten quite bad with emitting a message every time
a quoted command is used:
Program /home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh found: YES (/home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program sh found: YES (/usr/bin/sh)
Program xsltproc found: YES (/usr/bin/xsltproc)
Configuring custom-entities.ent using configuration
Message: Skipping bootctl.1 because ENABLE_EFI is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Message: Skipping journal-remote.conf.5 because HAVE_MICROHTTPD is false
Message: Skipping journal-upload.conf.5 because HAVE_MICROHTTPD is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Message: Skipping loader.conf.5 because ENABLE_EFI is false
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
Program ln found: YES (/usr/bin/ln)
...
Let's suffer one message only for each command. Hopefully we can silence
even this when https://github.com/mesonbuild/meson/issues/8642 is
resolved.
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 09:24:25 +0000 (11:24 +0200)]
tools/make-directive-index: parallelize
I occasionally do 'build/man/man systemd.directives' when working on man pages,
and it's annoying slow. By paralellizing the parsing of xml, we can make it a
bit faster.
This is still rather innefficient. Only the parsing part is serialized, xml is
still produced serially at the end, which is hard to avoid.
$ ninja -C build man/systemd.directives.xml
before:
8.20s user 0.21s system 99% cpu 8.460 total
8.33s user 0.18s system 98% cpu 8.619 total
8.72s user 0.19s system 98% cpu 9.019 total
after:
13.99s user 0.73s system 345% cpu 4.262 total
14.15s user 0.35s system 348% cpu 4.161 total
14.33s user 0.35s system 339% cpu 4.321 total
I.e. it uses almost twice as much cpu, but cuts the wallclock time down (on a
2-core/4-thread cpu) to about half too, which is an overall win if you're just
trying to render the man page.
The change from list and .append() to set and .add() is something that could
have been done before too, but it's noticable now. It cuts down on the
serialization/deserialization time (about .2s).
Simon Watts [Wed, 12 May 2021 21:22:39 +0000 (22:22 +0100)]
Add Microsoft Pro Intellimouse MOUSE_DPI to hwdb
- Internet specifications give 1600 DPI @ 1000Hz for this sensor
- Confirmed experimentally via `mouse-dpi-tool`
- vid, pid, and name match string from `mouse-dpi-tool`
Seong-ho Cho [Thu, 13 May 2021 08:19:48 +0000 (17:19 +0900)]
Update Korean translation (#19083)
Co-authored-by: Seong-ho Cho <shcho@gnome.org>
Yu Watanabe [Thu, 13 May 2021 03:17:19 +0000 (12:17 +0900)]
Merge pull request #19590 from keszybz/comments-and-service-modernization
Comments and service modernization
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 10:21:58 +0000 (12:21 +0200)]
Merge pull request #19567 from poettering/ipv4-ipv6-lowercase
various follow-ups to socket-bind logic
Michael Catanzaro [Tue, 11 May 2021 13:24:55 +0000 (08:24 -0500)]
resolved.conf.in: add missing Quad9 servers
The example configuration is missing half of Quad9's addresses.
Lennart Poettering [Tue, 11 May 2021 20:21:52 +0000 (22:21 +0200)]
resolved: be more careful with weird links with low MTUs
Apparently CAN links will show up in rtnetlink with very low MTUs. We
shouldn't consider them relevant if no IP is spoken over them, since
these MTUs are irrelevant for us then.
Hence, let's check if there's an address assigned to the link before
considering its MTU.
As additional safety net filter out MTUs smaller than the minimum DNS
packet size, too.
Finally, in case we don't find any suitable interface MTU, let's default
to 1500 as the generic Ethernet MTU.
Fixes: #19396
Lennart Poettering [Wed, 12 May 2021 08:33:27 +0000 (10:33 +0200)]
pam: fix typo try_authtok → use_authtok
This was a copy/paste mistae apparently, there's not "try_authtok" and
this was supposed to copy what Fedora uses, which uses "use_authtok"
correctly. Hence adjust this.
Fixes: #19369
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 10:12:22 +0000 (12:12 +0200)]
Merge pull request #19533 from yuwata/network-queue
network: introduce queue to configure address, route, etc
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 10:56:04 +0000 (12:56 +0200)]
core/service: modernization
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 10:54:52 +0000 (12:54 +0200)]
test-bpf-foreign-programs: fix message
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 06:35:21 +0000 (08:35 +0200)]
docs/HACKING: wrap long lines
Zbigniew Jędrzejewski-Szmek [Sat, 8 May 2021 09:40:47 +0000 (11:40 +0200)]
sd-event: tweak comments
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 07:39:28 +0000 (09:39 +0200)]
timedated: make ntp_synced() static
No need to have this in basic.
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 09:36:32 +0000 (11:36 +0200)]
Merge pull request #18986 from poettering/oomd-varlink-fix
varlink ref fix
Zbigniew Jędrzejewski-Szmek [Wed, 12 May 2021 07:45:36 +0000 (09:45 +0200)]
Merge pull request #19506 from xnox/ship-stub-elf
boot/efi: install ELF linux.elf.stub in addition to PE linux.efi.stub
Lennart Poettering [Wed, 12 May 2021 07:42:08 +0000 (09:42 +0200)]
Merge pull request #19581 from yuwata/specifier-refuse-too-long-results
specifier: refuse too long results
Lennart Poettering [Tue, 11 May 2021 15:08:00 +0000 (17:08 +0200)]
netlink,network: drop "const" from opaque object parameters in supposed-to-be-public APIs
This drops the "const" specifier from the opaque object parameters to
various functions in our API.
This effectively reverts #19292 and more.
Why drop this? Our public APIs should not leak too much information
about how stuff is implemented internally. In our public APIs we
shouldn't give too many guarantees we don#t want to necessarily keep.
Specifically: in many cases it makes sense that getters actually
generate/parse/allocate data on the fly, storing/caching the result
internally, to speed things up, do things lazily or to track memory
allocations so that they can be freed later. Doing this means we need to
change the objects, even though the getters are semantically a read
operation.
We want to retain the freedom that we can change things around
internally. By exposing the objects as "const" we remove a good chunk of
that, for little gain.
See sd_bus_creds_get_description() for a real example of a getter that
implicitly caches and thus modifies the relevant object.
This removes the "const" decorators from sd-dhcp and sd-netlink, two
APIs that we intend to make public eventually even though they still are
not, leaving us the chance to still fix this before it becomes set in
stone.
Yu Watanabe [Wed, 5 May 2021 14:05:02 +0000 (23:05 +0900)]
test-network: wait for the interfaces are configured after reloading .network files
Yu Watanabe [Wed, 5 May 2021 14:04:24 +0000 (23:04 +0900)]
test-network: wait for the intreface is configured if it is expected
Yu Watanabe [Thu, 29 Apr 2021 14:18:29 +0000 (23:18 +0900)]
network: make route_configure() return all created routes
Yu Watanabe [Thu, 29 Apr 2021 14:30:51 +0000 (23:30 +0900)]
network: make log_route_debug() show multipath routes and Gateway=_dhcp4 or _ipv6ra
Yu Watanabe [Wed, 5 May 2021 13:46:44 +0000 (22:46 +0900)]
network: use request queue to configure addresses, routes, and nexthops
Why is this necessary? Several examples below.
- When a route sets prefsrc, then the address must be already assigned
(see issue #19285), and also it must be ready if IPv6.
- When a route or nexthop sets gateway, then the address must be reachable.
- When a route sets nexthop ID, then the corresponding nexthop must be
assigned.
- When a route sets multipath routes on another interface, then the
interface must exist and be ready to configure.
- When configuring address, the same address must not be under removing
(see issue #18108).
Etc,. etc,...
So, this makes all requests about addresses, routes, and nethops are once
stored in the queue, and will be processed when they are ready to configure.
Fixes #18108 and #19285.
Yu Watanabe [Fri, 7 May 2021 07:05:31 +0000 (16:05 +0900)]
network: use request queue to configure neighbors
Yu Watanabe [Fri, 7 May 2021 06:57:13 +0000 (15:57 +0900)]
network: use request queue to configure routing policy rules
Yu Watanabe [Fri, 7 May 2021 06:45:28 +0000 (15:45 +0900)]
network: introduce link_is_ready_to_configure() helper function
This will be used in later commits.
Yu Watanabe [Fri, 7 May 2021 06:39:16 +0000 (15:39 +0900)]
network: add skeleton of request queue
This will be used in later commits.
Yu Watanabe [Fri, 7 May 2021 11:52:49 +0000 (20:52 +0900)]
network: nexthop: add NextHop object before sending netlink request
Otherwise, if nexthop_add() fails, then assertion about nexthop_messages in
static_nexthop_handler() will be triggered.
Yu Watanabe [Fri, 7 May 2021 08:32:51 +0000 (17:32 +0900)]
network: split out common part of route or address handlers
Yu Watanabe [Fri, 7 May 2021 07:35:42 +0000 (16:35 +0900)]
network: change order of dropping network configs
As routes may requires nexthops and addresses, nexthops may requires
addresses.
Yu Watanabe [Thu, 6 May 2021 20:16:32 +0000 (05:16 +0900)]
network: simplify and rename routing_policy_rule_copy()
Yu Watanabe [Thu, 6 May 2021 19:47:26 +0000 (04:47 +0900)]
network: introduce route_dup()
The function will be used in later commits.
Yu Watanabe [Thu, 6 May 2021 19:45:02 +0000 (04:45 +0900)]
sd-netlink: introduce multipath_route_dup()
The function will be used in later commits.
Yu Watanabe [Thu, 6 May 2021 19:37:58 +0000 (04:37 +0900)]
network: introduce manager_address_is_reachable()
The function will be used in later commits.
Yu Watanabe [Thu, 6 May 2021 19:31:20 +0000 (04:31 +0900)]
network: introduce link_has_route()
The function will be used in later commits.
Yu Watanabe [Thu, 6 May 2021 19:29:52 +0000 (04:29 +0900)]
network: delay resolving interface specifier in MultiPathRoute=
The interface may not exist when .network files are loaded.
Yu Watanabe [Thu, 6 May 2021 19:03:21 +0000 (04:03 +0900)]
network: introduce manager_has_address()
The function will be used in later commits.
Yu Watanabe [Mon, 26 Apr 2021 14:52:40 +0000 (23:52 +0900)]
ordered-set: introduce ordered_set_clear/free_with_destructor()
Yu Watanabe [Sat, 8 May 2021 06:32:52 +0000 (15:32 +0900)]
hashmap,set: make hashmap_clear_with_destructor() or friends safer
Yu Watanabe [Thu, 6 May 2021 08:15:01 +0000 (17:15 +0900)]
network: use IPV4_ADDRESS_FMT_STR/VAL macros and in6_addr_to_string() or friends
Yu Watanabe [Thu, 6 May 2021 07:21:18 +0000 (16:21 +0900)]
in-addr-util: move IPV4_ADDRESS_FMT_STR/VAL macros from networkd-address.h
Yu Watanabe [Thu, 6 May 2021 07:17:47 +0000 (16:17 +0900)]
in-addr-util: introduce in6_addr_to_string() or friends
Yu Watanabe [Thu, 6 May 2021 07:11:33 +0000 (16:11 +0900)]
network: use in6_addr_is_link_local() or friends
Yu Watanabe [Mon, 26 Apr 2021 07:10:39 +0000 (16:10 +0900)]
network: rename routing_policy_rule_configure_internal() and make it take callback
Yu Watanabe [Mon, 26 Apr 2021 07:05:04 +0000 (16:05 +0900)]
network: make nexthop_configure() take callback
Yu Watanabe [Mon, 26 Apr 2021 07:04:07 +0000 (16:04 +0900)]
network: make neighbor_configure() take callback
Yu Watanabe [Sun, 9 May 2021 16:46:48 +0000 (01:46 +0900)]
tree-wide: refuse too long strings earlier in specifier_printf()
We usually call specifier_printf() and then check the validity of
the result. In many cases, validity checkers, e.g. path_is_valid(),
refuse too long strings. This makes specifier_printf() refuse such
long results earlier.
Moreover, unit_full_string() and description field in sysuser now
refuse results longer than LONG_LINE_MAX. config_parse() already
refuses the line longer than LONG_LINE_MAX. Hence, it should be ok
to set the same value as the maximum length of the resolved string.
Yu Watanabe [Wed, 12 May 2021 01:12:18 +0000 (10:12 +0900)]
dns-domain: use DNS_LABEL_MAX at one more place
Yu Watanabe [Wed, 12 May 2021 01:20:47 +0000 (10:20 +0900)]
creds-util: introduce CREDENTIAL_NAME_MAX
Yu Watanabe [Wed, 12 May 2021 01:19:19 +0000 (10:19 +0900)]
fd-util: introduce FDNAME_MAX
Yu Watanabe [Wed, 12 May 2021 01:16:36 +0000 (10:16 +0900)]
gpt: introduce GPT_LAVEL_MAX
Yu Watanabe [Sun, 9 May 2021 15:13:14 +0000 (00:13 +0900)]
test: move test_specifier_printf() to test-specifier.c
Yu Watanabe [Sun, 9 May 2021 12:39:34 +0000 (21:39 +0900)]
specifier: rename variable
Yu Watanabe [Sun, 9 May 2021 12:23:32 +0000 (21:23 +0900)]
specifier: use SD_ID128_STRING_MAX
Lennart Poettering [Fri, 12 Mar 2021 21:21:58 +0000 (22:21 +0100)]
core: don't accidentally unref a varlink connection twice
Let's make sure that our close handler unrefs a connection again that we
are already unreffing a few stack frames up by invalidating the pointer
first, and dropping the ref counter only after that.
Replaces:
39ad3f1c092b5dffcbb4b1d12eb9ca407f010a3c
Fixes: #18025
Lennart Poettering [Fri, 12 Mar 2021 21:21:40 +0000 (22:21 +0100)]
Revert "varlink: avoid using dangling ref in varlink_close_unref()"
This reverts commit
39ad3f1c092b5dffcbb4b1d12eb9ca407f010a3c.
Lennart Poettering [Mon, 10 May 2021 15:47:32 +0000 (17:47 +0200)]
cgroup: drop explicit NULL comparisons
Lennart Poettering [Mon, 10 May 2021 15:47:19 +0000 (17:47 +0200)]
tree-wide: move variables to innermost scope
Lennart Poettering [Mon, 10 May 2021 15:24:48 +0000 (17:24 +0200)]
tree-wide: use af_to_ipv4_ipv6() + af_from_ipv4_ipv6() helpers at various places
Lennart Poettering [Mon, 10 May 2021 15:14:13 +0000 (17:14 +0200)]
af-list: add helpers mapping AF_INET/AF_INET6 to "ipv4"/"ipv6"
Lennart Poettering [Mon, 10 May 2021 14:33:24 +0000 (16:33 +0200)]
socket-bind: use lowercase "ipv4"/"ipv6" spelling
In most of our codebase when we referenced "ipv4" and "ipv6" on the
right-hand-side of an assignment, we lowercases it (on the
left-hand-side we used CamelCase, and thus "IPv4" and "IPv6"). In
particular all across the networkd codebase the various "per-protocol
booleans" use the lower-case spelling. Hence, let's use lower-case for
SocketBindAllow=/SocketBindDeny= too, just make sure things feel like
they belong together better.
(This work is not included in any released version, hence let's fix this
now, before any fixes in this area would be API breakage)
Follow-up for #17655
zsien [Mon, 10 May 2021 07:42:54 +0000 (15:42 +0800)]
bootctl: same entry path check case-insensitive
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).
howl [Mon, 10 May 2021 22:24:11 +0000 (00:24 +0200)]
hwdb: keyboard: D330 Touchpad toggle keymap
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>
howl [Mon, 10 May 2021 22:31:28 +0000 (00:31 +0200)]
hwdb: sensor: D330-IGM use pvr instead cvr
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>
Yu Watanabe [Tue, 11 May 2021 05:34:07 +0000 (14:34 +0900)]
Merge pull request #19562 from keszybz/flag-manips
Fix flag manipulations in cryptsetup
Lennart Poettering [Mon, 10 May 2021 16:43:07 +0000 (18:43 +0200)]
unit-def: ensure UnitType enum fits any errno value
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.
Lennart Poettering [Mon, 10 May 2021 17:03:49 +0000 (19:03 +0200)]
bootctl: extend --make-machine-id-directory= documentation a bit
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
Lennart Poettering [Mon, 10 May 2021 17:19:02 +0000 (19:19 +0200)]
test-user-util: fix line break confusion
This fixes some line-break confusion introduced by #11199
(
c6cecb744b53561efd329309af7d02a3f9979ed1). It also restores a test with
GID_INVALID that was dropped, presumably by accident.
Yu Watanabe [Tue, 11 May 2021 05:31:35 +0000 (14:31 +0900)]
Merge pull request #19575 from poettering/hwdb-whitespace-fix-again
hwdb: remove trailing whitespace
Lennart Poettering [Mon, 10 May 2021 21:08:58 +0000 (23:08 +0200)]
man: remove some trailing whitespace
Lennart Poettering [Mon, 10 May 2021 21:03:52 +0000 (23:03 +0200)]
hwdb: remove trailing whitespace
gitm0 [Mon, 10 May 2021 20:20:58 +0000 (16:20 -0400)]
hwdb: add accel matrix for One-netbook OneMix 3s (#19549)
Lennart Poettering [Mon, 10 May 2021 20:06:32 +0000 (22:06 +0200)]
Merge pull request #19570 from poettering/userdb-followup-fixlets
two minor userdb fixes
Lennart Poettering [Mon, 10 May 2021 20:06:07 +0000 (22:06 +0200)]
Merge pull request #19568 from poettering/userdbctl-dropin
userdbctl: add new --with-varlink= and --with-drop-in= flags
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 18:35:31 +0000 (20:35 +0200)]
test-efi-create-disk: support /boot/efi
Most of our tools allow EFI mount to be on /boot/efi. Do the same here.
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 18:29:08 +0000 (20:29 +0200)]
test-efi-create-disk: shellcheckify
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 18:28:14 +0000 (20:28 +0200)]
meson: rework test-efi-disk.img creation to not require variables
The primary goal is to make the name of the custom_target() rule match
the output file again. Having them different is confusing.
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 13:04:10 +0000 (15:04 +0200)]
cryptsetup: fix flags check
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.
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 13:02:34 +0000 (15:02 +0200)]
cryptsetup: initialize variable
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.
Lennart Poettering [Wed, 5 May 2021 20:27:37 +0000 (22:27 +0200)]
userdb: initialize .synthesize_root/.synthesize_nobody in generic code
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).
Lennart Poettering [Wed, 5 May 2021 20:06:34 +0000 (22:06 +0200)]
userdb: return ESRCH if we didn't find a single varlink service
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.
Lennart Poettering [Fri, 7 May 2021 10:18:07 +0000 (12:18 +0200)]
man: document new userdbctl features
Lennart Poettering [Thu, 6 May 2021 14:38:38 +0000 (16:38 +0200)]
userdbctl: add two new switches --with-dropin=/--with-varlink=
These directly correspond to the underlying flags. They are useful for
testing.
Lennart Poettering [Mon, 10 May 2021 15:53:45 +0000 (17:53 +0200)]
Merge pull request #19548 from poettering/userdb-dropin
userdb: add support for loading user/group records from JSON drop-ins
Lennart Poettering [Mon, 10 May 2021 12:57:18 +0000 (14:57 +0200)]
docs: link info about static user/group drop-in files from the relevant specs
Lennart Poettering [Fri, 7 May 2021 10:17:57 +0000 (12:17 +0200)]
man: document new userdbd features
Lennart Poettering [Fri, 7 May 2021 10:16:49 +0000 (12:16 +0200)]
man: update nss-systemd documentation with new features
Lennart Poettering [Thu, 6 May 2021 14:38:28 +0000 (16:38 +0200)]
userdbd: also listen on a varlink socket io.systemd.DropIn
Let's explicitly support looking things up via dropin as a varlink
service.
Lennart Poettering [Fri, 30 Apr 2021 21:10:59 +0000 (23:10 +0200)]
userdb: optionally read user/group/membership "dropins", too
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 12:44:15 +0000 (14:44 +0200)]
Merge pull request #19542 from yuwata/unit-after-socket
network, timesync, resolve: check bus is ready before emitting property change or signal
Zbigniew Jędrzejewski-Szmek [Mon, 10 May 2021 11:55:07 +0000 (13:55 +0200)]
Merge pull request #19556 from lucasrangit/network-wifi-interface-type-typos
network: update documentation and examples to use correct interface type and lookup command
Lucas Magasweran [Mon, 10 May 2021 08:11:28 +0000 (10:11 +0200)]
man: network: use `networkctl list` instead of `status` to list network 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
```
Roman Beranek [Fri, 30 Apr 2021 13:51:44 +0000 (15:51 +0200)]
resolve: remove RRs from zones before an update
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.
Samuel BF [Thu, 29 Apr 2021 19:45:53 +0000 (21:45 +0200)]
Wider range of options for selecting entries for systemd-journal-gatewayd
Introducing --user, --system, --merge and --file flags, like for journalctl
and systemd-journal-upload.
Lucas Magasweran [Mon, 10 May 2021 08:09:56 +0000 (10:09 +0200)]
network: examples: use wlan for Type instead of wifi
Harsh Barsaiyan [Sun, 9 May 2021 08:59:50 +0000 (14:29 +0530)]
hwdb: Add Asus TP550LA
Dimitri John Ledkov [Wed, 5 May 2021 16:07:48 +0000 (17:07 +0100)]
boot/efi: add --build-id=sha1 to ELF efi objects
As it is not nice to ship ELF binary without a note.gnu.build-id set.