]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agotree-wide: use LOG_MESSAGE() where possible
Zbigniew Jędrzejewski-Szmek [Tue, 10 May 2022 11:39:08 +0000 (13:39 +0200)] 
tree-wide: use LOG_MESSAGE() where possible

Also break some long lines for more uniform formatting. No functional change.

I went over all log_struct, log_struct_errno, log_unit_struct,
log_unit_struct_errno calls, and they seem fine.

2 years agologind: rename "log_message" to "log_verb"
Zbigniew Jędrzejewski-Szmek [Sun, 8 May 2022 15:51:42 +0000 (17:51 +0200)] 
logind: rename "log_message" to "log_verb"

This field is used to log SHUTDOWN=. Calling it "something-message" is
confusing.

2 years agologind: fix crash in logind on user-specified message string
Zbigniew Jędrzejewski-Szmek [Sun, 8 May 2022 15:21:09 +0000 (17:21 +0200)] 
logind: fix crash in logind on user-specified message string

This is trivially exploitable (in the sense of causing a crash from SEGV) e.g.
by 'shutdown now "Message %s %s %n"'. The message is settable through polkit,
but is limited to auth_admin:

<action id="org.freedesktop.login1.set-wall-message">
         <description gettext-domain="systemd">Set a wall message</description>
         <message gettext-domain="systemd">Authentication is required to set a wall message</message>
         <defaults>
                <allow_any>auth_admin_keep</allow_any>
                <allow_inactive>auth_admin_keep</allow_inactive>
                <allow_active>auth_admin_keep</allow_active>
        </defaults>
</action>

Bug introduced in 9ef15026c0e7e6600372056c43442c99ec53746e
('logind/systemctl: introduce SetWallMessage and --message', 2015-09-15).

2 years agobash-completion: resolvectl: add missing options and verb
Yu Watanabe [Sun, 8 May 2022 04:34:11 +0000 (13:34 +0900)] 
bash-completion: resolvectl: add missing options and verb

2 years agohwdb: add rammus accelerometer support
lucagoc [Sat, 7 May 2022 16:30:22 +0000 (18:30 +0200)] 
hwdb: add rammus accelerometer support

2 years agocore/device: Use DEVICE_NOT_FOUND instead of 0.
Daan De Meyer [Sat, 7 May 2022 12:19:40 +0000 (14:19 +0200)] 
core/device: Use DEVICE_NOT_FOUND instead of 0.

Use the enum name instead of the value zero. This is a noop change
as DEVICE_NOT_FOUND == 0.

2 years agoboot: Fix null pointer dereference
Jan Janssen [Sat, 7 May 2022 09:15:33 +0000 (11:15 +0200)] 
boot: Fix null pointer dereference

2 years agoman: fix typo
Yu Watanabe [Sat, 7 May 2022 06:17:56 +0000 (15:17 +0900)] 
man: fix typo

2 years agoMerge pull request #23292 from alexhenrie/dhcpv6
Yu Watanabe [Sat, 7 May 2022 02:42:45 +0000 (11:42 +0900)] 
Merge pull request #23292 from alexhenrie/dhcpv6

network: clarify relationship between RA flags and DHCPv6 modes

2 years agoshared/json: disentangle flag mixup
Zbigniew Jędrzejewski-Szmek [Fri, 6 May 2022 12:37:01 +0000 (14:37 +0200)] 
shared/json: disentangle flag mixup

_DEBUG and _RELAX had the same value… I'm not sure what the effect
of this is.

2 years agonetwork: clarify the relationship between DHCP= and WithoutRA= 23292/head
Alex Henrie [Fri, 6 May 2022 20:01:53 +0000 (14:01 -0600)] 
network: clarify the relationship between DHCP= and WithoutRA=

Just setting DHCP=ipv6 is not enough to get DHCPv6 working without RA.
The WithoutRA option must also be changed from its default of "no".

2 years agonetwork: clarify the relationship between RA flags and DHCPv6 modes
Alex Henrie [Fri, 6 May 2022 20:01:53 +0000 (14:01 -0600)] 
network: clarify the relationship between RA flags and DHCPv6 modes

In the documentation, using the term "managed" for both the RA flag and
the DHCPv6 mode is confusing because the mode is referred to as
"solicit" both in the official DHCPv6 documentation (see RFC 8415) and
in the WithoutRA option.

