]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agoupdate TODO 17144/head
Lennart Poettering [Wed, 23 Sep 2020 08:11:49 +0000 (10:11 +0200)] 
update TODO

3 years agotree-wide: port remaining umount() calls to umount_verbose()
Lennart Poettering [Wed, 23 Sep 2020 13:28:59 +0000 (15:28 +0200)] 
tree-wide: port remaining umount() calls to umount_verbose()

3 years agotree-wide: switch remaining mount() invocations over to mount_nofollow_verbose()
Lennart Poettering [Wed, 23 Sep 2020 08:12:56 +0000 (10:12 +0200)] 
tree-wide: switch remaining mount() invocations over to mount_nofollow_verbose()

(Well, at least the ones where that makes sense. Where it does't make
sense are the ones that re invoked on the root path, which cannot
possibly be a symlink.)

3 years agomount-util: rework umount_verbose() to take log level and flags arg
Lennart Poettering [Tue, 22 Sep 2020 14:32:07 +0000 (16:32 +0200)] 
mount-util: rework umount_verbose() to take log level and flags arg

Let's make umount_verbose() more like mount_verbose_xyz(), i.e. take log
level and flags param. In particular the latter matters, since we
typically don't actually want to follow symlinks when unmounting.

3 years agomount-util: switch most mount_verbose() code over to not follow symlinks
Lennart Poettering [Tue, 22 Sep 2020 13:51:17 +0000 (15:51 +0200)] 
mount-util: switch most mount_verbose() code over to not follow symlinks

3 years agomount-util: make sure get_mount_flags() ever follows symlinks
Lennart Poettering [Tue, 22 Sep 2020 13:16:37 +0000 (15:16 +0200)] 
mount-util: make sure get_mount_flags() ever follows symlinks

It doesn't follow symlinks when we check for the mount flags via
libmount, hence it shouldn't do either when we go via statvfs().

3 years agomount-util: add helpers for mount() without following symlinks
Lennart Poettering [Tue, 22 Sep 2020 13:16:15 +0000 (15:16 +0200)] 
mount-util: add helpers for mount() without following symlinks

3 years agoupdate TODO
Lennart Poettering [Wed, 23 Sep 2020 13:25:25 +0000 (15:25 +0200)] 
update TODO

3 years agosd-radv: fix indentation
Lennart Poettering [Wed, 23 Sep 2020 11:25:27 +0000 (13:25 +0200)] 
sd-radv: fix indentation

Fix-up for 97efde65d81b1501a3737f408f1234c6c25da61c

3 years agomachine: fix error code propagation in two cases
Lennart Poettering [Wed, 23 Sep 2020 08:21:27 +0000 (10:21 +0200)] 
machine: fix error code propagation in two cases

3 years agoMerge pull request #17130 from keszybz/static-analyzer-cleanups
Lennart Poettering [Wed, 23 Sep 2020 11:23:56 +0000 (13:23 +0200)] 
Merge pull request #17130 from keszybz/static-analyzer-cleanups

Trivial cleanups based on static analysis

3 years agoman: sd_bus_message_new: fix typo
Roy Chen (陳彥廷) [Wed, 23 Sep 2020 09:52:22 +0000 (17:52 +0800)] 
man: sd_bus_message_new: fix typo

3 years agosd-path: include 'search' in search pathnames
Ronan Pigott [Wed, 23 Sep 2020 00:21:27 +0000 (17:21 -0700)] 
sd-path: include 'search' in search pathnames

3 years agozsh: add systemd-path completions
Ronan Pigott [Wed, 23 Sep 2020 00:52:53 +0000 (17:52 -0700)] 
zsh: add systemd-path completions

3 years agoMerge pull request #17124 from bluca/copypasta
Lennart Poettering [Wed, 23 Sep 2020 07:43:39 +0000 (09:43 +0200)] 
Merge pull request #17124 from bluca/copypasta

dissect-image: use correct path variable when reading verity signatures, do not refuse verity GPT without /usr partition

3 years agoMerge pull request #17127 from poettering/errno-fixup
Lennart Poettering [Wed, 23 Sep 2020 07:43:18 +0000 (09:43 +0200)] 
Merge pull request #17127 from poettering/errno-fixup

make more use of errno-util.h macros

