]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoudev: tag "leds" and "backlight" devices for association to a seat
Lennart Poettering [Sun, 28 Apr 2019 09:05:07 +0000 (11:05 +0200)] 
udev: tag "leds" and "backlight" devices for association to a seat

These devices do not become user-accessible this way, but they are
logically assigned to a seat, which makes a lot of sense, since they are
human-facing output devices, and such should belong to one.

4 years agomachine-image: openat() doesn't operate on the cwd if the first argument is specified
Lennart Poettering [Fri, 24 May 2019 08:54:09 +0000 (10:54 +0200)] 
machine-image: openat() doesn't operate on the cwd if the first argument is specified

A fix-up for bcb846f30f9ca8f42e79d109706aee9f2032261b.

4 years agoMerge pull request #12430 from poettering/seccomp-kill-process
Zbigniew Jędrzejewski-Szmek [Fri, 24 May 2019 10:17:53 +0000 (12:17 +0200)] 
Merge pull request #12430 from poettering/seccomp-kill-process

use SCMP_ACT_KILL_PROCESS for SystemCallFilters=

4 years agotest-execute: turn off coredump generation in test services 12430/head
Lennart Poettering [Mon, 29 Apr 2019 11:02:32 +0000 (13:02 +0200)] 
test-execute: turn off coredump generation in test services

These services are likely to coredump, and we expect that but aren't
interested in the coredump. Hence let's turn off processing by setting
RLIMIT_CORE to 0/0.

4 years agotest-execute: let's ignore the difference between CLD_KILLED and CLD_DUMPED
Lennart Poettering [Mon, 29 Apr 2019 10:58:55 +0000 (12:58 +0200)] 
test-execute: let's ignore the difference between CLD_KILLED and CLD_DUMPED

Depending on system configuration and whether SCMP_ACT_KILL_PROCESS or
SCMP_ACT_KILL_THREAD is available/used processes might coredump on
specific coredumps or are just plain killed. For our test case the
difference doesn't really matter, hence let's hide it away.

4 years agotest-execute: check exit code before exit status
Lennart Poettering [Mon, 29 Apr 2019 10:54:26 +0000 (12:54 +0200)] 
test-execute: check exit code before exit status

The meaning of the status changes depending on the code, hence let's
always compare the code first, status second.

4 years agoservice: tweak capitalization of unit description
Lennart Poettering [Mon, 29 Apr 2019 10:05:33 +0000 (12:05 +0200)] 
service: tweak capitalization of unit description

4 years agoNEWS: document the new SystemCallFilter= behaviour
Lennart Poettering [Mon, 29 Apr 2019 10:05:16 +0000 (12:05 +0200)] 
NEWS: document the new SystemCallFilter= behaviour

4 years agonspawn: expose the new seccomp actions in the OCI logic
Lennart Poettering [Mon, 29 Apr 2019 10:04:55 +0000 (12:04 +0200)] 
nspawn: expose the new seccomp actions in the OCI logic

4 years agotest: use the new action in our tests
Lennart Poettering [Mon, 29 Apr 2019 10:04:34 +0000 (12:04 +0200)] 
test: use the new action in our tests

This way, we know that it works as intended.

4 years agocore: prefer SCMP_ACT_KILL_PROCESS for SystemCallFilter= behaviour
Lennart Poettering [Mon, 29 Apr 2019 10:03:58 +0000 (12:03 +0200)] 
core: prefer SCMP_ACT_KILL_PROCESS for SystemCallFilter= behaviour

If we have it, use it. It makes a ton more sense.

Fixes: #11967
4 years agoseccomp: add scmp_act_kill_process() helper that returns SCMP_ACT_KILL_PROCESS if...
Lennart Poettering [Mon, 29 Apr 2019 09:54:00 +0000 (11:54 +0200)] 
seccomp: add scmp_act_kill_process() helper that returns SCMP_ACT_KILL_PROCESS if supported