Furthermore, calling the other RA flag "other information" or "other
address configuration" is confusing because its official name is simply
"other configuration" (see RFC 4861 and RFC 5175) and it isn't used to
assign IP addresses.

Rewrite the documentation for DHCPv6Client and WithoutRA to make it
clear that getting the "managed" RA flag triggers the same kind of DHCP
request as WithoutRA=solicit, whereas getting the "other configuration"
RA flag triggers the same kind of DHCP request as
WithoutRA=information-request.

2 years agoMerge pull request #23291 from yuwata/udev-rule-fix-regression
Yu Watanabe [Fri, 6 May 2022 19:58:20 +0000 (04:58 +0900)] 
Merge pull request #23291 from yuwata/udev-rule-fix-regression

udev: fix parent token handling

2 years agoMerge pull request #23290 from keszybz/three-fixes
Yu Watanabe [Fri, 6 May 2022 19:57:36 +0000 (04:57 +0900)] 
Merge pull request #23290 from keszybz/three-fixes

Three fixes

2 years agoMerge pull request #23272 from keszybz/logind-man-and-rules
Yu Watanabe [Fri, 6 May 2022 19:23:02 +0000 (04:23 +0900)] 
Merge pull request #23272 from keszybz/logind-man-and-rules

Logind man and rules

2 years agotest: add testcase for #23288 23291/head
Yu Watanabe [Fri, 6 May 2022 17:37:48 +0000 (02:37 +0900)] 
test: add testcase for #23288

2 years agoudev: fix parent token handling
Yu Watanabe [Fri, 6 May 2022 17:29:39 +0000 (02:29 +0900)] 
udev: fix parent token handling

This fixes a bug introduced by 03677889f0ef42cdc534bf3b31265a054b20a354.

Fixes #23288.

2 years agobasic/strv: fix splitting of strings with escape characters 23290/head
Zbigniew Jędrzejewski-Szmek [Fri, 6 May 2022 16:23:06 +0000 (18:23 +0200)] 
basic/strv: fix splitting of strings with escape characters

Plain strv_split() should not care if the strings contains backslashes
or quote characters. But extract_first_word() interprets backslashes
unless EXTRACT_RETAIN_ESCAPE is given.

I wonder how it's possible that nobody noticed this before. I think this
code was introduced in 0645b83a40d1c782f173c4d8440ab2fc82a75006.

2 years agoshared/terminal-util: don't use $COLORTERM to force colors
Zbigniew Jędrzejewski-Szmek [Fri, 6 May 2022 16:19:21 +0000 (18:19 +0200)] 
shared/terminal-util: don't use $COLORTERM to force colors

Fixup for a5efbf468c96190c9562bc8121eda32310dfd112: if $COLORTERM was set, we'd
unconditionally turn on colors, which is unexpected and wrong. It even breaks
our own tests when executed in gnome-terminal.

2 years agoREADME: mention kernel requirement for ambient capabilities
Yu Watanabe [Fri, 6 May 2022 05:08:45 +0000 (14:08 +0900)] 
README: mention kernel requirement for ambient capabilities

Closes #23231.

2 years agoresolve: Use sockaddr pointer type for bind()
Khem Raj [Fri, 6 May 2022 03:25:37 +0000 (20:25 -0700)] 
resolve: Use sockaddr pointer type for bind()

bind() expects sockaddr* but SERVER_ADDRESS is sockaddr_in type struct

Fixes errors with clang e.g.

../git/src/resolve/test-resolved-stream.c:112:32: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Werror,-Wincompatible-pointer-types]
        assert_se(bind(bindfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS)) >= 0);
                               ^~~~~~~~~~~~~~~
../git/src/resolve/test-resolved-stream.c:251:39: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Werror,-Wincompatible-pointer-types]
                r = connect(clientfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS));

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 years agouserdbctl: initialize parameter `n` for uid_range_load_userns()
Thomas Weißschuh [Thu, 5 May 2022 23:06:08 +0000 (01:06 +0200)] 
userdbctl: initialize parameter `n` for uid_range_load_userns()

uid_range_load_userns() dereferences the n parameter.

Passing unitialized memory may lead to crashes, for example with version
251rc2-1 on ArchLinux.

