]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agohwdb: Add accel orientation quirk for the Toshiba WT8-B tablet 19505/head
Hans de Goede [Tue, 4 May 2021 15:38:33 +0000 (17:38 +0200)] 
hwdb: Add accel orientation quirk for the Toshiba WT8-B tablet

Add a quirk to fix the accelerometer orientation on the Toshiba WT8-B
tablet.

4 years agohwdb: Add accel orientation quirk for the Glavey TM800A550L tablet
Hans de Goede [Wed, 28 Apr 2021 11:57:10 +0000 (13:57 +0200)] 
hwdb: Add accel orientation quirk for the Glavey TM800A550L tablet

Add a quirk to fix the accelerometer orientation on the Glavey TM800A550L
tablet.

4 years agohostnamectl: fix hyperlink in "Operating System" field
Yu Watanabe [Tue, 4 May 2021 09:00:12 +0000 (18:00 +0900)] 
hostnamectl: fix hyperlink in "Operating System" field

This fixes a bug introduced by 822be62fb23ed0ec1062ffd18057e53f6c2f8c01.

Before this, if terminal width is not enough, the all subsequent lines
are included in the hyperlink.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1955475.

4 years agotree-wide: fix typo
Yu Watanabe [Tue, 4 May 2021 11:16:12 +0000 (20:16 +0900)] 
tree-wide: fix typo

4 years agoAdd correct rotation support for Mediacom Winpad 7.0 W700
imayoda [Mon, 3 May 2021 02:02:08 +0000 (04:02 +0200)] 
Add correct rotation support for Mediacom Winpad 7.0 W700

this patch enables correct bios detection and matrix for the aforementioned tiny tablet (touchscreen support commit pending now in kernel)
thnx

4 years agohostnamectl: deprecate set-* methods and expose getters by only using nouns in commands
Jakub Warczarek [Fri, 23 Apr 2021 18:41:45 +0000 (18:41 +0000)] 
hostnamectl: deprecate set-* methods and expose getters by only using nouns in commands

4 years agocore: apply LogLevelMax to messages about units
Ryan Hendrickson [Fri, 30 Apr 2021 16:47:10 +0000 (12:47 -0400)] 
core: apply LogLevelMax to messages about units

This commit applies the filtering imposed by LogLevelMax on a unit's
processes to messages logged by PID1 about the unit as well.

The target use case for this feature is a service that runs on a timer
many times an hour, where the system administrator decides that writing
a generic success message to the journal every few minutes or seconds
adds no diagnostic value and isn't worth the clutter or disk I/O.

4 years agoMerge pull request #19403 from nmeyerhans/dmi-entries
Lennart Poettering [Mon, 3 May 2021 15:48:13 +0000 (17:48 +0200)] 
Merge pull request #19403 from nmeyerhans/dmi-entries

virt: differentiate Amazon EC2 bare-metal from VM instances using SMBIOS data