4 years agoMerge pull request #12601 from keszybz/two-log-color-adjustments
Lennart Poettering [Fri, 24 May 2019 08:43:07 +0000 (10:43 +0200)] 
Merge pull request #12601 from keszybz/two-log-color-adjustments

Two log color adjustments

4 years agoMerge pull request #12590 from keszybz/unicode-cmdlines
Lennart Poettering [Fri, 24 May 2019 08:41:30 +0000 (10:41 +0200)] 
Merge pull request #12590 from keszybz/unicode-cmdlines

Use unicode for cmdline printing

4 years agoDrop support for /usr/sbin/halt.local
Michael Biebl [Tue, 14 May 2019 15:40:45 +0000 (17:40 +0200)] 
Drop support for /usr/sbin/halt.local

/usr/sbin/halt.local is a Fedora/Red Hat anachronism from pre-systemd
times.

4 years agomkosi: update to Fedora30 (#12642)
Jóhann B. Guðmundsson [Thu, 23 May 2019 07:39:07 +0000 (07:39 +0000)] 
mkosi: update to Fedora30 (#12642)

4 years agoMerge pull request #12645 from poettering/journal-mmap-einval
Zbigniew Jędrzejewski-Szmek [Thu, 23 May 2019 07:37:54 +0000 (09:37 +0200)] 
Merge pull request #12645 from poettering/journal-mmap-einval

journald: output a proper error message when the journal is used on f…

4 years agoshared/machine-image: avoid passing NULL to log_debug_errno
Mike Gilbert [Wed, 22 May 2019 14:31:01 +0000 (10:31 -0400)] 
shared/machine-image: avoid passing NULL to log_debug_errno

Fixes: https://github.com/systemd/systemd/issues/12534
4 years agoMerge pull request #12618 from yuwata/test-network-improvements
Yu Watanabe [Thu, 23 May 2019 02:17:33 +0000 (11:17 +0900)] 
Merge pull request #12618 from yuwata/test-network-improvements

network: several cleanups

4 years agologin: fixup button_open() fd
root [Wed, 22 May 2019 23:10:23 +0000 (02:10 +0300)] 
login: fixup button_open() fd

4 years agoMerge pull request #12647 from cdown/dup
Chris Down [Wed, 22 May 2019 20:44:30 +0000 (16:44 -0400)] 
Merge pull request #12647 from cdown/dup

test: Remove superfluous error check

4 years agotest: Remove superfluous error check 12647/head
Chris Down [Wed, 22 May 2019 19:26:20 +0000 (15:26 -0400)] 
test: Remove superfluous error check

This is already checked above before we set any manager attributes,
immediately after manager_new().

4 years agoMerge pull request #12631 from keszybz/doc-and-error-message-tweaks
Lennart Poettering [Wed, 22 May 2019 17:00:10 +0000 (19:00 +0200)] 
Merge pull request #12631 from keszybz/doc-and-error-message-tweaks

Doc and error message tweaks

4 years agojournald: output a proper error message when the journal is used on fs that doesn... 12645/head
Lennart Poettering [Wed, 22 May 2019 16:48:02 +0000 (18:48 +0200)] 
journald: output a proper error message when the journal is used on fs that doesn't do mmap() properly

Prompted by:

https://lists.freedesktop.org/archives/systemd-devel/2019-May/042708.html

4 years agoMerge pull request #12431 from poettering/tmpfiles-chmod-chown-order
Zbigniew Jędrzejewski-Szmek [Wed, 22 May 2019 15:23:28 +0000 (17:23 +0200)] 
Merge pull request #12431 from poettering/tmpfiles-chmod-chown-order

tmpfiles: run chown() before chmod()

4 years agoman: reword systemd.socket(5) description to avoid "file" when talking about services 12631/head
Zbigniew Jędrzejewski-Szmek [Wed, 22 May 2019 09:09:36 +0000 (11:09 +0200)] 
man: reword systemd.socket(5) description to avoid "file" when talking about services

This text was written a long time ago, when we mostly talked about "service
files".  Strictly speaking, we don't need a "file", because the service might
be just an instance of a template, or an alias to another service. So let's use
the more modern parlance of "service units".

https://bugzilla.redhat.com/show_bug.cgi?id=1623781#c21

4 years agopid1: improve message when setting up namespace fails
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 18:02:34 +0000 (20:02 +0200)] 
pid1: improve message when setting up namespace fails

I covered the most obvious paths: those where there's a clear problem
with a path specified by the user.

Prints something like this (at error level):
May 21 20:00:01.040418 systemd[125871]: bad-workdir.service: Failed to set up mount namespacing: /run/systemd/unit-root/etc/tomcat9/Catalina: No such file or directory
May 21 20:00:01.040456 systemd[125871]: bad-workdir.service: Failed at step NAMESPACE spawning /bin/true: No such file or directory

Fixes #10972.

4 years agoman: tweak description of #12247 a bit
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 17:38:19 +0000 (19:38 +0200)] 
man: tweak description of #12247 a bit