2 years agodocs/RELEASE: typo in target name
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 17:49:26 +0000 (19:49 +0200)] 
docs/RELEASE: typo in target name

2 years agoMerge pull request #23277 from keszybz/news-and-hwdb-update v251-rc2
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 17:02:49 +0000 (19:02 +0200)] 
Merge pull request #23277 from keszybz/news-and-hwdb-update

News and hwdb update

2 years agoRevert "shared/install: create relative symlinks for enablement and aliasing"
Zbigniew Jędrzejewski-Szmek [Tue, 12 Apr 2022 20:01:10 +0000 (22:01 +0200)] 
Revert "shared/install: create relative symlinks for enablement and aliasing"

This reverts commit d6c9411072901556176ac130f2ce71a33107aa93.

I still think this is something that needs to be done, but we're hitting some
unexplained failures, e.g. https://github.com/systemd/systemd/issues/22920.
So let's revert this for now, so -rc2 can be released, with a plan to return
to this after a release.

Closes #22920.

2 years agoAmend documentation for LimitNPROC=
Jakob Lell [Sun, 1 May 2022 20:52:39 +0000 (22:52 +0200)] 
Amend documentation for LimitNPROC=

2 years agojournal: Make journal_default_metrics() static
Daan De Meyer [Thu, 5 May 2022 13:40:27 +0000 (15:40 +0200)] 
journal: Make journal_default_metrics() static

Only caller resides in the same file as were it's defined so no
need to have it be public.

2 years agoMerge pull request #23273 from keszybz/bootctl-quiet
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 14:30:53 +0000 (16:30 +0200)] 
Merge pull request #23273 from keszybz/bootctl-quiet

bootctl --quiet and --graceful

2 years agohwdb: run "update-hwdb" 23277/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 14:22:42 +0000 (16:22 +0200)] 
hwdb: run "update-hwdb"

2 years agoNEWS: update with final changes
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 14:19:02 +0000 (16:19 +0200)] 
NEWS: update with final changes

2 years agocore: handle lookup paths being symlinks
Andreas Rammhold [Wed, 18 Aug 2021 17:10:08 +0000 (19:10 +0200)] 
core: handle lookup paths being symlinks

With a recent change paths leaving the statically known lookup paths would be
treated differently then those that remained within those. That was done
(AFAIK) to consistently handle alias names. Unfortunately that means that on
some distributions, especially those where /etc/ consists mostly of symlinks,
would trigger that new detection for every single unit in /etc/systemd/system.
The reason for that is that the units directory itself is already a symlink.

Rebased-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
2 years agobootctl: add --quiet 23273/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 10:28:32 +0000 (12:28 +0200)] 
bootctl: add --quiet

It's useful for installation scripts and suchlike.
Raised in https://bugzilla.redhat.com/show_bug.cgi?id=2079784#c9.

2 years agobootctl: support --graceful in is-installed
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 10:15:46 +0000 (12:15 +0200)] 
bootctl: support --graceful in is-installed

2 years agomeson: move vconsole rules to rules.d/ 23272/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 09:45:42 +0000 (11:45 +0200)] 
meson: move vconsole rules to rules.d/

2 years agomeson: move udev rules to rules.d/
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 09:42:24 +0000 (11:42 +0200)] 
meson: move udev rules to rules.d/

2 years agoTODO: add entry about boot entries on the bus
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 09:02:24 +0000 (11:02 +0200)] 
TODO: add entry about boot entries on the bus

Something like this is needed to allow integration with graphical envs and
fully unprivileged operation.

2 years agoman: deduplicate dbus versioning ref
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 08:53:29 +0000 (10:53 +0200)] 
man: deduplicate dbus versioning ref

2 years agoman: beef up o.fd.login1 page a bit and recommend busctl too
Zbigniew Jędrzejewski-Szmek [Thu, 5 May 2022 08:50:26 +0000 (10:50 +0200)] 
man: beef up o.fd.login1 page a bit and recommend busctl too

gdbus is an external program, so it makes sense to recommend busctl.

2 years agoupdate TODO
Lennart Poettering [Thu, 5 May 2022 08:33:51 +0000 (10:33 +0200)] 
update TODO

2 years agoterminal-util: get_color_mode checks COLORTERM
Sonali Srivastava [Wed, 20 Apr 2022 19:28:02 +0000 (00:58 +0530)] 
terminal-util: get_color_mode checks COLORTERM