3 years agoMerge pull request #16938 from poettering/homed-rtc-wrong
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 18:51:39 +0000 (20:51 +0200)] 
Merge pull request #16938 from poettering/homed-rtc-wrong

homed: don't refuse logins when RTC is wrong

3 years agoMerge pull request #17109 from fbuihuu/udev-opts-tweaks
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 16:54:48 +0000 (18:54 +0200)] 
Merge pull request #17109 from fbuihuu/udev-opts-tweaks

Udev opts tweaks

3 years agoshared/conf-parser: drop redundant cast to boolean 17130/head
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 11:05:31 +0000 (13:05 +0200)] 
shared/conf-parser: drop redundant cast to boolean

parse_boolean returns either 0 or 1 or error, and we checked for errors
earlier already.

3 years agologind: use _cleanup_ in one more place
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 15:33:24 +0000 (17:33 +0200)] 
logind: use _cleanup_ in one more place

3 years agosd-{login,netlink,network}: use TAKE_FD() in more places
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 15:33:06 +0000 (17:33 +0200)] 
sd-{login,netlink,network}: use TAKE_FD() in more places

3 years agotest-bus-chat: add missing return value in check
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 15:32:26 +0000 (17:32 +0200)] 
test-bus-chat: add missing return value in check

3 years agovarious: remove assignments of unread variables
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 15:30:47 +0000 (17:30 +0200)] 
various: remove assignments of unread variables

3 years agoactivate: reduce scope of iterator variable
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 15:31:08 +0000 (17:31 +0200)] 
activate: reduce scope of iterator variable

3 years agocore/namespace: drop bitfield annotations from boolean fields
Zbigniew Jędrzejewski-Szmek [Tue, 22 Sep 2020 10:48:25 +0000 (12:48 +0200)] 
core/namespace: drop bitfield annotations from boolean fields

Such microoptimization makes sense when the structure is used in many many copies,
but here's it's not, and the few bytes we save are not worth the extra code the
compiler has to generate:

    return  ns_info->mount_apivfs ||
            ns_info->protect_control_groups ||
            ns_info->protect_kernel_tunables ||
            ...
before:
  49b187:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b18b:       0f b6 00                movzbl (%rax),%eax
  49b18e:       83 e0 80                and    $0xffffff80,%eax
  49b191:       84 c0                   test   %al,%al
  49b193:       75 32                   jne    49b1c7 <namespace_info_mount_apivfs+0x80>
  49b195:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b199:       0f b6 00                movzbl (%rax),%eax
  49b19c:       83 e0 08                and    $0x8,%eax
  49b19f:       84 c0                   test   %al,%al
  49b1a1:       75 24                   jne    49b1c7 <namespace_info_mount_apivfs+0x80>
  49b1a3:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b1a7:       0f b6 00                movzbl (%rax),%eax
  49b1aa:       83 e0 10                and    $0x10,%eax
  49b1ad:       84 c0                   test   %al,%al
  49b1af:       75 16                   jne    49b1c7 <namespace_info_mount_apivfs+0x80>

after:
  49b024:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b028:       0f b6 40 07             movzbl 0x7(%rax),%eax
  49b02c:       84 c0                   test   %al,%al
  49b02e:       75 2e                   jne    49b05e <namespace_info_mount_apivfs+0x7a>
  49b030:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b034:       0f b6 40 03             movzbl 0x3(%rax),%eax
  49b038:       84 c0                   test   %al,%al
  49b03a:       75 22                   jne    49b05e <namespace_info_mount_apivfs+0x7a>
  49b03c:       48 8b 45 f8             mov    -0x8(%rbp),%rax
  49b040:       0f b6 40 04             movzbl 0x4(%rax),%eax
  49b044:       84 c0                   test   %al,%al
  49b046:       75 16                   jne    49b05e <namespace_info_mount_apivfs+0x7a>

3 years agoMerge pull request #17086 from keszybz/developer-mode-default
Lennart Poettering [Tue, 22 Sep 2020 14:29:28 +0000 (16:29 +0200)] 
Merge pull request #17086 from keszybz/developer-mode-default

Update dbus docs, make developer mode default

3 years agoptyfwd: use ERRNO_IS_DISCONNECT() when checking for disconnection on foreign fds 17127/head
Lennart Poettering [Tue, 22 Sep 2020 12:18:11 +0000 (14:18 +0200)] 
ptyfwd: use ERRNO_IS_DISCONNECT() when checking for disconnection on foreign fds