It wasn't really wrong, but maybe we can make it a bit clearer.

Fixes #12247.

4 years agoman: add note that %h/%u/%U are mostly useless
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 17:31:49 +0000 (19:31 +0200)] 
man: add note that %h/%u/%U are mostly useless

Fixes #12389.

4 years agocore: unset HOME=/ that the kernel gives us
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 17:26:12 +0000 (19:26 +0200)] 
core: unset HOME=/ that the kernel gives us

Partially fixes #12389.

%h would return "/" in a machine, but "/root" in a container. Let's fix
this by resetting $HOME to the expected value.

4 years agosd-bus: improve error message for invalid org.freedesktop.DBus.Properties.Set signature
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 15:36:55 +0000 (17:36 +0200)] 
sd-bus: improve error message for invalid org.freedesktop.DBus.Properties.Set signature

Fixes #12551.

4 years agoman: add note which tmpfiles services read which files
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 15:08:35 +0000 (17:08 +0200)] 
man: add note which tmpfiles services read which files

Fixes #12596.

4 years agologin: use _cleanup_ to simplify error handling
Zbigniew Jędrzejewski-Szmek [Wed, 22 May 2019 08:45:13 +0000 (10:45 +0200)] 
login: use _cleanup_ to simplify error handling

When logging about a device, try to include the path to it everywhere in
messages. Also fixes an invalid assert(fd).

Inspired by b2774a3ae692113e1f47a336a6c09bac9cfb49ad.

4 years agoloop-util: invoke LOOP_CTL_GET_FREE in a loop
Lennart Poettering [Tue, 21 May 2019 16:13:55 +0000 (18:13 +0200)] 
loop-util: invoke LOOP_CTL_GET_FREE in a loop

if we don't call it in a loop the device it tells us to open might
already be gone, taken by somebody else racing against us. Hence try a
few times.

4 years agotest-network: drop wait_online() from test_ip6gre_tunnel() 12618/head
Yu Watanabe [Wed, 22 May 2019 09:02:20 +0000 (18:02 +0900)] 
test-network: drop wait_online() from test_ip6gre_tunnel()

4 years agonetwork: unify link_ipv4ll_enabled() and link_ipv4ll_fallback_enabled()
Yu Watanabe [Wed, 22 May 2019 05:49:46 +0000 (14:49 +0900)] 
network: unify link_ipv4ll_enabled() and link_ipv4ll_fallback_enabled()

4 years agotest-network: wait for bridge slave to be enslaved in test_bridge_ignore_carrier_loss...
Yu Watanabe [Mon, 20 May 2019 13:40:54 +0000 (22:40 +0900)] 
test-network: wait for bridge slave to be enslaved in test_bridge_ignore_carrier_loss_frequent_loss_and_gain()

4 years agonetwork: drop unused variable
Yu Watanabe [Wed, 22 May 2019 02:11:07 +0000 (11:11 +0900)] 
network: drop unused variable

4 years agonetwork: update master's ifindex in link_update()
Yu Watanabe [Wed, 22 May 2019 01:46:11 +0000 (10:46 +0900)] 
network: update master's ifindex in link_update()