2 years agoMerge pull request #23246 from medhefgo/check-compilation
Evgeny Vereshchagin [Wed, 4 May 2022 22:53:28 +0000 (01:53 +0300)] 
Merge pull request #23246 from medhefgo/check-compilation

meson: Improve public header tests

2 years agobasic: Add some missing headers to compress.h
Daan De Meyer [Wed, 4 May 2022 14:15:06 +0000 (16:15 +0200)] 
basic: Add some missing headers to compress.h

2 years agoFix placement of TTL TLV in LLDP transmit
Matthijs van Duin [Wed, 4 May 2022 13:18:55 +0000 (15:18 +0200)] 
Fix placement of TTL TLV in LLDP transmit

The LLDP spec (IEEE 802.1AB) requires the three mandatory TLVs (Chassis
ID, Port ID, and TTL) to be the first three TLVs in the packet, in that
specific order, whereas systemd put the TTL near the end of the packet.

This violation caused the ethernet switch in our office to discard these
packets as malformed, and Wireshark's packet parser also chokes on them.

2 years agotimedatectl: fix a memory leak
Evgeny Vereshchagin [Wed, 4 May 2022 11:35:19 +0000 (11:35 +0000)] 
timedatectl: fix a memory leak

```
timedatectl list-timezones --no-pager
...
==164329==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8192 byte(s) in 1 object(s) allocated from:
    #0 0x7fe8a74b6f8c in reallocarray (/lib64/libasan.so.6+0xaef8c)
    #1 0x7fe8a63485dc in strv_push ../src/basic/strv.c:419
    #2 0x7fe8a6349419 in strv_consume ../src/basic/strv.c:490
    #3 0x7fe8a634958d in strv_extend ../src/basic/strv.c:542
    #4 0x7fe8a643d787 in bus_message_read_strv_extend ../src/libsystemd/sd-bus/bus-message.c:5606
    #5 0x7fe8a643db9d in sd_bus_message_read_strv ../src/libsystemd/sd-bus/bus-message.c:5628
    #6 0x4085fb in list_timezones ../src/timedate/timedatectl.c:314
    #7 0x7fe8a61ef3e1 in dispatch_verb ../src/shared/verbs.c:103
    #8 0x410f91 in timedatectl_main ../src/timedate/timedatectl.c:1025
    #9 0x41111c in run ../src/timedate/timedatectl.c:1043
    #10 0x411242 in main ../src/timedate/timedatectl.c:1046
    #11 0x7fe8a489df1f in __libc_start_call_main (/lib64/libc.so.6+0x40f1f)
```

2 years agoMerge pull request #23261 from poettering/dir-is-empty
Lennart Poettering [Wed, 4 May 2022 14:36:34 +0000 (16:36 +0200)] 
Merge pull request #23261 from poettering/dir-is-empty

dir_is_empty() fixes

2 years agoMerge pull request #23264 from keszybz/shorten-test-names
Yu Watanabe [Wed, 4 May 2022 14:25:47 +0000 (23:25 +0900)] 
Merge pull request #23264 from keszybz/shorten-test-names

Shorten test names

2 years agomeson: Add -Wall and -Wextra to header checks 23246/head
Jan Janssen [Mon, 2 May 2022 09:26:43 +0000 (11:26 +0200)] 
meson: Add -Wall and -Wextra to header checks

This should ensure public headers are free from any warnings.

2 years agomeson: Use meson test suite feature
Jan Janssen [Mon, 2 May 2022 09:12:34 +0000 (11:12 +0200)] 
meson: Use meson test suite feature

This makes it easier to only test a subset of tests without having
to specify them all on the command line:
    meson test -C build --suite headers

2 years agomeson: Remove check-compilation.sh
Jan Janssen [Mon, 2 May 2022 08:55:53 +0000 (10:55 +0200)] 
meson: Remove check-compilation.sh

No need to involve a trivial shell script for this.

We could call the compiler directly, but test() expects arguments
to be passed separately and cc.cmd_array() can contain arguments
itself. Using env is easier than manually slicing the array because
meson has no builtins for that.

2 years agomeson: Exit early with subdir_done()
Jan Janssen [Mon, 2 May 2022 08:37:31 +0000 (10:37 +0200)] 
meson: Exit early with subdir_done()