3 years agotree-wide: use ERRNO_IS_PRIVILEGE() whereever appropriate
Lennart Poettering [Tue, 22 Sep 2020 12:13:18 +0000 (14:13 +0200)] 
tree-wide: use ERRNO_IS_PRIVILEGE() whereever appropriate

3 years agodissect-image: do not refuse verity GPT without /usr partition 17124/head
Luca Boccassi [Tue, 22 Sep 2020 14:24:59 +0000 (15:24 +0100)] 
dissect-image: do not refuse verity GPT without /usr partition

Only enforce that /usr verity partition is present if a /usr
partition is there

3 years agodissect-image: use correct path variable when reading verity signatures
Luca Boccassi [Tue, 22 Sep 2020 12:19:19 +0000 (13:19 +0100)] 
dissect-image: use correct path variable when reading verity signatures

Copypasta slipped in via https://github.com/systemd/systemd/pull/17101

3 years agoTry stopping MD RAID devices in shutdown too
Hubert Kario [Sun, 20 Sep 2020 16:59:58 +0000 (18:59 +0200)] 
Try stopping MD RAID devices in shutdown too

Currently the systemd-shutdown command attempts to stop swaps, DM
(crypt, LVM2) and loop devices, but it doesn't attempt to stop MD
RAID devices, which means that if the RAID is set up on crypt,
loop, etc. device, it won't be able to stop those underlying devices.

This code extends the shutdown application to also attempt stopping
the MD RAID devices.

Signed-off-by: Hubert Kario <hubert@kario.pl>
3 years agoudevadm: rename option '--log-priority' into '--log-level' 17109/head
Franck Bui [Mon, 21 Sep 2020 09:22:12 +0000 (11:22 +0200)] 
udevadm: rename option '--log-priority' into '--log-level'

Let's be consistent with systemctl(1).

'--log-priority' i still kept only for backward compatibility.

3 years agoudev: rename kernel option 'log_priority' into 'log_level'
Franck Bui [Mon, 21 Sep 2020 09:10:50 +0000 (11:10 +0200)] 
udev: rename kernel option 'log_priority' into 'log_level'

Let's be consistent with the rest of the project.

'log_priority' is still supported for backward compatibility.

3 years agomeson: remove multi-line statement with trailing '\'
Anita Zhang [Mon, 21 Sep 2020 18:41:17 +0000 (11:41 -0700)] 
meson: remove multi-line statement with trailing '\'

Error on meson 0.47:
```
meson.build:885:47: ERROR:  Expecting colon got eol_cont.
crypt_header = conf.get('HAVE_CRYPT_H') == 1 ? \
                                               ^
```

This seems to have been fixed in meson 0.50 after a report from
https://github.com/mesonbuild/meson/issues/4720

3 years agohomed: in images that lack mkfs.btrfs automatically fall back to ext4 16938/head
Lennart Poettering [Mon, 21 Sep 2020 15:30:03 +0000 (17:30 +0200)] 
homed: in images that lack mkfs.btrfs automatically fall back to ext4

It's better to tweak suboptimal defaults than to just fail with
compiled-in defaults.

3 years agohomed: show actual file system in messages about file systems
Lennart Poettering [Mon, 21 Sep 2020 15:21:12 +0000 (17:21 +0200)] 
homed: show actual file system in messages about file systems

3 years agouser-record: don't refuse login when last pw change time is in the future
Lennart Poettering [Wed, 2 Sep 2020 14:37:42 +0000 (16:37 +0200)] 
user-record: don't refuse login when last pw change time is in the future

The RTC is like just off, it's a weird system state, let's continue
without requiring pw change.

3 years agohomed: ignore ratelimiting counters when timestamp is from future
Lennart Poettering [Wed, 2 Sep 2020 14:36:27 +0000 (16:36 +0200)] 
homed: ignore ratelimiting counters when timestamp is from future

This likely indicates that the system clock is simply wrong, hence allow
access in this case.

Fixes: #15917
3 years agohomed: don't block logins into accounts with future change time
Lennart Poettering [Wed, 2 Sep 2020 14:35:22 +0000 (16:35 +0200)] 
homed: don't block logins into accounts with future change time

