]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agosd-bus: Add sd_bus_set_fd documentation along with some cleanups.
Daan De Meyer [Sun, 15 Mar 2020 20:10:37 +0000 (21:10 +0100)] 
sd-bus: Add sd_bus_set_fd documentation along with some cleanups.

4 years agotest: wait a bit after starting the test service
Frantisek Sumsal [Sat, 14 Mar 2020 09:36:17 +0000 (10:36 +0100)] 
test: wait a bit after starting the test service

otherwise we might end up being faster than the unit itself, causing
unexpected fails, like:

```
testsuite.sh[297]: + systemctl start issue_14566_test
testsuite.sh[297]: + systemctl status issue_14566_test
testsuite.sh[304]: ● issue_14566_test.service - Issue 14566 Repro
testsuite.sh[304]:      Loaded: loaded (/etc/systemd/system/issue_14566_test.service; static; vendor preset: enabled)
testsuite.sh[304]:      Active: active (running) since Sat 2020-03-14 02:02:23 UTC; 417ms ago
testsuite.sh[304]:    Main PID: 301 ((repro.sh))
testsuite.sh[304]:       Tasks: 1 (limit: 535)
testsuite.sh[304]:      Memory: 180.0K
testsuite.sh[304]:         CPU: 122ms
testsuite.sh[304]:      CGroup: /system.slice/issue_14566_test.service
testsuite.sh[304]:              └─301 [(repro.sh)]
testsuite.sh[307]: ++ cat /leakedtestpid
testsuite.sh[307]: cat: /leakedtestpid: No such file or directory
testsuite.sh[297]: + leaked_pid=
```

4 years agoMerge pull request #15104 from ssahani/networkctl-qdisc
Yu Watanabe [Mon, 16 Mar 2020 03:14:00 +0000 (12:14 +0900)] 
Merge pull request #15104 from ssahani/networkctl-qdisc

networkctl: Add support to display qdisc

4 years agonetworkctl: Add support to display qdisc 15104/head
Susant Sahani [Fri, 13 Mar 2020 09:54:35 +0000 (10:54 +0100)] 
networkctl: Add support to display qdisc

./networkctl status ens38                                                                                                                                                                ─╯
● 4: ens38
             Link File: /usr/lib/systemd/network/99-default.link
          Network File: /usr/lib/systemd/network/10-ens38.network
                  Type: ether
                 State: routable (configured)
     Alternative Names: enp2s6
                  Path: pci-0000:02:06.0
                Driver: e1000
                Vendor: Intel Corporation
                 Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
            HW Address: 00:0c:29:d2:42:7c (VMware, Inc.)
                   MTU: 1500 (min: 46, max: 16110)
                 QDisc: fq_codel        <============================
  Queue Length (Tx/Rx): 1/1
      Auto negotiation: yes
                 Speed: 1Gbps
                Duplex: full
                  Port: tp
               Address: 192.168.5.123
                        fe80::20c:29ff:fed2:427c

4 years agosd-netlink: Add IFLA_QDISC
Susant Sahani [Fri, 13 Mar 2020 09:54:02 +0000 (10:54 +0100)] 
sd-netlink: Add IFLA_QDISC