2 years agoman/networkctl: mention initialized state
Yu Watanabe [Wed, 4 May 2022 12:22:56 +0000 (21:22 +0900)] 
man/networkctl: mention initialized state

Closes #23262.

2 years agotree-wide: drop manually-crafted message for missing variables
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 06:24:06 +0000 (08:24 +0200)] 
tree-wide: drop manually-crafted message for missing variables

Bash will generate a very nice message for us:
/tmp/ff.sh: line 1: SOMEVAR: parameter null or not set

Let's save some keystrokes by not replacing this with our own inferior
messages.

2 years agostat-util: drop dir_is_populated() which is apparently not used 23261/head
Lennart Poettering [Wed, 4 May 2022 09:00:58 +0000 (11:00 +0200)] 
stat-util: drop dir_is_populated() which is apparently not used

2 years agostat-util: fix dir_is_empty() with hidden/backup files
Lennart Poettering [Wed, 4 May 2022 08:53:00 +0000 (10:53 +0200)] 
stat-util: fix dir_is_empty() with hidden/backup files

This is a follow-up for f470cb6d13558fc06131dc677d54a089a0b07359 which in
turn is a follow-up for a068aceafbffcba85398cce636c25d659265087a.

The latter started to honour hidden files when deciding whether a
directory is empty. The former reverted to the old behaviour to fix
issue #23220.

It introduced a bug though: when a directory contains a larger number of
hidden entries the getdents64() buffer will not suffice to read them,
since we just allocate three entries for it (which is definitely enough
if we just ignore the . + .. entries, but not ig we ignore more).

I think it's a bit confusing that dir_is_empty() can return true even if
rmdir() on the dir would return ENOTEMPTY. Hence, let's rework the
function to make it optional whether hidden files are ignored or not.
After all, I looking at the users of this function I am pretty sure in
more cases we want to honour hidden files.

2 years agoMerge pull request #23260 from yuwata/libsystemd-network-raw-size
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 11:11:26 +0000 (13:11 +0200)] 
Merge pull request #23260 from yuwata/libsystemd-network-raw-size

libsystemd-network: two fixlets

2 years agodocs: use lowercase "qemu" and other minor tweaks to test docs 23264/head
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 10:29:31 +0000 (12:29 +0200)] 
docs: use lowercase "qemu" and other minor tweaks to test docs

We used both "qemu" and "QEMU", let's use the lower-case version everywhere
since it's also the name of the binary and the version that people are
most familiar with.

The stuff under test/ is not only for the integeration tests, but also
for various other test-related stuff, so adjust the docs a bit.

2 years agodocs: say that fuzzer input samples should have short names
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 10:21:42 +0000 (12:21 +0200)] 
docs: say that fuzzer input samples should have short names

2 years agofuzz-network-parser: drop ".network" and shorten names
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 08:57:45 +0000 (10:57 +0200)] 
fuzz-network-parser: drop ".network" and shorten names

All fuzzer inputs as .network files. Some had the suffix, others didn't.
So drop it everywhere, and also shorten some other names.

2 years agofuzz: rename test cases for brevity and meaning
Zbigniew Jędrzejewski-Szmek [Wed, 4 May 2022 08:26:10 +0000 (10:26 +0200)] 
fuzz: rename test cases for brevity and meaning

Those long indentifiers make test output very wide, and they are ultimately
not very useful for humans to look at. Let's use some short string to identify
the test failure instead.

2 years agoupdate NEWS for 251-rc2
Lennart Poettering [Wed, 4 May 2022 08:32:10 +0000 (10:32 +0200)] 
update NEWS for 251-rc2

2 years agounits: remove spurious empty line
Lennart Poettering [Wed, 4 May 2022 08:16:53 +0000 (10:16 +0200)] 
units: remove spurious empty line

2 years agosd-lldp: use memcpy_safe() as the buffer size may be zero 23260/head
Yu Watanabe [Wed, 4 May 2022 07:05:04 +0000 (16:05 +0900)] 
sd-lldp: use memcpy_safe() as the buffer size may be zero

2 years agosd-ndisc: drop unused function
Yu Watanabe [Wed, 4 May 2022 07:03:57 +0000 (16:03 +0900)] 
sd-ndisc: drop unused function