This might happen if the system clock is wrong, and we should allow
access in this case (though certainly log about it).

3 years agoMerge pull request #17101 from poettering/gpt-usr
Lennart Poettering [Mon, 21 Sep 2020 11:45:04 +0000 (13:45 +0200)] 
Merge pull request #17101 from poettering/gpt-usr

add gpt types for /usr/, similar to how we have it for root partitions

3 years agoupdate-dbus-docs: skip test if python is too old 17086/head
Zbigniew Jędrzejewski-Szmek [Sun, 20 Sep 2020 11:15:44 +0000 (13:15 +0200)] 
update-dbus-docs: skip test if python is too old

3 years agoupdate TODO 17101/head
Lennart Poettering [Thu, 17 Sep 2020 16:59:10 +0000 (18:59 +0200)] 
update TODO

3 years agodoc: document the new GPT partition type UUIDs
Lennart Poettering [Thu, 17 Sep 2020 16:57:27 +0000 (18:57 +0200)] 
doc: document the new GPT partition type UUIDs

3 years agoman: emphasize that part table shown by systemd-dissect is not complete
Lennart Poettering [Thu, 17 Sep 2020 16:00:26 +0000 (18:00 +0200)] 
man: emphasize that part table shown by systemd-dissect is not complete

3 years agodissect-image: process /usr/ GPT partition type
Lennart Poettering [Sat, 22 Aug 2020 10:21:51 +0000 (12:21 +0200)] 
dissect-image: process /usr/ GPT partition type

3 years agogpt: add new GPT partition types of /usr partitions
Lennart Poettering [Sat, 22 Aug 2020 10:23:01 +0000 (12:23 +0200)] 
gpt: add new GPT partition types of /usr partitions

3 years agoMerge pull request #17100 from poettering/homed-fixes 16211/head
Zbigniew Jędrzejewski-Szmek [Sat, 19 Sep 2020 16:17:56 +0000 (18:17 +0200)] 
Merge pull request #17100 from poettering/homed-fixes

various homed fixes

3 years agomkosi: include libfido2 binary package in mkosi manually for now
Lennart Poettering [Fri, 18 Sep 2020 20:27:36 +0000 (22:27 +0200)] 
mkosi: include libfido2 binary package in mkosi manually for now

As long as the RPM version does not include a dep for it yet, we need to
add it manually, since we now link against it.

Follow-up for: 95f7ab2fe66cc3bb3a95eb8690114732eab30555

3 years agoMerge pull request #17102 from weblate/weblate-systemd-master
Zbigniew Jędrzejewski-Szmek [Sat, 19 Sep 2020 16:05:59 +0000 (18:05 +0200)] 
Merge pull request #17102 from weblate/weblate-systemd-master

Translations update from Weblate

3 years agoTranslated using Weblate (Turkish) 17102/head
Oğuz Ersen [Sat, 19 Sep 2020 12:22:13 +0000 (14:22 +0200)] 
Translated using Weblate (Turkish)