4 years agofix journalctl regression (#15099)
Georg Müller [Thu, 12 Mar 2020 19:02:21 +0000 (20:02 +0100)] 
fix journalctl regression (#15099)

This regression was introduced in #14913.

The current_file variable can be NULL, as, for example, with the
following commands:

* journalctl --list-boots
* journalctl -b -1 --no-pager

Since current_file is only checked for pointer equality with f, removing
the assertion is safe here.

4 years agoMerge pull request #15097 from keszybz/job-logging-and-news-update
Anita Zhang [Thu, 12 Mar 2020 20:01:00 +0000 (13:01 -0700)] 
Merge pull request #15097 from keszybz/job-logging-and-news-update

Job logging and news update

4 years agoshared/ask-password-api: do not show hint on echo
Christian Hesse [Wed, 11 Mar 2020 19:39:07 +0000 (20:39 +0100)] 
shared/ask-password-api: do not show hint on echo

Giving --echo to systemd-ask-password allows to echo the user input instead
of masking it. This is useful when querying for usernames or similar.

Showing "(press TAB for no echo)" does not make sense there, so do not.
Note that pressing TAB or ESC still disables echo.

4 years agofstab-generator: handle systemd.swap= command-line argument
nabijaczleweli [Sat, 21 Dec 2019 06:17:59 +0000 (07:17 +0100)] 
fstab-generator: handle systemd.swap= command-line argument

Don't generate swap units if set to false

The inverse of this argument is present as "noswap" on Debian sysvinit

Ref:
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/vars.sh#L34
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/src/initscripts/etc/init.d/mountall.sh#L78

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

4 years agoNEWS: add late note about job trimming issue 15097/head
Zbigniew Jędrzejewski-Szmek [Thu, 12 Mar 2020 14:21:42 +0000 (15:21 +0100)] 
NEWS: add late note about job trimming issue

Closes #15091.

4 years agocore: log an info line about the default target
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 12:40:17 +0000 (13:40 +0100)] 
core: log an info line about the default target

If the default target is not specified on the kernel command line, it
may not be obvious what we are booting into. See for example
https://github.com/systemd/systemd/issues/15062#issuecomment-597577464.

4 years agoMerge pull request #15095 from yuwata/tc-tiny-fixes
Yu Watanabe [Thu, 12 Mar 2020 12:17:10 +0000 (21:17 +0900)] 
Merge pull request #15095 from yuwata/tc-tiny-fixes

network, man: tiny trivial cleanups

4 years agolinux: update headers from v5.6
Yu Watanabe [Thu, 12 Mar 2020 06:10:36 +0000 (15:10 +0900)] 
linux: update headers from v5.6

4 years agoman: use include directive for Parent= or friends 15095/head
Yu Watanabe [Thu, 12 Mar 2020 09:33:15 +0000 (18:33 +0900)] 
man: use include directive for Parent= or friends

4 years agonetwork: rename type name to ProportionalIntegralControllerEnhanced
Yu Watanabe [Thu, 12 Mar 2020 09:18:18 +0000 (18:18 +0900)] 
network: rename type name to ProportionalIntegralControllerEnhanced

4 years agonamespace: fix MAC labels of /dev when PrivateDevices=yes
Topi Miettinen [Tue, 18 Feb 2020 11:18:39 +0000 (13:18 +0200)] 
namespace: fix MAC labels of /dev when PrivateDevices=yes

Without changing the SELinux label for private /dev of a service, it will take
a generic file system label:
system_u:object_r:tmpfs_t:s0

After this change it is the same as without `PrivateDevices=yes`:
system_u:object_r:device_t:s0

This helps writing SELinux policies, as the same rules for `/dev` will apply
despite any `PrivateDevices=yes` setting.

4 years agoMerge pull request #15084 from yuwata/network-tc-next
Yu Watanabe [Thu, 12 Mar 2020 08:17:26 +0000 (17:17 +0900)] 
Merge pull request #15084 from yuwata/network-tc-next

network: tc-next take2

4 years agotest-network: add a test case for HHF 15084/head
Yu Watanabe [Wed, 11 Mar 2020 17:40:29 +0000 (02:40 +0900)] 
test-network: add a test case for HHF

4 years agonetwork: TC - introduce HHF
Susant Sahani [Wed, 11 Mar 2020 10:55:13 +0000 (11:55 +0100)] 
network: TC - introduce HHF

Please see https://lwn.net/Articles/577208/

4 years agosd-netlink: add HHF netlink property
Susant Sahani [Wed, 11 Mar 2020 10:54:26 +0000 (11:54 +0100)] 
sd-netlink: add HHF netlink property

4 years agotest-network: add a test case for PFIFOFast
Yu Watanabe [Wed, 11 Mar 2020 17:28:59 +0000 (02:28 +0900)] 
test-network: add a test case for PFIFOFast

4 years agonetwork: TC - introduce pfifo_fast
Susant Sahani [Wed, 11 Mar 2020 10:02:20 +0000 (11:02 +0100)] 
network: TC - introduce pfifo_fast

pfifo_fast - three-band first in, first out queue

Please see https://linux.die.net/man/8/tc-pfifo_fast

4 years agotest-network: add a test case for PFIFOHeadDrop
Yu Watanabe [Wed, 11 Mar 2020 17:09:06 +0000 (02:09 +0900)] 
test-network: add a test case for PFIFOHeadDrop

4 years agonetwork: TC - introduce pfifo_head_drop
Susant Sahani [Tue, 10 Mar 2020 12:19:56 +0000 (13:19 +0100)] 
network: TC - introduce pfifo_head_drop

This adds the required changes to gain access to
the head drop classfull queuing discipline named
pfifo_head_drop.

4 years agotest-network: add a test case for BFIFO
Yu Watanabe [Wed, 11 Mar 2020 16:58:21 +0000 (01:58 +0900)] 
test-network: add a test case for BFIFO

4 years agonetwork: TC - introduce BFIFO
Susant Sahani [Tue, 10 Mar 2020 11:53:32 +0000 (12:53 +0100)] 
network: TC - introduce BFIFO

bfifo - Byte limited First In, First Out queue

4 years agotest-network: add a test case for DRR
Yu Watanabe [Wed, 11 Mar 2020 15:58:25 +0000 (00:58 +0900)] 
test-network: add a test case for DRR

4 years agonetwork: tc: introduce DRR class
Yu Watanabe [Wed, 11 Mar 2020 15:36:08 +0000 (00:36 +0900)] 
network: tc: introduce DRR class

4 years agonetwork: TC - introduce DRR
Susant Sahani [Tue, 10 Mar 2020 07:46:40 +0000 (08:46 +0100)] 
network: TC - introduce DRR

Introduce the Deficit Round Robin Scheduler is a classful queuing discipline as
a more flexible replacement for Stochastic Fairness Queuing.

http://man7.org/linux/man-pages/man8/tc-drr.8.html

4 years agosd-netlink: add DRR netlink properties
Susant Sahani [Tue, 10 Mar 2020 07:45:54 +0000 (08:45 +0100)] 
sd-netlink: add DRR netlink properties

4 years agotest-network: add test case for PIE
Yu Watanabe [Wed, 11 Mar 2020 13:48:10 +0000 (22:48 +0900)] 
test-network: add test case for PIE

4 years agonetwork: tc- introduce PIE
Susant Sahani [Mon, 9 Mar 2020 09:48:03 +0000 (10:48 +0100)] 
network: tc- introduce PIE

Proportional Integral controller-Enhanced (PIE) is a control
theoretic active queue management scheme. It is based on the
proportional integral controller but aims to control delay.

http://man7.org/linux/man-pages/man8/tc-pie.8.html

4 years agosd-netlink: add support for PIE
Susant Sahani [Mon, 9 Mar 2020 09:47:17 +0000 (10:47 +0100)] 
sd-netlink: add support for PIE

4 years agoMerge pull request #15081 from mrc0mmand/systemctl-hide-glyph-column
Anita Zhang [Wed, 11 Mar 2020 18:12:21 +0000 (11:12 -0700)] 
Merge pull request #15081 from mrc0mmand/systemctl-hide-glyph-column

systemctl: hide the 'glyph' column when --no-legend is requested

4 years agoMerge pull request #14901 from w-simon/fix-tests
Chris Down [Wed, 11 Mar 2020 15:01:20 +0000 (15:01 +0000)] 
Merge pull request #14901 from w-simon/fix-tests

test: fix some failures in test-cgroup

4 years agosystemctl: hide the 'glyph' column when --no-legend is requested 15081/head
Frantisek Sumsal [Wed, 11 Mar 2020 12:28:51 +0000 (13:28 +0100)] 
systemctl: hide the 'glyph' column when --no-legend is requested

Fixes: #15077
4 years agoformat-table: allow hiding a specific column
Frantisek Sumsal [Wed, 11 Mar 2020 12:27:43 +0000 (13:27 +0100)] 
format-table: allow hiding a specific column

without having to specify the whole display map

4 years agocore: shorten local variable names in do_queue_default_job()
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 12:38:14 +0000 (13:38 +0100)] 
core: shorten local variable names in do_queue_default_job()