2 years agolibsystemd-network: refuse too large raw_size
Yu Watanabe [Wed, 4 May 2022 06:45:13 +0000 (15:45 +0900)] 
libsystemd-network: refuse too large raw_size

Closes #23258.

2 years agoMerge pull request #23205 from DaanDeMeyer/tmpfiles-networkd
Yu Watanabe [Wed, 4 May 2022 02:48:21 +0000 (11:48 +0900)] 
Merge pull request #23205 from DaanDeMeyer/tmpfiles-networkd

tmpfiles: Split networkd entries into a separate file

2 years agoMerge pull request #23257 from evverx/install-valgrind
Yu Watanabe [Wed, 4 May 2022 02:47:59 +0000 (11:47 +0900)] 
Merge pull request #23257 from evverx/install-valgrind

tests: make it possible to install valgrind

2 years agosd-network: Keep inotify watch if watch descriptor didn't change
Daan De Meyer [Tue, 3 May 2022 11:54:49 +0000 (13:54 +0200)] 
sd-network: Keep inotify watch if watch descriptor didn't change

In sd_network_monitor_flush(), we shouldn't remove the inotify
watch for the current directory if the directory the network
monitor is waiting for wasn't created yet.

inotify_add_watch() returns the same unique watch descriptor if a
path is already being watched. Let's return the watch descriptor
from monitor_add_inotify_watch() so we can check if it's the same
as the watch descriptor of the inotify event. If they are equal,
we're still watching the same path and we don't need to remove the
inotify watch just yet.

2 years agotests: make valgrind_wrapper track file descriptors 23257/head
Evgeny Vereshchagin [Tue, 3 May 2022 20:51:56 +0000 (20:51 +0000)] 
tests: make valgrind_wrapper track file descriptors

2 years agotests: make it possible to install valgrind
Evgeny Vereshchagin [Tue, 3 May 2022 20:50:39 +0000 (20:50 +0000)] 
tests: make it possible to install valgrind