Currently translated at 100.0% (133 of 133 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/tr/
Translation: systemd/master

3 years agoTranslated using Weblate (Danish)
scootergrisen [Sat, 19 Sep 2020 12:22:13 +0000 (14:22 +0200)] 
Translated using Weblate (Danish)

Currently translated at 100.0% (187 of 187 strings)

Translated using Weblate (Danish)

Currently translated at 100.0% (187 of 187 strings)

Translated using Weblate (Danish)

Currently translated at 95.7% (179 of 187 strings)

Translated using Weblate (Danish)

Currently translated at 78.6% (147 of 187 strings)

Co-authored-by: scootergrisen <scootergrisen@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/da/
Translation: systemd/master

3 years agoMerge pull request #17082 from poettering/nspawn-ctty-tweaks
Anita Zhang [Fri, 18 Sep 2020 21:26:14 +0000 (14:26 -0700)] 
Merge pull request #17082 from poettering/nspawn-ctty-tweaks

nspawn controlling tty tweaks

3 years agounits: pass CAP_SYS_RESOURCE to homed 17100/head
Lennart Poettering [Fri, 18 Sep 2020 20:01:49 +0000 (22:01 +0200)] 
units: pass CAP_SYS_RESOURCE to homed

The ext4 fs resize ioctl needs CAP_SYS_RESOURCE, irritatingly. Let's
grant it to homed hence.

Fixes: #15115
3 years agohomed: make clean that --storage=directory --image-path=/dev/some-block-device is...
Lennart Poettering [Fri, 18 Sep 2020 17:37:05 +0000 (19:37 +0200)] 
homed: make clean that --storage=directory --image-path=/dev/some-block-device is not supported

The directory backend needs a file system path, and not a raw block
device. That's only supported for the LUKS2 backend.

Let's make this clearer in the man page and also generate a better error
message if attempted anyway.

Fixes: #17068
3 years agohomed: make sure our worker processes finish before we exit
Lennart Poettering [Fri, 18 Sep 2020 16:53:12 +0000 (18:53 +0200)] 
homed: make sure our worker processes finish before we exit

When exiting, let's explicitly wait for our worker processes to finish
first. That's useful if unmounting of /home/ is scheduled to happen
right after homed is down, as we then can be sure that the home
directories are properly unmounted and detached by the time homed is
fully terminated (otherwise it might happen that our worker gets killed
by the service manager, thus leaving the home directory and its backing
devices up/left for auto-clean which might be async).

Likely fixes #16842

3 years agohomed: make it easier to run multiple instances of homed
Lennart Poettering [Fri, 18 Sep 2020 15:55:51 +0000 (17:55 +0200)] 
homed: make it easier to run multiple instances of homed

When debugging homed while being logged into a user account manged by
homed it is a good idea to be able to run a second copy of homed. In
order to not collide with its AF_UNIX socket and bus name use, let's add
a new env var $SYSTEMD_HOME_DEBUG_SUFFIX, when set the busnames/socket
names are suffixed by it. When setting this while debugging one can
invoke an additional copy without interfering with the host one.

3 years agohomed-bus: add missing spdx header
Lennart Poettering [Fri, 18 Sep 2020 15:55:27 +0000 (17:55 +0200)] 
homed-bus: add missing spdx header

3 years agoupdate TODO
Lennart Poettering [Fri, 18 Sep 2020 20:26:50 +0000 (22:26 +0200)] 
update TODO

3 years agoMerge pull request #16981 from keszybz/use-crypt_ra
Lennart Poettering [Fri, 18 Sep 2020 17:46:08 +0000 (19:46 +0200)] 
Merge pull request #16981 from keszybz/use-crypt_ra

Use crypt_ra to allocate scratch area for password hashing

3 years agoupdate-dbus-docs: skip test lxml is not available
Zbigniew Jędrzejewski-Szmek [Fri, 18 Sep 2020 16:51:42 +0000 (18:51 +0200)] 
update-dbus-docs: skip test lxml is not available

3 years agoUpdate 60-sensor.hwdb
Mitsuha_QuQ [Fri, 18 Sep 2020 01:33:31 +0000 (09:33 +0800)] 
Update 60-sensor.hwdb

Removed the blank

3 years agoUpdate 60-sensor.hwdb
Mitsuha_QuQ [Thu, 17 Sep 2020 14:56:00 +0000 (22:56 +0800)] 
Update 60-sensor.hwdb

Add Cube KNote 5 ACCEL matrix

3 years agotest: add test cases for RuntimeDirectoryPreserve=yes
Yu Watanabe [Tue, 1 Oct 2019 15:22:58 +0000 (00:22 +0900)] 
test: add test cases for RuntimeDirectoryPreserve=yes

3 years agoMerge pull request #17085 from yuwata/network-configure-mdb-entries-on-bridge-master
Zbigniew Jędrzejewski-Szmek [Fri, 18 Sep 2020 11:06:44 +0000 (13:06 +0200)] 
Merge pull request #17085 from yuwata/network-configure-mdb-entries-on-bridge-master

network: allow to configure mdb entries on bridge master

3 years agosocket: unified documentation for Accept to use 'yes/no' everywhere
Renaud Métrich [Fri, 18 Sep 2020 06:58:52 +0000 (08:58 +0200)] 
socket: unified documentation for Accept to use 'yes/no' everywhere

3 years agoMerge pull request #17092 from keszybz/libtool-excorcism
Lennart Poettering [Fri, 18 Sep 2020 08:14:09 +0000 (10:14 +0200)] 
Merge pull request #17092 from keszybz/libtool-excorcism

Libtool excorcism

3 years agoMerge pull request #17093 from poettering/dissect-tweaks2
Lennart Poettering [Fri, 18 Sep 2020 08:13:31 +0000 (10:13 +0200)] 
Merge pull request #17093 from poettering/dissect-tweaks2

dissect: some more tweaks

3 years agoMerge pull request #15050 from ssahani/fq-pie
Yu Watanabe [Thu, 17 Sep 2020 18:50:02 +0000 (03:50 +0900)] 
Merge pull request #15050 from ssahani/fq-pie

network: tc: add support for FQ-PIE packet scheduler

3 years agodissect: show partition output even if os-release is missing 17093/head
Lennart Poettering [Thu, 17 Sep 2020 15:52:00 +0000 (17:52 +0200)] 
dissect: show partition output even if os-release is missing

It's just too useful to immediately see with "systemd-dissect" what
"systemd-repart" generated for us without having to populate it with
/etc/os-release. Hence let's log a message if /etc/os-release is
missing, but proceed otherwise and show the partition table.

3 years agodissect: use structured initialization, it's prettier
Lennart Poettering [Thu, 17 Sep 2020 14:56:09 +0000 (16:56 +0200)] 
dissect: use structured initialization, it's prettier

3 years agodissect: is_loop_device() returns negative on error, don't mistake that is true
Lennart Poettering [Thu, 17 Sep 2020 15:24:33 +0000 (17:24 +0200)] 
dissect: is_loop_device() returns negative on error, don't mistake that is true

3 years agodissect: always invalidate secondary arch partitions if we found primary arch
Lennart Poettering [Thu, 17 Sep 2020 15:32:34 +0000 (17:32 +0200)] 
dissect: always invalidate secondary arch partitions if we found primary arch

Let's suppress the secondary arch data, since we never ever want to
mount it if we found the primary arch.

Previously we only suppressed in the Verity case, but there's little
reason to entertain the idea of a secondary arch in non-Verity
environments either, we are not going to use them, and should not do
decryption or anything like that.

3 years agodissect: three trivial fixes
Lennart Poettering [Thu, 17 Sep 2020 15:27:48 +0000 (17:27 +0200)] 
dissect: three trivial fixes

Uppercase first char of log message, and indicate correct program name.

Reindent comment table at one place.

Use correct, specific, enum type at one more place.

3 years agomkosi: update rules in mkosi.default.networkd-test boot 17092/head
Zbigniew Jędrzejewski-Szmek [Thu, 17 Sep 2020 13:51:34 +0000 (15:51 +0200)] 
mkosi: update rules in mkosi.default.networkd-test boot

We need to include ninja-build in the packages list because meson doesn't
depend on it (because it supports other backends too).

Also drop xz-devel, it's not crucial for the test.

3 years agohwdb: Chuwi Hi12 (#17042)
ErrantSpore [Thu, 17 Sep 2020 14:52:52 +0000 (08:52 -0600)] 
hwdb: Chuwi Hi12 (#17042)

Different bios version includes different pn. Submitted change fixed my inverted screen after reboot.
I've stepped back to the bios version 5.11 28.04.2016 in an attempt to troubleshoot Windows Hello locking the sign
in on reboot. The screen again rotated, but 90 degrees to the right. I created a new hwdb line to resolve that issue. The bios version changes the dmi string including the svn and pn.

3 years agonspawn: add --console=autopipe mode 17082/head
Lennart Poettering [Thu, 17 Sep 2020 14:26:14 +0000 (16:26 +0200)] 
nspawn: add --console=autopipe mode

By default we'll run a container in --console=interactive and
--console=read-only mode depending if we are invoked on a tty or not so
that the container always gets a /dev/console allocated, i.e is always
suitable to run a full init system /as those typically expect a
/dev/console to exist).

With the new --console=autopipe mode we do something similar, but
slightly different: when not invoked on a tty we'll use --console=pipe.
This means, if you invoke some tool in a container with this you'll get
full inetractivity if you invoke it on a tty but things will also be
very nicely pipeable. OTOH you cannot invoke a full init system like
this, because you might or might not become a /dev/console this way...

Prompted-by: #17070
(I named this "autopipe" rather than "auto" or so, since the default
mode probably should be named "auto" one day if we add a name for it,
and this is so similar to "auto" except that it uses pipes in the
non-tty case).

3 years agonspawn: don't become TTY controller just to undo it later again
Lennart Poettering [Wed, 16 Sep 2020 20:34:43 +0000 (22:34 +0200)] 
nspawn: don't become TTY controller just to undo it later again

Instead of first becoming a controlling process of the payload pty
as side effect of opening it (without O_NOCTTY), and then possibly
dropping it again, let's do it cleanly an reverse the logic: let's open
the pty without becoming its controller first. Only after everything
went the way we wanted it to go become the controller explicitly.

This has the benefit that the PID 1 stub process we run (as effect of
--as-pid2) doesn't have to lose the tty explicitly, but can just
continue running with things. And we explicitly make the tty controlling
right before invoking actual payload.

In order to make sure everything works as expected validate that the
stub PID 1 in the container really has no conrolling tty by issuing the
TIOCNOTTY tty and expecting ENOTTY, and log about it.

This shouldn't change behaviour much, it just makes thins a bit cleaner,
in particular as we'll not trigger SIGHUP on ourselves (since we are
controller and session leader) due to TIOCNOTTY which we then have to
explicitly ignore.

3 years agonspawn: fix fd leak on failure path
Lennart Poettering [Wed, 16 Sep 2020 20:16:10 +0000 (22:16 +0200)] 
nspawn: fix fd leak on failure path

3 years agonspawn: print log notice when we are invoked from a tty but in "pipe" mode
Lennart Poettering [Wed, 16 Sep 2020 20:12:29 +0000 (22:12 +0200)] 
nspawn: print log notice when we are invoked from a tty but in "pipe" mode

If people do this then things are weird, and they should probably use
--console=interactive (i.e. the default) instead.

Prompted-by: #17070
3 years agonspawn: check return of setsid()
Lennart Poettering [Wed, 16 Sep 2020 20:11:48 +0000 (22:11 +0200)] 
nspawn: check return of setsid()

Let's verify that everything works the way we expect it to work, hence
check setsid() return code.

3 years agoTranslated using Weblate (Italian)
Milo Casagrande [Tue, 15 Sep 2020 08:29:26 +0000 (10:29 +0200)] 
Translated using Weblate (Italian)

Currently translated at 100.0% (187 of 187 strings)

Co-authored-by: Milo Casagrande <milo@milo.name>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/it/
Translation: systemd/master

3 years agopo: update Japanese translation
Yu Watanabe [Thu, 17 Sep 2020 11:51:15 +0000 (20:51 +0900)] 
po: update Japanese translation

3 years agomkosi: stop pulling in libtool
Zbigniew Jędrzejewski-Szmek [Thu, 17 Sep 2020 13:50:59 +0000 (15:50 +0200)] 
mkosi: stop pulling in libtool

Not useful since 72cdb3e783.

3 years agodissect: wrap verity settings in new VeritySettings structure
Lennart Poettering [Tue, 15 Sep 2020 20:09:08 +0000 (22:09 +0200)] 
dissect: wrap verity settings in new VeritySettings structure

Just some refactoring: let's place the various verity related parameters
in a common structure, and pass that around instead of the individual
parameters.

Also, let's load the PKCS#7 signature data when finding metadata
right-away, instead of delaying this until we need it. In all cases we
call this there's not much time difference between the metdata finding
and the loading, hence this simplifies things and makes sure root hash
data and its signature is now always acquired together.

3 years agoMerge pull request #16929 from ssahani/network-bare-udp
Yu Watanabe [Thu, 17 Sep 2020 11:34:15 +0000 (20:34 +0900)] 
Merge pull request #16929 from ssahani/network-bare-udp

network: introduce Bare UDP Tunnelling

3 years agoMerge pull request #17073 from ssahani/vxlan
Yu Watanabe [Thu, 17 Sep 2020 11:33:14 +0000 (20:33 +0900)] 
Merge pull request #17073 from ssahani/vxlan

network: Allow vxlan to be created without .network file

3 years agotest-network: add test for bridge MDB entries on bridge master 17085/head
Yu Watanabe [Thu, 17 Sep 2020 05:32:03 +0000 (14:32 +0900)] 
test-network: add test for bridge MDB entries on bridge master

3 years agonetwork: old kernel may not support to configure bridge MDB entries on bridge master
Yu Watanabe [Thu, 17 Sep 2020 09:02:09 +0000 (18:02 +0900)] 
network: old kernel may not support to configure bridge MDB entries on bridge master

3 years agonetwork: allow to configure bridge MDB entries on bridge master
Yu Watanabe [Thu, 17 Sep 2020 05:09:17 +0000 (14:09 +0900)] 
network: allow to configure bridge MDB entries on bridge master

3 years agotest-network: add tests for FQ-PIE 15050/head
Yu Watanabe [Thu, 17 Sep 2020 08:18:48 +0000 (17:18 +0900)] 
test-network: add tests for FQ-PIE

3 years agonetwork: tc: refuse to set 0 for FlowQueuePIE.PacketLimit=
Yu Watanabe [Thu, 17 Sep 2020 08:16:49 +0000 (17:16 +0900)] 
network: tc: refuse to set 0 for FlowQueuePIE.PacketLimit=

3 years agoudev: if a tablet has BTN_0, label it as ID_INPUT_TABLET_PAD
Peter Hutterer [Thu, 17 Sep 2020 03:06:19 +0000 (13:06 +1000)] 
udev: if a tablet has BTN_0, label it as ID_INPUT_TABLET_PAD

Graphics tablet devices comprise multiple event nodes, usually a Pen, Finger
and Pad node (that's how the kernel postfixes them). Pen and Pad are labeled
as ID_INPUT_TABLET but the pad doesn't actually send stylus events - it
doesn't usually have BTN_TOOL_PEN, merely BTN_STYLUS.

For the last several years, libwacom has set ID_INPUT_TABLET_PAD for all pad
devices known to it based on vid/pid and a "* Pad" name match. That does not
cover devices not in libwacom. libinput relies on ID_INPUT_TABLET_PAD to
initialize the pad backend.

We can't drop ID_INPUT_TABLET without breaking userspace, but we can add
ID_INPUT_TABLET_PAD ourselves - where a device has BTN_0 in addition to
BTN_STYLUS, let's add it as a pad.

There are some devices (notably: bamboos) that use BTN_LEFT instead of BTN_0
but they are relatively rare and there's a risk of mislabeling those devices,
so let's just stick with BTN_0 only.

3 years agonetwork: TC - introduce fq pie
Susant Sahani [Mon, 9 Mar 2020 13:03:49 +0000 (14:03 +0100)] 
network: TC - introduce fq pie

see https://patchwork.ozlabs.org/patch/1233253/

3 years agosd-netlink: add fq pie options
Susant Sahani [Mon, 9 Mar 2020 13:03:08 +0000 (14:03 +0100)] 
sd-netlink: add fq pie options

3 years agotest-network: add tests for BareUDP netdev 16929/head
Yu Watanabe [Thu, 17 Sep 2020 06:31:54 +0000 (15:31 +0900)] 
test-network: add tests for BareUDP netdev

3 years agoFix compilation without libcryptsetup (#17071)
masmullin2000 [Thu, 17 Sep 2020 07:07:03 +0000 (03:07 -0400)] 
Fix compilation without libcryptsetup (#17071)

3 years agomeson: make "developer" mode the default
Zbigniew Jędrzejewski-Szmek [Thu, 17 Sep 2020 07:02:16 +0000 (09:02 +0200)] 
meson: make "developer" mode the default

This means that the dbus doc consistency checks will be enabled by default,
including in the CI. I think that will work better than current state where
people do not enable them and them follow-up patches for the docs like the
parent commit must be had.

3 years agoman: update autogenerated dbus docs
Zbigniew Jędrzejewski-Szmek [Wed, 16 Sep 2020 16:30:31 +0000 (18:30 +0200)] 
man: update autogenerated dbus docs

Follow-up for 9df2cdd8ec.

3 years agotest-network: add test for Independent= for vxlan 17073/head
Yu Watanabe [Thu, 17 Sep 2020 06:58:41 +0000 (15:58 +0900)] 
test-network: add test for Independent= for vxlan

3 years agonetwork: Allow vxlan to be created without .network file
Susant Sahani [Wed, 16 Sep 2020 01:03:30 +0000 (01:03 +0000)] 
network: Allow vxlan to be created without .network file