There is really no risk of confusion here: it's a simple function
that queues one job.

4 years agohomed: replace "home directory" with "home area" in a few places
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 12:07:10 +0000 (13:07 +0100)] 
homed: replace "home directory" with "home area" in a few places

4 years agoman: add a tiny bit of markup
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 08:10:22 +0000 (09:10 +0100)] 
man: add a tiny bit of markup

4 years agocore: transition to FINAL_SIGTERM state after ExecStopPost=
Anita Zhang [Sat, 25 Jan 2020 15:46:16 +0000 (16:46 +0100)] 
core: transition to FINAL_SIGTERM state after ExecStopPost=

Fixes #14566

4 years agojournalctl: show duplicate entries if they are from the same file (#14898)
Georg Müller [Thu, 20 Feb 2020 18:19:41 +0000 (19:19 +0100)] 
journalctl: show duplicate entries if they are from the same file (#14898)

When having a service which intentionally outputs multiple equal lines,
all these messages might be inserted with the same timestamp.

journalctl has a mechanism to avoid duplicate lines, which might be in
different journal files.

This patch allows duplicate lines, if they are from the same file.

4 years agoMerge pull request #15063 from topimiettinen/execute-dont-create-tmp-dirs-if-inaccessible
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 08:06:10 +0000 (09:06 +0100)] 
Merge pull request #15063 from topimiettinen/execute-dont-create-tmp-dirs-if-inaccessible

Execute: don't create temp dirs if inaccessible

4 years agoudev: add debug logs for delaying and delegation of events
Uwe Kleine-König [Mon, 9 Mar 2020 21:02:30 +0000 (22:02 +0100)] 
udev: add debug logs for delaying and delegation of events

Up to now each uevent logs the following things at debug level:

 - Device is queued
 - Processing device
 - Device processed

However when the device is queued it might still have to wait for
earlier devices to be processed before being able to start being
processed itself. When analysing logs this dependency information is
quite cruicial, so add respective debug log calls.

4 years agoudev: fix SECLABEL{selinux} issue (#15064)
Valery0xff [Wed, 11 Mar 2020 00:20:36 +0000 (02:20 +0200)] 
udev: fix SECLABEL{selinux} issue (#15064)

Add SECLABEL{selinux}="some value" cause udevadm crash
systemd-udevd[x]: Worker [x] terminated by signal 11 (SEGV)

It happens since 25de7aa7b90 (Yu Watanabe 2019-04-25 01:21:11 +0200)
when udev rules processing changed to token model. Yu forgot store
attr to SECLABEL token so fix it.

4 years agoModified line 197 for readability. (#15071)
dolphrundgren [Tue, 10 Mar 2020 22:22:42 +0000 (16:22 -0600)] 
Modified line 197 for readability. (#15071)

* Dropped "of some sort" from line 197 of man/systemd.xml

4 years agomeson: mark test-cgroup as standard 14901/head
Zbigniew Jędrzejewski-Szmek [Tue, 10 Mar 2020 10:22:11 +0000 (11:22 +0100)] 
meson: mark test-cgroup as standard

4 years agotest-cgroup: do not require root to pass
Zbigniew Jędrzejewski-Szmek [Tue, 10 Mar 2020 10:21:33 +0000 (11:21 +0100)] 
test-cgroup: do not require root to pass

Nowadays with delegation to the user instance, we can make this work as non-root
easily. If we still get access denied, just skip the test.

4 years agoexecute: don't create /tmp and /var/tmp if both are inaccessible 15063/head
Topi Miettinen [Tue, 10 Mar 2020 13:36:51 +0000 (15:36 +0200)] 
execute: don't create /tmp and /var/tmp if both are inaccessible

If both /tmp and either /var/tmp or whole /var are inaccessible, there's no
need to create the temporary directories.

4 years agonamespace: ignore prefix chars when comparing paths
Topi Miettinen [Tue, 10 Mar 2020 14:43:10 +0000 (16:43 +0200)] 
namespace: ignore prefix chars when comparing paths

Other callers of path_strv_contains() or PATH_IN_SET() don't seem to handle
paths prefixed with -+.

4 years agotest-cgroup: fix memleak
Zbigniew Jędrzejewski-Szmek [Tue, 10 Mar 2020 09:54:43 +0000 (10:54 +0100)] 
test-cgroup: fix memleak

https://github.com/systemd/systemd/pull/14901#issuecomment-587924705.

4 years agobasic/cgroup-util: modernize cg_split_spec()
Zbigniew Jędrzejewski-Szmek [Tue, 10 Mar 2020 09:50:27 +0000 (10:50 +0100)] 
basic/cgroup-util: modernize cg_split_spec()

Those cryptic one letter variable names, yuck!

4 years agotest-cgroup: split into functions as usual
Zbigniew Jędrzejewski-Szmek [Tue, 10 Mar 2020 09:36:01 +0000 (10:36 +0100)] 
test-cgroup: split into functions as usual

4 years agodissect-image: avoid scanning partitions
Topi Miettinen [Mon, 9 Mar 2020 12:01:06 +0000 (14:01 +0200)] 
dissect-image: avoid scanning partitions

In case the dissected image has a filesystem, don't scan for partitions. This
avoids problems with services using a `RootImage=` in early boot when udevd is
not yet started.

4 years agomount-setup: make /dev noexec
Topi Miettinen [Sat, 7 Mar 2020 19:19:09 +0000 (21:19 +0200)] 
mount-setup: make /dev noexec

/dev used to be mounted with "exec" flag due to /dev/MAKEDEV script but that's
history and it's now located in /sbin. mmap() with file descriptor to
"/dev/zero" (instead of modern mmap(,,,MAP_ANON...))  will still work.

4 years agotest: ignore IAB capabilities in `test-execute`
Frantisek Sumsal [Mon, 9 Mar 2020 10:00:58 +0000 (11:00 +0100)] 
test: ignore IAB capabilities in `test-execute`

libcap v2.33 introduces a new capability set called IAB[0] which is shown
in the output of `capsh --print` and interferes with the test checks. Let's
drop the IAB set from the output, for now, to mitigate this.

This could be (and probably should be) replaced in the future by the
newly introduced testing options[1][2] in libcap v2.32, namely:
    --has-p=xxx
    --has-i=xxx
    --has-a=xxx

but this needs to wait until the respective libcap version gets a wider
adoption. Until then, let's stick with the relatively ugly sed.

Fixes: #15046
[0] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=943b011b5e53624eb9cab4e96c1985326e077cdd
[1] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=588d0439cb6495b03f0ab9f213f0b6b339e7d4b7
[2] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=e7709bbc1c4712f2ddfc6e6f42892928a8a03782

4 years agoMerge pull request #15033 from yuwata/state-directory-migrate-issue
Zbigniew Jędrzejewski-Szmek [Mon, 9 Mar 2020 16:34:55 +0000 (17:34 +0100)] 
Merge pull request #15033 from yuwata/state-directory-migrate-issue

execute: Fix migration from DynamicUser=yes to no

4 years agoanalyze: fix table time output
Haochen Tong [Mon, 9 Mar 2020 09:43:09 +0000 (10:43 +0100)] 
analyze: fix table time output

4 years agoSupport compiling with clang and gnu11 standard
Denis Pronin [Sun, 8 Mar 2020 20:57:07 +0000 (23:57 +0300)] 
Support compiling with clang and gnu11 standard

Signed-off-by: Denis Pronin <dannftk@yandex.ru>
4 years agomeson.build: drop unused SYSTEMD_SLEEP_BINARY_PATH
Florian Klink [Mon, 9 Mar 2020 08:06:51 +0000 (09:06 +0100)] 
meson.build: drop unused SYSTEMD_SLEEP_BINARY_PATH

seems usage was dropped in ddcbc8737873ca1904562d7d3ca3de9946e2f889.

4 years agoTypo fix
bemarek [Sun, 8 Mar 2020 21:39:01 +0000 (22:39 +0100)] 
Typo fix

4 years agoUpdate Croatian translation (#15042)
gogogogi [Sun, 8 Mar 2020 21:06:12 +0000 (22:06 +0100)] 
Update Croatian translation (#15042)

4 years agoboot: Ensure ARM UEFI binary does not contain FP/SIMD instructions
James T. Lee [Sat, 7 Mar 2020 23:05:34 +0000 (18:05 -0500)] 
boot: Ensure ARM UEFI binary does not contain FP/SIMD instructions

ARM toolchains will sometimes optimize otherwise floating-point-free
code with floating point and SIMD instructions.  This was happening with
systemd-bootarm.efi and it was causing U-Boot to crash and reset the
CPU.  U-Boot does not support the ARM VFP floating point coprocessor,
which is an optional piece of hardware anyway [1].

Ensure the compiler does not generate FP/SIMD instructions by supplying
the `-mgeneral-regs-only` option when building for ARM [2].

The other option you often see to solve these problems is
`-msoft-float`, but that changes the ABI and prevents linking with
libgnuefi.

[1] https://lists.denx.de/pipermail/u-boot/2011-February/087736.html
[2] https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#index-mgeneral-regs-only-1

4 years agoMerge pull request #15036 from yuwata/can-termination-mod
Yu Watanabe [Sat, 7 Mar 2020 10:11:03 +0000 (19:11 +0900)] 
Merge pull request #15036 from yuwata/can-termination-mod

network: add CAN Termination tristate option

4 years agoMerge pull request #15038 from lucaswerkmeister/docs
Yu Watanabe [Sat, 7 Mar 2020 10:10:04 +0000 (19:10 +0900)] 
Merge pull request #15038 from lucaswerkmeister/docs

docs: fix misplaced close-paren

4 years agodocs: fix typo 15038/head
Lucas Werkmeister [Fri, 6 Mar 2020 21:58:53 +0000 (22:58 +0100)] 
docs: fix typo

4 years agodocs: fix misplaced close-paren
Lucas Werkmeister [Fri, 6 Mar 2020 21:12:37 +0000 (22:12 +0100)] 
docs: fix misplaced close-paren

I assume it’s supposed to be “see Home Directories for details” and not
“… and embeds these JSON records directly in the home directory images …
for details”, but the previous text suggested the latter reading to me.

4 years agonetwork: add CAN Termination tristate option 15036/head
Matt Ranostay [Wed, 12 Feb 2020 02:13:45 +0000 (18:13 -0800)] 
network: add CAN Termination tristate option

4 years agolinux: add can/netlink.h
Yu Watanabe [Fri, 6 Mar 2020 16:51:28 +0000 (01:51 +0900)] 
linux: add can/netlink.h

4 years agoMerge pull request #14890 from yuwata/network-tc-next
Yu Watanabe [Fri, 6 Mar 2020 16:44:15 +0000 (01:44 +0900)] 
Merge pull request #14890 from yuwata/network-tc-next

network: tc-next

4 years agoudev: support to update flow control parameter
Yu Watanabe [Fri, 7 Feb 2020 11:06:44 +0000 (20:06 +0900)] 
udev: support to update flow control parameter

Closes #14770.

4 years agonetwork: Add support to ignore foreign routes
Susant Sahani [Tue, 11 Feb 2020 12:35:11 +0000 (13:35 +0100)] 
network: Add support to ignore foreign routes

4 years agonetwork: add setting to support RA without DHCPv6 client
Yu Watanabe [Sat, 15 Feb 2020 16:32:49 +0000 (01:32 +0900)] 
network: add setting to support RA without DHCPv6 client

Closes #13991.

4 years agonetwork: Allow DHCPv6 client to start without router's managed flag.
Susant Sahani [Sat, 15 Feb 2020 12:51:34 +0000 (13:51 +0100)] 
network: Allow DHCPv6 client to start without router's managed flag.

4 years agosystemd-resolved: use hostname for certificate validation in DoT
Jörg Thalheim [Tue, 3 Mar 2020 23:31:25 +0000 (23:31 +0000)] 
systemd-resolved: use hostname for certificate validation in DoT

Widely accepted certificates for IP addresses are expensive and only
affordable for larger organizations. Therefore if the user provides
the hostname in the DNS= option, we should use it instead of the IP
address.

4 years agoMerge pull request #14893 from benzea/benzea/generator-path-environment-variables
Chris Down [Fri, 6 Mar 2020 16:15:08 +0000 (16:15 +0000)] 
Merge pull request #14893 from benzea/benzea/generator-path-environment-variables

Generator path environment variables

4 years agoMerge pull request #14904 from ssahani/dhcp-server-force-renew
Chris Down [Fri, 6 Mar 2020 16:14:30 +0000 (16:14 +0000)] 
Merge pull request #14904 from ssahani/dhcp-server-force-renew

network: Introduce force renew for DHCP server

4 years agoMerge pull request #14956 from ssahani/delegated-prefix-14474
Chris Down [Fri, 6 Mar 2020 16:13:13 +0000 (16:13 +0000)] 
Merge pull request #14956 from ssahani/delegated-prefix-14474

nettwork: introduce delegated prefix assign

4 years agoMerge pull request #15010 from cgzones/selinux_reload_cache_enforce
Chris Down [Fri, 6 Mar 2020 16:12:48 +0000 (16:12 +0000)] 
Merge pull request #15010 from cgzones/selinux_reload_cache_enforce

SELinux: add trigger for policy reload and cache enforced status

4 years agocore: Fix resolution of nested DM devices for cgroups
Benjamin Berg [Thu, 5 Mar 2020 10:35:45 +0000 (11:35 +0100)] 
core: Fix resolution of nested DM devices for cgroups

When using the cgroups IO controller, the device that is controlled
should always be the toplevel block device. This did not get resolved
correctly for an LVM volume inside a LUKS device, because the code would
only resolve one level of indirection.

Fix this by recursively looking up the originating block device for DM
devices.

Resolves: #15008

4 years agoFix typo on initrd-root-device.target
antznin [Fri, 6 Mar 2020 12:51:28 +0000 (13:51 +0100)] 
Fix typo on initrd-root-device.target

4 years agoMerge pull request #15034 from keszybz/hwdb-update v245
Zbigniew Jędrzejewski-Szmek [Fri, 6 Mar 2020 12:38:52 +0000 (13:38 +0100)] 
Merge pull request #15034 from keszybz/hwdb-update

4 years agoNEWS: final contributor update for v245
Zbigniew Jędrzejewski-Szmek [Fri, 6 Mar 2020 12:25:21 +0000 (13:25 +0100)] 
NEWS: final contributor update for v245

4 years agoMerge pull request #15022 from keszybz/make-units-remain-after-exit
Yu Watanabe [Fri, 6 Mar 2020 12:14:36 +0000 (21:14 +0900)] 
Merge pull request #15022 from keszybz/make-units-remain-after-exit

Make units remain after exit

4 years agotest: add a test case for migrating DynamicUser=yes to no 15033/head
Yu Watanabe [Fri, 6 Mar 2020 08:34:55 +0000 (17:34 +0900)] 
test: add a test case for migrating DynamicUser=yes to no

4 years agoexecute: Fix migration from DynamicUser=yes to no
Yu Watanabe [Fri, 6 Mar 2020 06:56:28 +0000 (15:56 +0900)] 
execute: Fix migration from DynamicUser=yes to no

Closes #12131.

4 years agohwdb: update for v245 15034/head
Zbigniew Jędrzejewski-Szmek [Fri, 6 Mar 2020 11:41:29 +0000 (12:41 +0100)] 
hwdb: update for v245

4 years agounits: skip modprobe@.service if the unit appears to be already loaded
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 06:20:49 +0000 (07:20 +0100)] 
units: skip modprobe@.service if the unit appears to be already loaded

Possible alternative to #14819.

For me, setting RemainAfterExit=yes would be OK, but if people think that it
might cause issues, then this could be a reasonable alternative that still
let's us skip the invocation of the separate binary.

4 years agotreewide: more portable bash shebangs
Jörg Thalheim [Wed, 4 Mar 2020 09:35:06 +0000 (09:35 +0000)] 
treewide: more portable bash shebangs

As in 2a5fcfae024ffc370bb780572279f45a1da3f946
and in 3e67e5c9928f8b1e1c5a63def88d53ed1fed12eb
using /usr/bin/env allows bash to be looked up in PATH
rather than being hard-coded.

As with the previous changes the same arguments apply
- distributions have scripts to rewrite shebangs on installation and
  they know what locations to rely on.
- For tests/compilation we should rather rely on the user to have setup
  there PATH correctly.

In particular this makes testing from git easier on NixOS where do not provide
/bin/bash to improve compose-ability.

4 years agoUse Finished instead of Started for Type=oneshot services (#14851)
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 16:24:19 +0000 (17:24 +0100)] 
Use Finished instead of Started for Type=oneshot services (#14851)

UnitStatusMessageFormats.finished_job, if present,
will be called with the same arguments as
job_get_done_status_message_format() to provide a format string
appropriate for the context

This commit replaces "Started" with "Finished" for started oneshot
units, as mentioned in the referenced issue

Closes #2458.

4 years agounits: make systemd-network-generator.service stay around 15022/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 07:08:31 +0000 (08:08 +0100)] 
units: make systemd-network-generator.service stay around

Once done, its done, and shouldn't be run again.

4 years agoMerge pull request #15013 from systemd/systemctl-list-dependencies
Yu Watanabe [Thu, 5 Mar 2020 11:54:58 +0000 (20:54 +0900)] 
Merge pull request #15013 from systemd/systemctl-list-dependencies

systemctl list-dependencies: fix duplicate output and take multiple arguments

4 years agoMerge pull request #15023 from keszybz/network-generator-man
Yu Watanabe [Thu, 5 Mar 2020 11:54:32 +0000 (20:54 +0900)] 
Merge pull request #15023 from keszybz/network-generator-man

Man page for systemd-network-generator

4 years agosystemctl: make list-dependencies take multiple arguments 15013/head
Zbigniew Jędrzejewski-Szmek [Wed, 4 Mar 2020 08:55:29 +0000 (09:55 +0100)] 
systemctl: make list-dependencies take multiple arguments

Other similar commands do, no reason not to do this here too.

4 years agoman: mention networkctl in the networkd man page 15023/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 07:20:31 +0000 (08:20 +0100)] 
man: mention networkctl in the networkd man page

4 years agoman: add systemd-network-generator.service(8)
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 07:05:24 +0000 (08:05 +0100)] 
man: add systemd-network-generator.service(8)

It's a bit bare-bones, but it should be enough to point the reader in the right
direction.

4 years agounits: restore RemainAfterExit=yes in systemd-vconsole-setup.service
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 06:11:09 +0000 (07:11 +0100)] 
units: restore RemainAfterExit=yes in systemd-vconsole-setup.service

This reverts the second part of 8125e8d38e3aa099c7dce8b0161997b8842aebdc.
The first part was reverted in 750e550eba362096d56a35104c6a32631aa67b8e.
The problem starts when s-v-s.s is pulled in by something that is then pulled
in by sysinit.target. Every time a unit is started, systemd recursively checks
all dependencies, and since sysinit.target is pull in by almost anything, we'll
start s-v-s.s over and over. In particular, plymouth-start.service currently
has Wants=s-v-s.s and After=s-v-s.s.

4 years agopid1: remove unnecessary terminator
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2020 07:06:43 +0000 (08:06 +0100)] 
pid1: remove unnecessary terminator

We specify the number of items as the first argument already.

4 years agoman: update list of supported controllers
Anita Zhang [Thu, 5 Mar 2020 01:31:36 +0000 (17:31 -0800)] 
man: update list of supported controllers

4 years agounits: do not ignore return value from systemd --user
Zbigniew Jędrzejewski-Szmek [Wed, 4 Mar 2020 13:21:37 +0000 (14:21 +0100)] 
units: do not ignore return value from systemd --user

This minus has been there since the unit was added in
d42d27ead91e470cb12986d928441e56c0f543ca. I think the idea was not cause things
to fail if the user instance doesn't work. But ignoring the return value
doesn't seem to be the right way to approach the problem. In particular, if
the program fails to run, we'll get a bogus fail state, see
https://bugzilla.redhat.com/show_bug.cgi?id=1727895#c1:

with the minus:
$ systemctl start user@1002
Job for user@1002.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@1002.service" and "journalctl -xe" for details.

without the minus:
$ systemctl start user@1002
Job for user@1002.service failed because the control process exited with error code.
See "systemctl status user@1002.service" and "journalctl -xe" for details.