And use it in link_is_enslaved().

4 years agotest-network: drop unused variable
Yu Watanabe [Mon, 20 May 2019 22:36:42 +0000 (07:36 +0900)] 
test-network: drop unused variable

4 years agonetwork: drop duplicated logs
Yu Watanabe [Mon, 20 May 2019 07:17:34 +0000 (16:17 +0900)] 
network: drop duplicated logs

link_set_state() already logs about state change.

4 years agotest-network: add test that vcan device can be configured state
Yu Watanabe [Mon, 20 May 2019 07:00:54 +0000 (16:00 +0900)] 
test-network: add test that vcan device can be configured state

4 years agonetwork: make CAN devices go through LINK_STATE_CONFIGURING
Yu Watanabe [Mon, 20 May 2019 06:59:44 +0000 (15:59 +0900)] 
network: make CAN devices go through LINK_STATE_CONFIGURING

4 years agotest-network: add basic tests for veth interfaces
Yu Watanabe [Mon, 20 May 2019 06:29:54 +0000 (15:29 +0900)] 
test-network: add basic tests for veth interfaces

4 years agonetwork: deprecate OneQueue= for tun or tap devices
Yu Watanabe [Mon, 20 May 2019 05:13:11 +0000 (14:13 +0900)] 
network: deprecate OneQueue= for tun or tap devices

IFF_ONE_QUEUE has no effect since kernel-3.8. See kernel's commit
5d097109257c03a71845729f8db6b5770c4bbedc.

4 years agotest-network: add tests for flags of tun or tap devices
Yu Watanabe [Mon, 20 May 2019 04:59:34 +0000 (13:59 +0900)] 
test-network: add tests for flags of tun or tap devices

4 years agonetwork: extend warning messages
Yu Watanabe [Mon, 20 May 2019 04:38:01 +0000 (13:38 +0900)] 
network: extend warning messages

4 years agonetwork: Allow IFF_VNET_HDR to also be set for tun devices
Yu Watanabe [Mon, 20 May 2019 04:27:20 +0000 (13:27 +0900)] 
network: Allow IFF_VNET_HDR to also be set for tun devices

f5f07dbf06f6df9d12e092c05ad8cfbe244d203f adds VnetHeader= for tap
devices, but the flag is also used for tun devices.
This adds VnetHeader= setting in [Tun] section.

4 years agotest-network: add tests for LinkLocalAddressing= on ipvlan or friends
Yu Watanabe [Mon, 20 May 2019 04:16:55 +0000 (13:16 +0900)] 
test-network: add tests for LinkLocalAddressing= on ipvlan or friends

4 years agonetwork: disable IPv4LL for ipvlan with L3 or L3S mode
Yu Watanabe [Mon, 20 May 2019 04:15:02 +0000 (13:15 +0900)] 
network: disable IPv4LL for ipvlan with L3 or L3S mode

As L3 or L3S mode do not support ARP.

4 years agotest-network: add tests for Flags= in [IPVTAP]
Yu Watanabe [Mon, 20 May 2019 03:48:05 +0000 (12:48 +0900)] 
test-network: add tests for Flags= in [IPVTAP]

4 years agotest-network: add tests for Flags= in [IPVLAN]
Yu Watanabe [Mon, 20 May 2019 03:47:31 +0000 (12:47 +0900)] 
test-network: add tests for Flags= in [IPVLAN]

4 years agotest-network: add tests for Mode= setting in [MACVTAP] section
Yu Watanabe [Mon, 20 May 2019 02:47:24 +0000 (11:47 +0900)] 
test-network: add tests for Mode= setting in [MACVTAP] section

4 years agotest-network: add tests for Mode= setting in [MACVLAN] section
Yu Watanabe [Mon, 20 May 2019 02:39:05 +0000 (11:39 +0900)] 
test-network: add tests for Mode= setting in [MACVLAN] section