2 years agoAdding a description of the keyboard shortcut Fn+F12 for the HP EliteBook 845 G7...
rodin-ia [Tue, 3 May 2022 20:40:55 +0000 (22:40 +0200)] 
Adding a description of the keyboard shortcut Fn+F12 for the HP EliteBook 845 G7 device. (#23253)

udevadm info /dev/input/event4
P: /devices/platform/i8042/serio0/input/input4/event4
N: input/event4
L: 0
S: input/by-path/platform-i8042-serio-0-event-kbd
E: DEVPATH=/devices/platform/i8042/serio0/input/input4/event4
E: DEVNAME=/dev/input/event4
E: MAJOR=13
E: MINOR=68
E: SUBSYSTEM=input
E: USEC_INITIALIZED=4165584
E: KEYBOARD_KEY_81=f20
E: KEYBOARD_KEY_89=battery
E: KEYBOARD_KEY_8a=screenlock
E: KEYBOARD_KEY_8b=camera
E: KEYBOARD_KEY_8c=media
E: KEYBOARD_KEY_8e=dvd
E: KEYBOARD_KEY_92=brightnessdown
E: KEYBOARD_KEY_97=brightnessup
E: KEYBOARD_KEY_b1=help
E: KEYBOARD_KEY_b3=unknown
E: KEYBOARD_KEY_d7=wlan
E: KEYBOARD_KEY_ee=switchvideomode
E: KEYBOARD_KEY_68=unknown
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_BUS=i8042
E: ID_SERIAL=noserial
E: ID_PATH=platform-i8042-serio-0
E: ID_PATH_TAG=platform-i8042-serio-0
E: XKBMODEL=pc105
E: XKBLAYOUT=us
E: BACKSPACE=guess
E: LIBINPUT_DEVICE_GROUP=11/1/1:isa0060/serio0
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-0-event-kbd
E: TAGS=:power-switch:
E: CURRENT_TAGS=:power-switch:

2 years agomeson: Sort lines in tmpfiles.d/meson.build 23205/head
Daan De Meyer [Wed, 27 Apr 2022 11:42:59 +0000 (12:42 +0100)] 
meson: Sort lines in tmpfiles.d/meson.build

2 years agotmpfiles: Split networkd entries into a separate file
Daan De Meyer [Wed, 27 Apr 2022 09:25:22 +0000 (10:25 +0100)] 
tmpfiles: Split networkd entries into a separate file

Many distributions ship systemd-networkd as a separate file so we
need to be able to ship the tmpfiles networkd entries as part of
that separate networkd package. Let's split the networkd entries
into a separate file to make that possible.

2 years agojournal: Use header macros everywhere instead of JournalFile fields
Daan De Meyer [Wed, 20 Apr 2022 14:52:21 +0000 (16:52 +0200)] 
journal: Use header macros everywhere instead of JournalFile fields

Let's standardize on the journal header as a single source of truth
and remove redundant information from the JournalFile struct.

2 years agoudev: check stats of .link files and their drop-in files
Yu Watanabe [Fri, 22 Apr 2022 03:33:15 +0000 (12:33 +0900)] 
udev: check stats of .link files and their drop-in files

Fixes #23128.

2 years agoMerge pull request #23135 from DaanDeMeyer/journal-move
Lennart Poettering [Tue, 3 May 2022 08:01:39 +0000 (10:01 +0200)] 
Merge pull request #23135 from DaanDeMeyer/journal-move

journal: Only move to object if requested

2 years agobuild(deps): bump github/super-linter from 4.9.1 to 4.9.2
dependabot[bot] [Sun, 1 May 2022 09:04:18 +0000 (09:04 +0000)] 
build(deps): bump github/super-linter from 4.9.1 to 4.9.2

Bumps [github/super-linter](https://github.com/github/super-linter) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/3792fe5373cf2f5b22d590fcbbc4533d735c573e...ae4e373c56efad95924d9cc6b89624fdb2333007)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/checkout from 3.0.0 to 3.0.2
dependabot[bot] [Sun, 1 May 2022 09:04:12 +0000 (09:04 +0000)] 
build(deps): bump actions/checkout from 3.0.0 to 3.0.2

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/a12a3943b4bdde767164f792f33f40b04645d846...2541b1294d2704b0964813337f33b291d3f8596b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agonspawn: Set LANG to C.UTF-8
Daan De Meyer [Tue, 26 Apr 2022 09:05:08 +0000 (10:05 +0100)] 
nspawn: Set LANG to C.UTF-8

Let's default to a UTF-8 locale when running commands using nspawn.

2 years agoshared/install: use correct cleanup function
Yu Watanabe [Mon, 2 May 2022 16:09:21 +0000 (01:09 +0900)] 
shared/install: use correct cleanup function

Fixes #23250.

2 years agoman: document that systemd-fstab-generator actually cares about roothash=/usrhash...
Lennart Poettering [Mon, 2 May 2022 14:42:50 +0000 (16:42 +0200)] 
man: document that systemd-fstab-generator actually cares about roothash=/usrhash= on the kernel cmdline

It doesn't really care about the hash value passed (which is processed
by systemd-veritysetup-generator), but it does care about the fact that
it is set (and mounts the DM nodes /dev/mapper/usr + /dev/mapper/root in
that case).

2 years agoboot: Mark loader.conf settings with (config)
Jan Janssen [Mon, 2 May 2022 12:16:07 +0000 (14:16 +0200)] 
boot: Mark loader.conf settings with (config)

2 years agofix typo
Yu Watanabe [Mon, 2 May 2022 16:16:32 +0000 (01:16 +0900)] 
fix typo

2 years agocreds: trivial coding style fixes
Lennart Poettering [Mon, 2 May 2022 16:04:53 +0000 (18:04 +0200)] 
creds: trivial coding style fixes

As per:

https://github.com/systemd/systemd/pull/23170#pullrequestreview-959233817

2 years agodocs: typo fix
Lennart Poettering [Mon, 2 May 2022 16:04:35 +0000 (18:04 +0200)] 
docs: typo fix

As per:

https://github.com/systemd/systemd/pull/23170#pullrequestreview-959233817

2 years agoman: correct a major missed opportunity
Lennart Poettering [Mon, 2 May 2022 14:49:17 +0000 (16:49 +0200)] 
man: correct a major missed opportunity

I don't know why this didn't occur to me earlier, but of course, it
*has* to be this data.

(This replaces some German prose about Berlin, that i guess only very
few people will get. With the new blob I think we have a much broader
chance of delivering smiles.)

2 years agodocs: Clarify where options are read from
Daan De Meyer [Tue, 19 Apr 2022 19:57:53 +0000 (21:57 +0200)] 
docs: Clarify where options are read from

Let's merge the footnote with the overall explanation of where systemd
parses its options from and reword the section a bit to hopefully make
things a bit more clear.

2 years agoupdate TODO
Lennart Poettering [Mon, 2 May 2022 14:41:52 +0000 (16:41 +0200)] 
update TODO

2 years agoMerge pull request #23170 from poettering/creds-copy
Lennart Poettering [Mon, 2 May 2022 14:32:21 +0000 (16:32 +0200)] 
Merge pull request #23170 from poettering/creds-copy

import system credentials from sd-stub + qemu fw_cfg + kernel cmdline explicitly in PID 1

2 years agoFix orientation detection for HP Pavilion X2 10-k010nr
Alice S [Sun, 1 May 2022 21:49:18 +0000 (14:49 -0700)] 
Fix orientation detection for HP Pavilion X2 10-k010nr

2 years agoFix orientation detection for Asus Transformer T100TAF, copied T100TA rule
techtino [Sat, 30 Apr 2022 13:06:55 +0000 (14:06 +0100)] 
Fix orientation detection for Asus Transformer T100TAF, copied T100TA rule

2 years agoanalyze security: print DeviceAllow list
Luca Boccassi [Sat, 30 Apr 2022 22:29:10 +0000 (23:29 +0100)] 
analyze security: print DeviceAllow list

Many sandboxing options add implicit DeviceAllow rules, which might be confusing
for users running systemd-analyze security and not expecting it.
Print the list.

Fixes https://github.com/systemd/systemd/issues/23185

2 years agoanalyze: fix crash with online security check
Luca Boccassi [Fri, 29 Apr 2022 22:50:11 +0000 (23:50 +0100)] 
analyze: fix crash with online security check

1449b0f8a96b27 fixed seccomp arch check for the offline case,
but broke it for the normal case, as when coming from D-Bus the
list of seccomp architectures is already converted to string.

Fixes https://github.com/systemd/systemd/issues/23224

2 years agostat-util: ignore hidden_or_backup_file when checking if dir is empty
Luca Boccassi [Sat, 30 Apr 2022 16:47:56 +0000 (17:47 +0100)] 
stat-util: ignore hidden_or_backup_file when checking if dir is empty

Commit https://github.com/systemd/systemd/commit/a068aceafbf
changed dir_is_emtpy_at to use FOREACH_DIRENT_IN_BUFFER instead of
FOREACH_DIRENT, but used dot_or_dotdot which just checks if the name
is literally '.' or '..' which is not enough, previous behaviour was
to ignore all hidden files, so restore that and add a test case.

Fixes https://github.com/systemd/systemd/issues/23220

2 years agoMerge pull request #23230 from yuwata/core-device-cleanups
Yu Watanabe [Sat, 30 Apr 2022 14:10:22 +0000 (23:10 +0900)] 
Merge pull request #23230 from yuwata/core-device-cleanups

core/device: several cleanups

2 years agocore/device: use DEVICE_FOUND_MASK 23230/head
Yu Watanabe [Thu, 28 Apr 2022 13:49:58 +0000 (22:49 +0900)] 
core/device: use DEVICE_FOUND_MASK

2 years agocore/device: minor coding style updates
Yu Watanabe [Thu, 28 Apr 2022 13:35:56 +0000 (22:35 +0900)] 
core/device: minor coding style updates

2 years agocore/device: drop unused unit name generated from path
Yu Watanabe [Thu, 28 Apr 2022 13:33:29 +0000 (22:33 +0900)] 
core/device: drop unused unit name generated from path

2 years agocore/device: device_found_node() does not accept DEVICE_FOUND_UDEV
Yu Watanabe [Fri, 29 Apr 2022 13:27:53 +0000 (22:27 +0900)] 
core/device: device_found_node() does not accept DEVICE_FOUND_UDEV

2 years agocore/device: use sd_device_new_from_devname() to verify the device node
Yu Watanabe [Thu, 28 Apr 2022 13:22:12 +0000 (22:22 +0900)] 
core/device: use sd_device_new_from_devname() to verify the device node

2 years agocore/device: use udev_available()
Yu Watanabe [Thu, 28 Apr 2022 13:01:12 +0000 (22:01 +0900)] 
core/device: use udev_available()