4 years agoDocument the need to do journalctl --flush for persistent logging (#19481)
Luca Adrian L [Mon, 3 May 2021 15:08:25 +0000 (17:08 +0200)] 
Document the need to do journalctl --flush for persistent logging (#19481)

Document the need to do journalctl --flush for persistent logging. (fixes #19480)

Co-authored-by: Luca Lindhorst <l.lindhorst@wut.de>
4 years agoRevert "sysusers/firstboot: temporarily disable LoadCredential"
Luca Boccassi [Sun, 2 May 2021 15:05:48 +0000 (16:05 +0100)] 
Revert "sysusers/firstboot: temporarily disable LoadCredential"

This reverts commit 7c20dd4b6ef6e69862576722ac69b895d7a92dc9.

Debian has now been updated to patch the issue, so SemaphoreCI should
no longer fail. The fix has also been backported to the affected
stable branches.

4 years agoMerge pull request #19487 from mrc0mmand/test-all-services-in-TEST-01
Yu Watanabe [Mon, 3 May 2021 03:15:29 +0000 (12:15 +0900)] 
Merge pull request #19487 from mrc0mmand/test-all-services-in-TEST-01

test: don't mask "supporting" services in TEST-01-BASIC

4 years agotest: fix a yet another pipefail + pipe race
Frantisek Sumsal [Fri, 30 Apr 2021 11:26:54 +0000 (13:26 +0200)] 
test: fix a yet another pipefail + pipe race

Basically the same scenario as in
a33e2692e162671f0d97856ad2f49a2620a1ec10, where `awk` exits as soon
as it finds a match, thus sending SIGPIPE to `ldd` if it's not fast
enough. That, in combination with `set -o pipefail` causes random &
unexpected fails, like:

```
No journal files were found.
-rw-r----- 1 root root 16777216 Apr 30 10:31
/var/tmp/TEST-01-BASIC_sanitizers-nspawn/system.journal
TEST-01-BASIC RUN: Basic systemd setup [OK]
systemd is not linked against the ASan DSO
gcc does this by default, for clang compile with -shared-libasan
make: *** [Makefile:2: clean-again] Error 1
make: Leaving directory '/build/test/TEST-01-BASIC'
```

4 years agoMerge pull request #19476 from yuwata/network-can
Yu Watanabe [Sat, 1 May 2021 06:03:22 +0000 (15:03 +0900)] 
Merge pull request #19476 from yuwata/network-can

network: several CAN device related updates

4 years agoMerge pull request #18904 from yuwata/udev-watch
Yu Watanabe [Sat, 1 May 2021 06:02:43 +0000 (15:02 +0900)] 
Merge pull request #18904 from yuwata/udev-watch

udev: several inotify watch fixups

4 years agotest: explicitly pull resolved/networkd in TEST-01-BASIC 19487/head
Frantisek Sumsal [Fri, 30 Apr 2021 19:04:15 +0000 (21:04 +0200)] 
test: explicitly pull resolved/networkd in TEST-01-BASIC

to give them at least a basic coverage.

4 years agoUse BIOS characteristics to distinguish EC2 bare-metal from VMs 19403/head
Noah Meyerhans [Fri, 30 Apr 2021 16:30:52 +0000 (09:30 -0700)] 
Use BIOS characteristics to distinguish EC2 bare-metal from VMs

DMI vendor information fields do not provide enough information for us to
distinguish between Amazon EC2 virtual machines and bare-metal instances.
SMBIOS provides a BIOS Information
table (https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.4.0.pdf
Ch. 7) that provides a field to indicate that the current machine is a virtual
machine.  On EC2 virtual machine instances, this field is set, while bare-metal
instances leave this unset, so we inspect the field via the kernel's
/sys/firemware/dmi/entries interface.

Fixes #18929

4 years agomachine-id-setup: generate machine-id from DMI product ID on Amazon EC2
Bertrand Jacquin [Sun, 11 Oct 2020 21:25:56 +0000 (22:25 +0100)] 
machine-id-setup: generate machine-id from DMI product ID on Amazon EC2

Amazon EC2 Nitro hypervisor is technically based on KVM[1].

[1] https://aws.amazon.com/ec2/faqs/

4 years agotest: don't mask "supporting" services in TEST-01-BASIC
Frantisek Sumsal [Fri, 30 Apr 2021 19:02:41 +0000 (21:02 +0200)] 
test: don't mask "supporting" services in TEST-01-BASIC

This got lost during one of the code de-duplication attempts.

4 years agovirt: detect Amazon EC2 Nitro instance
Bertrand Jacquin [Sun, 11 Oct 2020 20:25:00 +0000 (21:25 +0100)] 
virt: detect Amazon EC2 Nitro instance

Amazon EC2 Nitro hypervisor is technically based on KVM[1], which
systemd-detect-virt identify propely from CPUID. However the lack of
CPUID on aarch64 (A1, T4 instance type) prevents a correct
identification, impacting hostnamectl and systemd-random-seed. Instead
it's possible to identify virtualization from DMI vendor ID.

Prior to this commit:
  # hostnamectl
     Static hostname: n/a
  Transient hostname: ip-10-97-8-12
           Icon name: computer
          Machine ID: 8e3772fbcfa3dd6f330a12ff5df5a63b
             Boot ID: b7b7e2fe0079448db664839df59f9817
    Operating System: Gentoo/Linux
              Kernel: Linux 5.4.69-longterm
        Architecture: arm64

After this commit:
  # hostnamectl
     Static hostname: n/a
  Transient hostname: ip-10-97-8-12
           Icon name: computer-vm
             Chassis: vm
          Machine ID: 8e3772fbcfa3dd6f330a12ff5df5a63b
             Boot ID: bd04da57084e41078f20541101867113
      Virtualization: amazon
    Operating System: Gentoo/Linux
              Kernel: Linux 5.4.69-longterm
        Architecture: arm64

[1] https://aws.amazon.com/ec2/faqs/

4 years agosd-bus: fix vtable named argument logic
Yu Watanabe [Thu, 29 Apr 2021 19:00:02 +0000 (04:00 +0900)] 
sd-bus: fix vtable named argument logic

Fixes #19468.

4 years agotest: add a simple test for udev watch 18904/head
Yu Watanabe [Sun, 7 Mar 2021 20:21:45 +0000 (05:21 +0900)] 
test: add a simple test for udev watch

4 years agotest: generate debugging logs for udev tests
Yu Watanabe [Sun, 7 Mar 2021 05:18:07 +0000 (14:18 +0900)] 
test: generate debugging logs for udev tests

4 years agotest: run udev tests after currently queued events are finished
Yu Watanabe [Wed, 10 Mar 2021 15:33:03 +0000 (00:33 +0900)] 
test: run udev tests after currently queued events are finished

4 years agoudev,sd_device: also save map from device ID to watch handle in /run/udev/watch
Yu Watanabe [Sun, 7 Mar 2021 06:35:33 +0000 (15:35 +0900)] 
udev,sd_device: also save map from device ID to watch handle in /run/udev/watch

Previously, watch handle is saved in the udev databse. But in most cases,
the handle saved in the database is not updated. Especially, when udevd
is restarted, the inotify watch is restarted, but the database is not
updated.

Moreover, it is not necessary to save watch handle in the database, as
the handle is only take a effect during udevd is running, and the value
is meaningless when udevd is restarted.

So, this makes the opposite map from device ID to watch handle is saved
in /run/udev/watch as a symbolic link, and the handle not saved in the
database anymore.

Fixes #18525.

4 years agoudev: make udev_watch_end() noop when device does not have devname
Yu Watanabe [Thu, 11 Mar 2021 10:41:52 +0000 (19:41 +0900)] 
udev: make udev_watch_end() noop when device does not have devname

4 years agosd-device: cleanup sd_device_get_subsystem()
Yu Watanabe [Tue, 9 Mar 2021 06:27:35 +0000 (15:27 +0900)] 
sd-device: cleanup sd_device_get_subsystem()

4 years agosd-device: drop sysname_set flag
Yu Watanabe [Tue, 9 Mar 2021 05:31:39 +0000 (14:31 +0900)] 
sd-device: drop sysname_set flag

When device_set_sysname() succeeds, sysname is always set.

4 years agosd-device: minor optimization for sd_device_new_from_device_id()
Yu Watanabe [Sun, 7 Mar 2021 06:24:15 +0000 (15:24 +0900)] 
sd-device: minor optimization for sd_device_new_from_device_id()

4 years agosd-device: check the validity of device id
Yu Watanabe [Tue, 9 Mar 2021 07:11:52 +0000 (16:11 +0900)] 
sd-device: check the validity of device id

The device id is used as filename under /run/udev/data or
/run/udev/watch.

4 years agosd-device: rename device_get_id_filename() -> device_get_device_id()
Yu Watanabe [Sun, 7 Mar 2021 06:07:51 +0000 (15:07 +0900)] 
sd-device: rename device_get_id_filename() -> device_get_device_id()

We have sd_device_new_from_device_id(), which takes device ID generated
from device_get_id_filename(). For consistency, let's rename the
function.

4 years agoudev: refuse to enable inotify watch on remove event
Yu Watanabe [Sat, 6 Mar 2021 11:45:17 +0000 (20:45 +0900)] 
udev: refuse to enable inotify watch on remove event

Some udev rule may erroneously set inotify watch on remove event.
For safety, silently ignore such an inotify watch enablement.

This also moves inotify watch enablement code to udev-event.c.

4 years agoudev: also propagate error in udev_rules_apply_to_event() on remove event
Yu Watanabe [Sat, 6 Mar 2021 08:02:11 +0000 (17:02 +0900)] 
udev: also propagate error in udev_rules_apply_to_event() on remove event

When udev rules are not applied correctly, then run program lists is
not perfect. So, udev_event_execute_run() later in
worker_process_device() should not be called.

4 years agoudev: shorten code a bit
Yu Watanabe [Sat, 6 Mar 2021 12:16:59 +0000 (21:16 +0900)] 
udev: shorten code a bit

4 years agoudev: drop unused variable
Yu Watanabe [Sat, 6 Mar 2021 07:57:51 +0000 (16:57 +0900)] 
udev: drop unused variable

4 years agosd-device: drop doubled empty lines
Yu Watanabe [Sat, 6 Mar 2021 07:51:26 +0000 (16:51 +0900)] 
sd-device: drop doubled empty lines

4 years agoudev: do not store inotify fd in a global variable
Yu Watanabe [Sat, 6 Mar 2021 07:09:23 +0000 (16:09 +0900)] 
udev: do not store inotify fd in a global variable

When manager_exit() or manager_free() is called, the global variable in
udev-watch.c is not set '-1'. Of course, that is safe, as the event source
for the inotify fd is unref()ed in manager_exit() and manager_free().
But let's not store fd globally.

4 years agonetwork: do not bring up CAN interface on configure 19476/head
Yu Watanabe [Thu, 29 Apr 2021 23:10:36 +0000 (08:10 +0900)] 
network: do not bring up CAN interface on configure

4 years agonetwork: make CAN device follow activation policy
Yu Watanabe [Thu, 29 Apr 2021 22:03:13 +0000 (07:03 +0900)] 
network: make CAN device follow activation policy

4 years agonetwork: introduce link_activate()
Yu Watanabe [Thu, 29 Apr 2021 23:08:23 +0000 (08:08 +0900)] 
network: introduce link_activate()

4 years agonetwork: do not try to configure address or etc on can device
Yu Watanabe [Thu, 29 Apr 2021 22:10:34 +0000 (07:10 +0900)] 
network: do not try to configure address or etc on can device

4 years agonetwork: can: shorten code a bit
Yu Watanabe [Thu, 29 Apr 2021 22:06:28 +0000 (07:06 +0900)] 
network: can: shorten code a bit

4 years agonetwork: can: do not warn if link does not exist anymore
Yu Watanabe [Thu, 29 Apr 2021 22:00:45 +0000 (07:00 +0900)] 
network: can: do not warn if link does not exist anymore

4 years agonetwork: drop duplicated link_up_can()
Yu Watanabe [Thu, 29 Apr 2021 21:57:15 +0000 (06:57 +0900)] 
network: drop duplicated link_up_can()

4 years agoClarify that these values are in bytes
Steve Bonds [Thu, 25 Mar 2021 14:40:39 +0000 (07:40 -0700)] 
Clarify that these values are in bytes

Similar to `ProcessSizeMax`. The defaults in percentages can be misunderstood to mean the values for these parameters will be in percentages.

4 years agotest-network: set DNS= and NTP= for DHCP server
Yu Watanabe [Thu, 29 Apr 2021 20:14:24 +0000 (05:14 +0900)] 
test-network: set DNS= and NTP= for DHCP server

Now, RoutesToDNS= and RoutesToNTP= are enabled by default on DHCPv4
client. So, if DHCP server picks up DNS or NTP servers from uplink,
then the routes may break CI environment.

Hopefully fixes #19463.

4 years agoman: importd also provides the option of import-fs for machinectl (#19477)
syyhao1994 [Fri, 30 Apr 2021 07:55:50 +0000 (15:55 +0800)] 
man: importd also provides the option of import-fs for machinectl (#19477)

4 years agokernel-insteall: do not remove the first slash in $ENTRY_DIR
Yu Watanabe [Wed, 28 Apr 2021 18:07:47 +0000 (03:07 +0900)] 
kernel-insteall: do not remove the first slash in $ENTRY_DIR

Follow-up for cd0d230e7bf87f979722de7e364619dfa71bd6a2.

Fixes #19456.

4 years agoMerge pull request #19459 from yuwata/network-log-neighbor
Yu Watanabe [Fri, 30 Apr 2021 06:36:29 +0000 (15:36 +0900)] 
Merge pull request #19459 from yuwata/network-log-neighbor

network: introduce log_neighbor_debug()

4 years agonetwork: neighbor: use sd_netlink_message_read_data() at one more place 19459/head
Yu Watanabe [Thu, 29 Apr 2021 06:59:41 +0000 (15:59 +0900)] 
network: neighbor: use sd_netlink_message_read_data() at one more place

4 years agonetwork: introduce log_neighbor_debug()
Yu Watanabe [Thu, 29 Apr 2021 06:49:21 +0000 (15:49 +0900)] 
network: introduce log_neighbor_debug()

4 years agonetwork: reduce indentation in log_address_debug() or friends
Yu Watanabe [Thu, 29 Apr 2021 20:43:22 +0000 (05:43 +0900)] 
network: reduce indentation in log_address_debug() or friends

4 years agoether-addr-util: introduce ether_addr_to_string_alloc()
Yu Watanabe [Thu, 29 Apr 2021 06:35:47 +0000 (15:35 +0900)] 
ether-addr-util: introduce ether_addr_to_string_alloc()

4 years agosystemd-coredump: Add conflict with shutdown.target
Alexander Sverdlin [Sun, 18 Apr 2021 23:53:45 +0000 (01:53 +0200)] 
systemd-coredump: Add conflict with shutdown.target

Otherwise a coredump started at the inconvinient moment can stop
shutdown.target leaving the system in a halfway-down state:

Pulling in shutdown.target/start from systemd-poweroff.service/start
Added job shutdown.target/start to transaction.
...
Keeping job shutdown.target/start because of systemd-poweroff.service/start
...
[  OK  ] Stopped target Remote File Systems.
shutdown.target: starting held back, waiting for: systemd-networkd.socket
sysinit.target: stopping held back, waiting for: remount_tmp.service
systemd-coredump.socket: Incoming traffic
...
systemd-coredump@0-243-0.service: Trying to enqueue job systemd-coredump@0-243-0.service/start/replace
Added job systemd-coredump@0-243-0.service/start to transaction.
Pulling in systemd-journald.socket/start from systemd-coredump@0-243-0.service/start
Added job systemd-journald.socket/start to transaction.
Pulling in system.slice/start from systemd-journald.socket/start
Added job system.slice/start to transaction.
Pulling in -.slice/start from system.slice/start
Added job -.slice/start to transaction.
Pulling in system-systemd\x2dcoredump.slice/start from systemd-coredump@0-243-0.service/start
Added job system-systemd\x2dcoredump.slice/start to transaction.
Pulling in system.slice/start from system-systemd\x2dcoredump.slice/start
Pulling in shutdown.target/stop from system-systemd\x2dcoredump.slice/start
Added job shutdown.target/stop to transaction.
...
Keeping job systemd-poweroff.service/stop because of umount.target/stop
Keeping job shutdown.target/stop because of systemd-coredump@0-243-0.service/start

4 years agoMerge pull request #19458 from yuwata/network-route-remove
Lennart Poettering [Thu, 29 Apr 2021 19:39:30 +0000 (21:39 +0200)] 
Merge pull request #19458 from yuwata/network-route-remove

network: fix route removal logic a bit

4 years agoudev: allow onboard index up to 65535
Viktor Mihajlovski [Tue, 27 Apr 2021 13:25:16 +0000 (15:25 +0200)] 
udev: allow onboard index up to 65535

The maximum allowed value of the sysfs device index entry was limited to
16383 (2^14-1) to avoid the generation of unreasonable onboard interface
names.
For s390 the index can assume a value of up to 65535 (2^16-1) which is
now allowed depending on the new naming flag NAMING_16BIT_INDEX.
Larger index values are considered unreasonable and remain to be
ignored.

4 years agoMerge pull request #19451 from poettering/hostnamed-json
Lennart Poettering [Thu, 29 Apr 2021 19:37:52 +0000 (21:37 +0200)] 
Merge pull request #19451 from poettering/hostnamed-json

hostnamed: add JSON output to hostnamectl

4 years agoman: document new dbus method 19451/head
Lennart Poettering [Wed, 28 Apr 2021 13:59:13 +0000 (15:59 +0200)] 
man: document new dbus method

4 years agohostnamectl: add --json= switch for JSON output
Lennart Poettering [Thu, 29 Apr 2021 09:29:46 +0000 (11:29 +0200)] 
hostnamectl: add --json= switch for JSON output

This wraps the new Describe() bus call of hostnamed.

4 years agohostnamed: add Describe() call to hostnamed, returning all props a JSON
Lennart Poettering [Thu, 29 Apr 2021 09:29:54 +0000 (11:29 +0200)] 
hostnamed: add Describe() call to hostnamed, returning all props a JSON

4 years agohostnamed: drop unused enums
Lennart Poettering [Wed, 28 Apr 2021 13:33:14 +0000 (15:33 +0200)] 
hostnamed: drop unused enums

4 years agohostnamed: split out how we determine the hostname a bit
Lennart Poettering [Wed, 28 Apr 2021 13:28:53 +0000 (15:28 +0200)] 
hostnamed: split out how we determine the hostname a bit

No changes in code, just some splitting out of code we want to use
elsewhere soon.

4 years agohostnamed: refactor vendor/model querying a bit, reuse function
Lennart Poettering [Wed, 28 Apr 2021 13:11:54 +0000 (15:11 +0200)] 
hostnamed: refactor vendor/model querying a bit, reuse function

4 years agohostnamed: use byte array when we need a byte array
Lennart Poettering [Wed, 28 Apr 2021 12:33:19 +0000 (14:33 +0200)] 
hostnamed: use byte array when we need a byte array

it's more corect this way, but shouldn#t change a thing binary-wise

4 years agohostnamed: retrieve product UUID after authentication, not before
Lennart Poettering [Wed, 28 Apr 2021 12:32:49 +0000 (14:32 +0200)] 
hostnamed: retrieve product UUID after authentication, not before

4 years agoid128-util: use common implementation of helper to get/validate product ID
Lennart Poettering [Wed, 28 Apr 2021 12:15:36 +0000 (14:15 +0200)] 
id128-util: use common implementation of helper to get/validate product ID

4 years agonetwork: do not set nexthop ID, gateway, and multipath routes simultaneously 19458/head
Yu Watanabe [Thu, 29 Apr 2021 11:58:10 +0000 (20:58 +0900)] 
network: do not set nexthop ID, gateway, and multipath routes simultaneously

See kernel's rtm_to_fib_config() in net/ipv4/fib_frontend.c and
rtm_to_fib6_config() in net/ipv6/route.c.

Note that if both gateway and multipath routes are specified, then
kernel ignores gateway. So, strictly speaking, setting both gateway and
multipath routes is allowed by kernel. But such situation is mostly
user's misconfiguration. Let's refuse it.

Note that the conditions newly added in route_configure() are redundant,
as all static configurations are already verified in
route_section_verify(), and dynamic configurations do not set
nexthop_id or multipath routes. Just for safety.

4 years agoset boot time from monotonic time (#19444)
caoxia2008cxx [Thu, 29 Apr 2021 09:05:01 +0000 (17:05 +0800)] 
set boot time from monotonic time (#19444)

utmp: calculate boot timestamp from monotonic timestamp instead of realtime timestamp

4 years agonetwork: do not remove reject type routes more than once
Yu Watanabe [Wed, 28 Apr 2021 17:42:42 +0000 (02:42 +0900)] 
network: do not remove reject type routes more than once

Usually, removing non-existing addresses, routes, and etc, are safe.
However, when multiple interfaces lost their carriers simultaneously,
then manager_drop_routes() and manager_drop_nexthop() are called multiple
times. If a route with a blackhole nexthop is removed in that process,
the later removal requests of the route fail with -EINVAL, rathar
than -ESRCH, as the corresponding nexthop does not exist anymore.

So, let's not remove routes which managed by Manager more than once.

4 years agonetwork: do not set route type on specific route removal
Yu Watanabe [Wed, 28 Apr 2021 17:34:17 +0000 (02:34 +0900)] 
network: do not set route type on specific route removal

4 years agonetwork: unify log_link_message_full_errno() and log_message_warning_errno()
Yu Watanabe [Wed, 28 Apr 2021 16:17:36 +0000 (01:17 +0900)] 
network: unify log_link_message_full_errno() and log_message_warning_errno()

This also introduces log_message_error_errno() or friends.

4 years agonetwork: dhcp4: downgrade log level when interface is removed
Yu Watanabe [Wed, 28 Apr 2021 15:07:09 +0000 (00:07 +0900)] 
network: dhcp4: downgrade log level when interface is removed

4 years agonetwork: drop meaningless bitfield specifiers
Yu Watanabe [Mon, 26 Apr 2021 14:55:09 +0000 (23:55 +0900)] 
network: drop meaningless bitfield specifiers

4 years agoMerge pull request #19449 from yuwata/network-downgrade-log-level
Yu Watanabe [Wed, 28 Apr 2021 23:54:08 +0000 (08:54 +0900)] 
Merge pull request #19449 from yuwata/network-downgrade-log-level

network: downgrade log level and fix typo

4 years agonetwork: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra 19449/head
Yu Watanabe [Wed, 28 Apr 2021 13:26:48 +0000 (22:26 +0900)] 
network: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra

4 years agoMerge pull request #19374 from yuwata/network-dhcp-routes-to-ntp
Lennart Poettering [Wed, 28 Apr 2021 20:47:21 +0000 (22:47 +0200)] 
Merge pull request #19374 from yuwata/network-dhcp-routes-to-ntp

network: dhcp4: introduce RoutesToNTP= boolean setting

4 years agoMerge pull request #19441 from keszybz/riscv-syscall-lists
Lennart Poettering [Wed, 28 Apr 2021 19:17:43 +0000 (21:17 +0200)] 
Merge pull request #19441 from keszybz/riscv-syscall-lists

Add syscall list for riscv

4 years agonetwork: neighbor: downgrade log level
Yu Watanabe [Wed, 28 Apr 2021 13:18:45 +0000 (22:18 +0900)] 
network: neighbor: downgrade log level

As commented in the code, kernel sends messages about neighbors after
a link is removed.

4 years agonetwork: link: downgrade log level
Yu Watanabe [Wed, 28 Apr 2021 13:17:39 +0000 (22:17 +0900)] 
network: link: downgrade log level

The error is harmless, and will be ignored. Let's downgrade log level.

4 years agonetwork: dhcp4: downgrade log level
Yu Watanabe [Wed, 28 Apr 2021 13:15:40 +0000 (22:15 +0900)] 
network: dhcp4: downgrade log level

It is not necessary to log such information on higher level.

4 years agosystemctl: fix build failure
Yu Watanabe [Wed, 28 Apr 2021 15:47:39 +0000 (00:47 +0900)] 
systemctl: fix build failure

Follow-up for 255b1fc8a3055a7d59946a0fc483ee3885740398.

4 years agobus-print-property: introduce BusPrintPropertyFlags
Yu Watanabe [Tue, 27 Apr 2021 05:22:34 +0000 (14:22 +0900)] 
bus-print-property: introduce BusPrintPropertyFlags

Follow-ups for 1ceaad69378272c64da4ecaab0d59ebb7a92ca0a.

4 years agodocs: document that one shouldn't pass the audit caps to containers
Lennart Poettering [Wed, 28 Apr 2021 14:40:58 +0000 (16:40 +0200)] 
docs: document that one shouldn't pass the audit caps to containers

Apparently this is not well know, so let' document this.

4 years agobasic/missing-syscall: add regen instructions 19441/head
Zbigniew Jędrzejewski-Szmek [Wed, 28 Apr 2021 13:35:44 +0000 (15:35 +0200)] 
basic/missing-syscall: add regen instructions

4 years agomissing: add syscall wrappers for new mount API
Lennart Poettering [Tue, 27 Apr 2021 12:16:06 +0000 (14:16 +0200)] 
missing: add syscall wrappers for new mount API

4 years agobasic/missing-syscall: sort syscalls alphabetically and add numbers for mount_setattr...
Zbigniew Jędrzejewski-Szmek [Wed, 28 Apr 2021 08:46:48 +0000 (10:46 +0200)] 
basic/missing-syscall: sort syscalls alphabetically and add numbers for mount_setattr, move_mount, open_tree

4 years agobasic/missing-syscall: add numbers for riscv (64-bit)
Zbigniew Jędrzejewski-Szmek [Tue, 27 Apr 2021 19:34:38 +0000 (03:34 +0800)] 
basic/missing-syscall: add numbers for riscv (64-bit)

4 years agobasic/missing-syscalls: only emit one warning about missing numbers
Zbigniew Jędrzejewski-Szmek [Tue, 27 Apr 2021 19:18:05 +0000 (03:18 +0800)] 
basic/missing-syscalls: only emit one warning about missing numbers

The ifdef pattern is the same for all syscalls, so most of the time, if one is
not defined, all others will too. So let's reduce the noise a bit and emit one
warning in case the support for the architecture is fully missing. (Current
template was copied over from before when we added numbers for each syscall by
hand and stopped making sense when we started generating the header from a
table that is expected to have all syscall numbers.)

4 years agoMerge pull request #19316 from keszybz/mkosi-f34
Lennart Poettering [Wed, 28 Apr 2021 13:12:59 +0000 (15:12 +0200)] 
Merge pull request #19316 from keszybz/mkosi-f34

Bump mkosi config for F34

4 years agoMerge pull request #19446 from poettering/logind-trigger-new
Lennart Poettering [Wed, 28 Apr 2021 11:26:29 +0000 (13:26 +0200)] 
Merge pull request #19446 from poettering/logind-trigger-new

logind/dissect: use sd_device_trigger() more

4 years agohwdb: 60-keyboard:: Update Dell Privacy Local Mic Mute Hotkey (#19261)
Perry.Yuan [Wed, 28 Apr 2021 10:37:39 +0000 (18:37 +0800)] 
hwdb: 60-keyboard:: Update Dell Privacy Local Mic Mute Hotkey (#19261)

This patch fix scancode 0x120001 mapping to key code F20 micmute
The previous scancode is not correct, it will cause the micmute
hotkey no function when testing the mic mute

4 years agomkosi: do not pull in perl dependencies 19316/head
Zbigniew Jędrzejewski-Szmek [Thu, 15 Apr 2021 11:14:09 +0000 (13:14 +0200)] 
mkosi: do not pull in perl dependencies

It was added in e2c5e698c0, but nobody remembers why exactly.

4 years agohwdb-test: pass an explit path to systemd-hwdb
Zbigniew Jędrzejewski-Szmek [Thu, 15 Apr 2021 06:20:31 +0000 (08:20 +0200)] 
hwdb-test: pass an explit path to systemd-hwdb

https://github.com/systemd/systemd/pull/19316 failed with:
[1065/1670] Linking target systemd-hwdb
--- command ---
14:28:29 /root/src/test/hwdb-test.sh
--- stdout ---
./systemd-hwdb does not exist, please build first

I'm not sure what is going on here… In principle meson says that tests may be
called from any directory, but in practice is was always the build directory.
So far we were relying on systemd-hwdb being present in '.', and this worked.
Either way, it's nicer to pass the exact path, so let's do that.

4 years agomkosi,man: bump fedora version
Zbigniew Jędrzejewski-Szmek [Tue, 13 Apr 2021 12:15:29 +0000 (14:15 +0200)] 
mkosi,man: bump fedora version

F34 was just released and should be fine for systemd builds.

Cloud-1.2 is the latest version.

4 years agoAdd support for conditions on the machines firmware
Uwe Kleine-König [Fri, 9 Oct 2020 10:13:00 +0000 (12:13 +0200)] 
Add support for conditions on the machines firmware

This allows to limit units to machines that run on a certain firmware
type. For device tree defined machines checking against the machine's
compatible is also possible.

4 years agodissect-image: use sd_device_trigger() API 19446/head
Lennart Poettering [Wed, 28 Apr 2021 07:51:55 +0000 (09:51 +0200)] 
dissect-image: use sd_device_trigger() API

Let's use the new API here too.

4 years agologind: use new sd_device_trigger() API
Lennart Poettering [Wed, 28 Apr 2021 07:48:06 +0000 (09:48 +0200)] 
logind: use new sd_device_trigger() API

This is a follow-up for 21012e20a4f0b939d449ad31d9bcbeafdfb8b931 and
related commits, i.e. one more occasion we can use the
sd_device_trigger() API.

4 years agonetwork: neighbor: Always add neighbors with replace
William A. Kennington III [Tue, 27 Apr 2021 08:25:58 +0000 (01:25 -0700)] 
network: neighbor: Always add neighbors with replace

We were duplicating setting flags for the message and a combination of
NLM_F_APPEND and NLM_F_CREATE which does not make sense. We should have
been using NLM_F_REPLACE and NLM_F_CREATE since the kernel can
dynamically create neighbors prior to us adding an entry. Otherwise, we
can end up with cases where the message will time out after ~25s even
though the neighbor still gets added. This delays the rest of the setup
of the interface even though the error is ultimately ignored.

4 years agosystem-conf: drop reference to ShutdownWatchdogUsec=
Franck Bui [Tue, 27 Apr 2021 08:59:24 +0000 (10:59 +0200)] 
system-conf: drop reference to ShutdownWatchdogUsec=

Commit 65224c1d0e50667a87c2c4f840c49d4918718f80 renamed ShutdownWatchdogUsec
into RebootWatchdogUsec but left a reference of ShutdownWatchdogUsec in
system.conf.

4 years agoMerge pull request #17655 from wat-ze-hex/bpf-build-rule
Zbigniew Jędrzejewski-Szmek [Tue, 27 Apr 2021 10:52:30 +0000 (12:52 +0200)] 
Merge pull request #17655 from wat-ze-hex/bpf-build-rule

Introduce SocketBind{Allow|Deny}= properties powered by source compiled BPF

4 years agosystemctl: hide some empty properties without --all
Frantisek Sumsal [Mon, 26 Apr 2021 20:03:19 +0000 (22:03 +0200)] 
systemctl: hide some empty properties without --all

Fixes: #19423