4 years agotest-network: convert jiffies to sec
Yu Watanabe [Mon, 20 May 2019 01:43:50 +0000 (10:43 +0900)] 
test-network: convert jiffies to sec

4 years agotest-network: show interface status when wait_online() fails
Yu Watanabe [Mon, 20 May 2019 01:23:28 +0000 (10:23 +0900)] 
test-network: show interface status when wait_online() fails

4 years agotest-network: use wait_online() more
Yu Watanabe [Mon, 20 May 2019 01:18:26 +0000 (10:18 +0900)] 
test-network: use wait_online() more

4 years agotest-network: introduce check_link_exists()
Yu Watanabe [Mon, 20 May 2019 01:05:50 +0000 (10:05 +0900)] 
test-network: introduce check_link_exists()

4 years agotest-network: use wait_online() more
Yu Watanabe [Mon, 20 May 2019 01:02:29 +0000 (10:02 +0900)] 
test-network: use wait_online() more

4 years agotest-network: use splitlines() at one more place
Yu Watanabe [Mon, 20 May 2019 00:40:30 +0000 (09:40 +0900)] 
test-network: use splitlines() at one more place

4 years agonetworkctl: add support to display Transmit/Recieve queue length (#12633)
Susant Sahani [Wed, 22 May 2019 08:53:12 +0000 (14:23 +0530)] 
networkctl: add support to display Transmit/Recieve queue length (#12633)

```
(networkctl)⚡ % build/networkctl status veth-test
● 13: veth-test
            Link File: /usr/lib/systemd/network/99-default.link
         Network File: /usr/lib/systemd/network/veth0.network
                 Type: ether
                State: routable (configured)
               Driver: veth
           HW Address: 8a:a6:1c:3f:a6:1a
                  MTU: 1500
          Minimum MTU: 68
          Maximum MTU: 65535
Transmit Queue Length: 1
 Receive Queue Length: 1
              Address: 192.168.5.31
                       fe80::88a6:1cff:fe3f:a61a
              Gateway: 192.168.5.1
                  DNS: 192.168.5.1
                  NTP: 192.168.5.1
            Time Zone: Asia/Kolkata
         Connected To: Zeus on port peer-test
```

4 years agobus_open leak sd_event_source when udevadm trigger。
ven [Wed, 22 May 2019 06:24:28 +0000 (14:24 +0800)] 
bus_open leak sd_event_source when udevadm trigger。

On my host, when executing the udevadm trigger, I only receive the change event, which causes memleak

4 years agobasic/utf8: reduce memory usage 12590/head
Zbigniew Jędrzejewski-Szmek [Wed, 22 May 2019 08:20:52 +0000 (10:20 +0200)] 
basic/utf8: reduce memory usage

4 years agoAdd 8bit-version of get_process_cmdline() and use in cgroup-show.c
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 15:44:57 +0000 (17:44 +0200)] 
Add 8bit-version of get_process_cmdline() and use in cgroup-show.c

This restores show_pid_array() output in legacy locales on the console.
Only one call to get_process_cmdline() is changed, all others retain
utf8-only mode. This affects systemd-cgls, systemctl status, etc, when
working locally.

Calls to get_process_cmdline() that cross a process boundary always use
utf8. It's the callers responsibility to convert this to some encoding that
they use. This means that we always pass utf8 over the bus.

4 years agobasic/process-util: convert bool arg to flags
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 10:14:52 +0000 (12:14 +0200)] 
basic/process-util: convert bool arg to flags

In preparation for the next commit…

4 years agobasic/escape: add truncation to xescape too
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 11:12:37 +0000 (13:12 +0200)] 
basic/escape: add truncation to xescape too

This does for ASCII and non-unicode encodings what utf8_escape_non_printable_full()
does for utf8-based encodings.

4 years agoTODO: update
Zbigniew Jędrzejewski-Szmek [Wed, 15 May 2019 09:56:16 +0000 (11:56 +0200)] 
TODO: update

4 years agoutil-lib: do not truncate kernel comm names
Zbigniew Jędrzejewski-Szmek [Wed, 15 May 2019 09:55:59 +0000 (11:55 +0200)] 
util-lib: do not truncate kernel comm names

It turns out that the kernel allows comm names higher than our expected limit
of 16.
$ wc -c /proc/*/comm|sort -g|tail -n3
35 /proc/1292317/comm
35 /proc/1293610/comm
36 /proc/1287112/comm
$ cat /proc/1287112/comm
kworker/u9:3-kcryptd/253:0

4 years agoRework cmdline printing to use unicode
Zbigniew Jędrzejewski-Szmek [Wed, 15 May 2019 09:20:26 +0000 (11:20 +0200)] 
Rework cmdline printing to use unicode

The functions to retrieve and print process cmdlines were based on the
assumption that they contain printable ASCII, and everything else
should be filtered out. That assumption doesn't hold in today's world,
where people are free to use unicode everywhere.

This replaces the custom cmdline reading code with a more generic approach
using utf8_escape_non_printable_full().
For kernel threads, truncation is done on the parenthesized name, so we'll
get "[worker]", "[worker…]", …, "[w…]", "[…", "…" as we reduce the number of
available columns.

This implementation is most likely slower for very long cmdlines, but I don't
think this is very important. The common case is to have short commandlines,
and should print those properly. Absurdly long cmdlines are the exception,
which needs to be handled correctly and safely, but speed is not too important.

Fixes #12532.

v2:
- use size_t for the number of columns. This change propagates into various
  other functions that call get_process_cmdline(), increasing the size of the
  patch, but the changes are rather trivial.

4 years agoutil-lib: add truncation based on printable width to utf8_escape_non_printable()
Zbigniew Jędrzejewski-Szmek [Wed, 15 May 2019 08:57:07 +0000 (10:57 +0200)] 
util-lib: add truncation based on printable width to utf8_escape_non_printable()

4 years agoudev/scsi_id: fix incorrect page length when get device identification VPD page
Zhang Xianwei [Mon, 13 May 2019 10:41:55 +0000 (18:41 +0800)] 
udev/scsi_id: fix incorrect page length when get device identification VPD page

The length of device identification VPD page is filled with two bytes,
but scsi_id only gets the low byte. Fix it.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
4 years agoMerge pull request #12629 from ssahani/networkctl
Yu Watanabe [Tue, 21 May 2019 17:35:06 +0000 (02:35 +0900)] 
Merge pull request #12629 from ssahani/networkctl

networkctl: MTU enhancements

4 years agoMerge pull request #12626 from keszybz/oompolicy-check
Lennart Poettering [Tue, 21 May 2019 16:29:01 +0000 (18:29 +0200)] 
Merge pull request #12626 from keszybz/oompolicy-check

Make the check if oom-killer fired more robust

4 years agonetworkctl: Add support to display min and max MTU 12629/head
Susant Sahani [Tue, 21 May 2019 12:14:36 +0000 (17:44 +0530)] 
networkctl: Add support to display min and max MTU

(networkctl)⚡ % ./networkctl status enp0s31f6                                                                                                                          ~/tt/networkctl/build
● 4: enp0s31f6
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: n/a (unmanaged)
            Path: pci-0000:00:1f.6
          Driver: e1000e
          Vendor: Intel Corporation
           Model: Ethernet Connection (2) I219-LM
      HW Address: 8c:16:45:6c:83:b9 (LCFC(HeFei) Electronics Technology co., ltd)
             MTU: 1500
     Minimum MTU: 68
     Maximum MTU: 9000

4 years agosd-netlink: Add netlink property IFLA_MIN_MTU and IFLA_MAX_MTU,
Susant Sahani [Tue, 21 May 2019 12:13:56 +0000 (17:43 +0530)] 
sd-netlink: Add netlink property IFLA_MIN_MTU and IFLA_MAX_MTU,

4 years agonetworkctl: Display MTU
Susant Sahani [Tue, 21 May 2019 11:59:18 +0000 (17:29 +0530)] 
networkctl: Display MTU

Now the MTU is not displayed. with this patch it's fixed.

(networkctl)⚡ % ./networkctl status enp0s31f6                                                                                                                          ~/tt/networkctl/build
WARNING: systemd-networkd is not running, output will be incomplete.

● 4: enp0s31f6
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: n/a (unmanaged)
            Path: pci-0000:00:1f.6
          Driver: e1000e
          Vendor: Intel Corporation
           Model: Ethernet Connection (2) I219-LM
      HW Address: 8c:16:45:6c:83:b9 (LCFC(HeFei) Electronics Technology co., ltd)
             MTU: 1500

4 years agoshared/cgroup-show: fix off-by-one in column counting
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2019 22:05:32 +0000 (00:05 +0200)] 
shared/cgroup-show: fix off-by-one in column counting

We'd get one column too many, and the trailing ellipsis would end up in
the next row.

4 years agotest-utf8: add function headers and rename tests after functions they test
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2019 22:04:39 +0000 (00:04 +0200)] 
test-utf8: add function headers and rename tests after functions they test

4 years agoIntroduce sc_arg_max() helper
Zbigniew Jędrzejewski-Szmek [Sat, 11 May 2019 07:51:33 +0000 (09:51 +0200)] 
Introduce sc_arg_max() helper

Just a cast and an assert.

4 years agocgtop,test: use consistent capitalization for CGroup
Zbigniew Jędrzejewski-Szmek [Sat, 11 May 2019 07:01:44 +0000 (09:01 +0200)] 
cgtop,test: use consistent capitalization for CGroup

4 years agoMerge pull request #12510 from keszybz/test-directives
Yu Watanabe [Mon, 20 May 2019 23:35:10 +0000 (08:35 +0900)] 
Merge pull request #12510 from keszybz/test-directives

test: run check-directives.sh as part of the test suite

4 years agoMerge pull request #12519 from keszybz/man-on-demand
Yu Watanabe [Mon, 20 May 2019 23:25:26 +0000 (08:25 +0900)] 
Merge pull request #12519 from keszybz/man-on-demand

Build man pages on demand only

4 years agomeson-vcs-tag: enhance version info generation
Joe Lin [Fri, 10 May 2019 08:58:08 +0000 (08:58 +0000)] 
meson-vcs-tag: enhance version info generation

When build from release tarball and where there is parent .git dir,
this situtaion will get wrong version info. (build with buildroot)

The systemd running show wrong version in dmesg log:
systemd[1]: systemd 2019.02-1086-gf5f17c4 running in system mode.
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shoule be:
systemd[1]: systemd 241 running in system mode. (-PAM -AUDIT -SEL
            ^^^^^^^^^^^

4 years agoman: systemd-nspawn: Update syntax to launch an image
Kashyap Chamarthy [Mon, 20 May 2019 15:08:04 +0000 (17:08 +0200)] 
man: systemd-nspawn: Update syntax to launch an image

To access a shell on a disk image, the man page on Fedora-29 says to
run: `systemd-nspawn -M Fedora-Cloud-Base-28-1.1.x86_64.raw`.  Let's
try.

List existing images:

    $> machinectl list-images | awk '{print $1,$2}';
    NAME TYPE
    Fedora-Cloud-Base-30… raw

    1 images

Now invoke `systemd-nspawn` as noted in the man page:

    $> systemd-nspawn -M Fedora-Cloud-Base-30-1.2.x86_64.raw
    No image for machine 'Fedora-Cloud-Base-30-1.2.x86_64.raw'.

Removing the ".raw" extension launches the image and gives a shell.
Update the man page to reflect that.

Frantisek Sumsal on #systemd (Freenode) noted the reason: "In older
versions systemd -M accepted both image-name.raw and image-name as a
valid image names, however, on Fedora 29 (systemd-239) with all the
BTRFS stuff around it accepts only -M image-name (without the
extension)"

    - - -

While at it, update the fedora_{latest_version, cloud_release}
variables.

Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
4 years agoMerge pull request #12612 from keszybz/bootctl-column
Yu Watanabe [Mon, 20 May 2019 22:45:12 +0000 (07:45 +0900)] 
Merge pull request #12612 from keszybz/bootctl-column

Rename TEST-31-OOMPOLICY to avoid conflict and look in $BOOT for kernels

4 years agosysctl: bump pid range only on 64-bit systems
Yu Watanabe [Sun, 19 May 2019 13:55:35 +0000 (22:55 +0900)] 
sysctl: bump pid range only on 64-bit systems

Closes #12604.

4 years agojson: fix minor memory leak on error path
Lennart Poettering [Mon, 20 May 2019 14:15:40 +0000 (16:15 +0200)] 
json: fix minor memory leak on error path

4 years agocore: do an extra check if oom was triggered when handling sigchild 12626/head
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 13:52:02 +0000 (15:52 +0200)] 
core: do an extra check if oom was triggered when handling sigchild

Should fix #12425.

4 years agocore/service: drop {}
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:44:41 +0000 (13:44 +0200)] 
core/service: drop {}

4 years agosmall fixes: make get_process_state() static and fix typo
Topi Miettinen [Mon, 20 May 2019 11:37:03 +0000 (14:37 +0300)] 
small fixes: make get_process_state() static and fix typo

4 years agoMerge pull request #12602 from keszybz/two-man-page-tweaks
Lennart Poettering [Mon, 20 May 2019 14:22:57 +0000 (16:22 +0200)] 
Merge pull request #12602 from keszybz/two-man-page-tweaks

Two man page tweaks

4 years agotravis: use variable to avoid one call 12510/head
Zbigniew Jędrzejewski-Szmek [Mon, 20 May 2019 13:48:05 +0000 (15:48 +0200)] 
travis: use variable to avoid one call

4 years agotests: install perl for CI
Zbigniew Jędrzejewski-Szmek [Fri, 10 May 2019 08:33:37 +0000 (10:33 +0200)] 
tests: install perl for CI

It is useful for various tests (test-directives, test-udev, …).

4 years agotest: run check-directives.sh as part of the test suite
Zbigniew Jędrzejewski-Szmek [Tue, 7 May 2019 18:46:36 +0000 (20:46 +0200)] 
test: run check-directives.sh as part of the test suite

4 years agoMerge pull request #12603 from ssahani/ndisc-blacklist
Yu Watanabe [Sun, 19 May 2019 14:19:27 +0000 (23:19 +0900)] 
Merge pull request #12603 from ssahani/ndisc-blacklist

networkd: Ability to selectively ignore IPv6 prefixes supplied via ro…

4 years agoefivars: allow plus in the entry name
Yu Watanabe [Sat, 18 May 2019 21:18:00 +0000 (06:18 +0900)] 
efivars: allow plus in the entry name

Closes #12572.

4 years agonetworkd: Ability to selectively ignore IPv6 prefixes supplied via router advertisement 12603/head
Susant Sahani [Fri, 17 May 2019 16:21:20 +0000 (21:51 +0530)] 
networkd: Ability to selectively ignore IPv6 prefixes supplied via router advertisement

Closes https://github.com/systemd/systemd/issues/10647

4 years agoTEST-32-OOMPOLICY: drop unneeded headers 12612/head
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:03:21 +0000 (13:03 +0200)] 
TEST-32-OOMPOLICY: drop unneeded headers

4 years agotest: rename TEST-31-OOMPOLICY to TEST-32-OOMPOLICY
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:00:00 +0000 (13:00 +0200)] 
test: rename TEST-31-OOMPOLICY to TEST-32-OOMPOLICY

TEST-31-DEVICE-ENUMERATION got merged first.

4 years agotest: search $BOOT for kernel+initrd
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 10:05:21 +0000 (12:05 +0200)] 
test: search $BOOT for kernel+initrd

$BOOT is the preferred location for kernel images. If $BOOT does not
exist, -x will print the path to ESP, so well fall back to previous
behaviour.