]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agonetwork: introduce network_verify_mdb_entries()
Yu Watanabe [Tue, 29 Sep 2020 17:44:57 +0000 (02:44 +0900)] 
network: introduce network_verify_mdb_entries()

5 years agonetwork: drop list of bridge MDB entries
Yu Watanabe [Tue, 29 Sep 2020 17:40:28 +0000 (02:40 +0900)] 
network: drop list of bridge MDB entries

[BridgeMDB] sections are managed by LIST and Hashmap, and they contins
the completely same information. Let's drop the list.

5 years agonetwork: move mdb_entry_free() and friends
Yu Watanabe [Tue, 29 Sep 2020 17:33:14 +0000 (02:33 +0900)] 
network: move mdb_entry_free() and friends

5 years agonetwork: cleanup networkd-fdb.h
Yu Watanabe [Tue, 29 Sep 2020 17:24:02 +0000 (02:24 +0900)] 
network: cleanup networkd-fdb.h

5 years agonetwork: drop unused fdb_ntf_flags_to_string()
Yu Watanabe [Tue, 29 Sep 2020 17:14:19 +0000 (02:14 +0900)] 
network: drop unused fdb_ntf_flags_to_string()

5 years agonetwork: introduce network_verify_fdb_entries()
Yu Watanabe [Tue, 29 Sep 2020 17:09:28 +0000 (02:09 +0900)] 
network: introduce network_verify_fdb_entries()

5 years agonetwork: move link_set_bridge_fdb()
Yu Watanabe [Tue, 29 Sep 2020 17:05:08 +0000 (02:05 +0900)] 
network: move link_set_bridge_fdb()

5 years agonetwork: drop list of bridge FDB entries
Yu Watanabe [Tue, 29 Sep 2020 17:01:46 +0000 (02:01 +0900)] 
network: drop list of bridge FDB entries

[BridgeFDB] sections are managed by both LIST and Hashmap, and they
contains the completely same information. Let's drop the list.

5 years agonetwork: make fdb_entry_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 16:53:16 +0000 (01:53 +0900)] 
network: make fdb_entry_free() return NULL

5 years agonetwork: cleanup networkd-address-label.h
Yu Watanabe [Tue, 29 Sep 2020 16:40:03 +0000 (01:40 +0900)] 
network: cleanup networkd-address-label.h

5 years agonetwork: introduce link_set_address_labels()
Yu Watanabe [Tue, 29 Sep 2020 16:33:25 +0000 (01:33 +0900)] 
network: introduce link_set_address_labels()

5 years agonetwork: introduce network_verify_address_labels()
Yu Watanabe [Tue, 29 Sep 2020 16:28:35 +0000 (01:28 +0900)] 
network: introduce network_verify_address_labels()

5 years agonetwork: make address_label_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 16:25:12 +0000 (01:25 +0900)] 
network: make address_label_free() return NULL

5 years agonetwork: drop list of static address labels
Yu Watanabe [Tue, 29 Sep 2020 16:20:43 +0000 (01:20 +0900)] 
network: drop list of static address labels

[IPv6AddressLabel] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.

5 years agonetwork: make neighbor_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 15:45:19 +0000 (00:45 +0900)] 
network: make neighbor_free() return NULL

5 years agonetwork: introduce network_verify_neighbors()
Yu Watanabe [Tue, 29 Sep 2020 15:43:06 +0000 (00:43 +0900)] 
network: introduce network_verify_neighbors()

5 years agonetwork: introduce neighbor_drop_{,foreign_}neighbors()
Yu Watanabe [Tue, 29 Sep 2020 15:37:39 +0000 (00:37 +0900)] 
network: introduce neighbor_drop_{,foreign_}neighbors()

5 years agonetwork: cleanup headers in networkd-neighbor.[ch]
Yu Watanabe [Tue, 29 Sep 2020 15:17:22 +0000 (00:17 +0900)] 
network: cleanup headers in networkd-neighbor.[ch]

5 years agonetwork: drop unused arguments
Yu Watanabe [Tue, 29 Sep 2020 15:09:21 +0000 (00:09 +0900)] 
network: drop unused arguments

5 years agonetwork: make several functions static
Yu Watanabe [Tue, 29 Sep 2020 15:05:18 +0000 (00:05 +0900)] 
network: make several functions static

5 years agonetwork: make neighbor_{add,get}() takes Neighbor object
Yu Watanabe [Tue, 29 Sep 2020 15:00:20 +0000 (00:00 +0900)] 
network: make neighbor_{add,get}() takes Neighbor object

5 years agonetwork: drop list of static neighbors
Yu Watanabe [Tue, 29 Sep 2020 14:31:38 +0000 (23:31 +0900)] 
network: drop list of static neighbors

[Neighbor] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.

5 years agonetwork: move manager_rtnl_process_neighbor() to networkd-neighbor.c
Yu Watanabe [Tue, 29 Sep 2020 14:20:14 +0000 (23:20 +0900)] 
network: move manager_rtnl_process_neighbor() to networkd-neighbor.c

5 years agonetwork: move link_request_set_neighbors() to networkd-neighbor.c
Yu Watanabe [Tue, 29 Sep 2020 14:17:43 +0000 (23:17 +0900)] 
network: move link_request_set_neighbors() to networkd-neighbor.c

5 years agonetwork: move functions
Yu Watanabe [Tue, 29 Sep 2020 14:15:41 +0000 (23:15 +0900)] 
network: move functions

5 years agonetwork: introduce network_verify_nexthops()
Yu Watanabe [Tue, 29 Sep 2020 15:58:01 +0000 (00:58 +0900)] 
network: introduce network_verify_nexthops()

5 years agonetwork: use netlink_message_read_in_addr_union()
Yu Watanabe [Tue, 29 Sep 2020 13:35:03 +0000 (22:35 +0900)] 
network: use netlink_message_read_in_addr_union()

5 years agosd-netlink: introduce netlink_message_read_in_addr_union()
Yu Watanabe [Tue, 29 Sep 2020 13:34:37 +0000 (22:34 +0900)] 
sd-netlink: introduce netlink_message_read_in_addr_union()

5 years agonetwork: use log_link_xxx() at more places
Yu Watanabe [Tue, 29 Sep 2020 13:21:52 +0000 (22:21 +0900)] 
network: use log_link_xxx() at more places

5 years agonetwork: drop NextHop::oif and always use link ifindex
Yu Watanabe [Tue, 29 Sep 2020 13:20:23 +0000 (22:20 +0900)] 
network: drop NextHop::oif and always use link ifindex

5 years agonetwork: slightly shorten nexthop_compare_func()
Yu Watanabe [Tue, 29 Sep 2020 12:53:05 +0000 (21:53 +0900)] 
network: slightly shorten nexthop_compare_func()

5 years agonetwork: cleanup headers included in networkd-nexthop.h
Yu Watanabe [Tue, 29 Sep 2020 08:47:28 +0000 (17:47 +0900)] 
network: cleanup headers included in networkd-nexthop.h

5 years agonetwork: drop list of static nexthops
Yu Watanabe [Tue, 29 Sep 2020 08:37:56 +0000 (17:37 +0900)] 
network: drop list of static nexthops

[NextHop] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.

5 years agonetwork: drop unused nexthop_remove() and nexthop_equal()
Yu Watanabe [Tue, 29 Sep 2020 08:29:19 +0000 (17:29 +0900)] 
network: drop unused nexthop_remove() and nexthop_equal()

5 years agonetwork: make several functions static
Yu Watanabe [Tue, 29 Sep 2020 08:27:50 +0000 (17:27 +0900)] 
network: make several functions static

5 years agonetwork: move manager_rtnl_process_nexthop() to networkd-nexthop.c
Yu Watanabe [Tue, 29 Sep 2020 08:20:40 +0000 (17:20 +0900)] 
network: move manager_rtnl_process_nexthop() to networkd-nexthop.c

5 years agonetwork: move link_request_set_nexthop() to networkd-nexthop.c
Yu Watanabe [Tue, 29 Sep 2020 08:18:55 +0000 (17:18 +0900)] 
network: move link_request_set_nexthop() to networkd-nexthop.c

5 years agonetwork: introduce helper function to enumerate information using netlink
Yu Watanabe [Tue, 29 Sep 2020 07:44:41 +0000 (16:44 +0900)] 
network: introduce helper function to enumerate information using netlink

5 years agonetwork: specify all known attributes when removing routing policy rules
Yu Watanabe [Mon, 5 Oct 2020 21:20:39 +0000 (06:20 +0900)] 
network: specify all known attributes when removing routing policy rules

Otherwise, routing_policy_rule_remove() may removes unintended rule.

5 years agonetwork: add missing "else"
Yu Watanabe [Mon, 5 Oct 2020 20:05:33 +0000 (22:05 +0200)] 
network: add missing "else"

5 years agonetwork: drop unused element
Yu Watanabe [Sun, 4 Oct 2020 15:55:15 +0000 (00:55 +0900)] 
network: drop unused element

5 years agonetwork: introduce network_verify_routing_policy_rules()
Yu Watanabe [Tue, 29 Sep 2020 15:50:30 +0000 (00:50 +0900)] 
network: introduce network_verify_routing_policy_rules()

5 years agonetwork: make routing_policy_rule_new() static
Yu Watanabe [Tue, 29 Sep 2020 12:43:59 +0000 (21:43 +0900)] 
network: make routing_policy_rule_new() static

5 years agonetwork: move manager_rtnl_process_rule() to networkd-routing-policy-rule.[ch]
Yu Watanabe [Tue, 29 Sep 2020 07:23:57 +0000 (16:23 +0900)] 
network: move manager_rtnl_process_rule() to networkd-routing-policy-rule.[ch]

5 years agonetwork: use typesafe macro netlink_add_match()
Yu Watanabe [Tue, 29 Sep 2020 07:20:00 +0000 (16:20 +0900)] 
network: use typesafe macro netlink_add_match()

5 years agosd-netlink: fix typo and make netlink_add_match() take description
Yu Watanabe [Tue, 29 Sep 2020 07:12:17 +0000 (16:12 +0900)] 
sd-netlink: fix typo and make netlink_add_match() take description

5 years agonetwork: move log_message_warning_errno() to networkd-util.h
Yu Watanabe [Tue, 29 Sep 2020 07:00:21 +0000 (16:00 +0900)] 
network: move log_message_warning_errno() to networkd-util.h

5 years agonetwork: drop list of static routing policy rules
Yu Watanabe [Tue, 29 Sep 2020 06:29:56 +0000 (15:29 +0900)] 
network: drop list of static routing policy rules

[RoutingPolicyRule] sections are managed by both LIST and Hashmap.
Let's drop list.

5 years agonetwork: do not duplicate rule if Family=both
Yu Watanabe [Sun, 4 Oct 2020 14:14:08 +0000 (23:14 +0900)] 
network: do not duplicate rule if Family=both

5 years agonetwork: make routing_policy_rule_free() returns NULL
Yu Watanabe [Tue, 29 Sep 2020 06:36:53 +0000 (15:36 +0900)] 
network: make routing_policy_rule_free() returns NULL

5 years agonetwork: add more logs on loading routing policy rules failure
Yu Watanabe [Tue, 29 Sep 2020 06:04:19 +0000 (15:04 +0900)] 
network: add more logs on loading routing policy rules failure

And reduce scope of variables.

5 years agonetwork: reduce scope of variables
Yu Watanabe [Tue, 29 Sep 2020 05:42:56 +0000 (14:42 +0900)] 
network: reduce scope of variables

5 years agonetwork: drop routing_policy_rule_make_local()
Yu Watanabe [Tue, 29 Sep 2020 05:41:01 +0000 (14:41 +0900)] 
network: drop routing_policy_rule_make_local()

Its error handling was bogus...

5 years agonetwork: make several functions static
Yu Watanabe [Tue, 29 Sep 2020 05:28:21 +0000 (14:28 +0900)] 
network: make several functions static

5 years agonetwork: move link_request_set_routing_policy()
Yu Watanabe [Tue, 29 Sep 2020 05:17:27 +0000 (14:17 +0900)] 
network: move link_request_set_routing_policy()

5 years agoman: fix table alignment
Lennart Poettering [Mon, 5 Oct 2020 15:45:58 +0000 (17:45 +0200)] 
man: fix table alignment

5 years agoNEWS: shorten/reword some things
Zbigniew Jędrzejewski-Szmek [Mon, 5 Oct 2020 11:29:37 +0000 (13:29 +0200)] 
NEWS: shorten/reword some things

5 years agovirt: reference correct file path in log message
Lennart Poettering [Mon, 5 Oct 2020 09:40:33 +0000 (11:40 +0200)] 
virt: reference correct file path in log message

5 years agoman: fix typo systmed → systemd
Lennart Poettering [Mon, 5 Oct 2020 09:40:05 +0000 (11:40 +0200)] 
man: fix typo systmed → systemd

5 years agoupdate TODO
Lennart Poettering [Mon, 5 Oct 2020 09:39:42 +0000 (11:39 +0200)] 
update TODO

5 years agoadd stuff to NEWS for 247
Lennart Poettering [Mon, 5 Oct 2020 09:39:35 +0000 (11:39 +0200)] 
add stuff to NEWS for 247

5 years agoshell-completion: add missing completions to meson.build
Lucas Werkmeister [Sun, 4 Oct 2020 13:39:24 +0000 (15:39 +0200)] 
shell-completion: add missing completions to meson.build

Completions for systemd-id128 and homectl have been available for a
while, but weren’t being installed.

5 years agoMerge pull request #17230 from mrc0mmand/coccinelle_fixes
Zbigniew Jędrzejewski-Szmek [Mon, 5 Oct 2020 06:03:40 +0000 (08:03 +0200)] 
Merge pull request #17230 from mrc0mmand/coccinelle_fixes

coccinelle: fix the incorrect transformation/isomorphisms

5 years agoMerge pull request #17239 from ferivoz/typos
Daan De Meyer [Sun, 4 Oct 2020 17:19:26 +0000 (18:19 +0100)] 
Merge pull request #17239 from ferivoz/typos

Fix typos

5 years agotree-wide: coccinelle fixes 17230/head
Frantisek Sumsal [Sun, 4 Oct 2020 09:29:23 +0000 (11:29 +0200)] 
tree-wide: coccinelle fixes

5 years agococcinelle: skip strjoin transformation in test_strjoin()
Frantisek Sumsal [Sun, 4 Oct 2020 10:29:43 +0000 (12:29 +0200)] 
coccinelle: skip strjoin transformation in test_strjoin()

5 years agococcinelle: limit the # of expressions in in_set/not_in_set
Frantisek Sumsal [Sun, 4 Oct 2020 09:44:48 +0000 (11:44 +0200)] 
coccinelle: limit the # of expressions in in_set/not_in_set

transformations. Otherwise the time and resources to generate all
possible permutations is simply unreasonable for running on local
machines.

5 years agococcinelle: skip the xsprintf transformation on man pages
Frantisek Sumsal [Sun, 4 Oct 2020 09:31:51 +0000 (11:31 +0200)] 
coccinelle: skip the xsprintf transformation on man pages

since we don't expose xsprintf to users.

5 years agococcinelle: disable flags-set where it doesn't make sense
Frantisek Sumsal [Fri, 2 Oct 2020 09:31:47 +0000 (11:31 +0200)] 
coccinelle: disable flags-set where it doesn't make sense

5 years agococcinelle: fix the equals-null transformation
Frantisek Sumsal [Thu, 1 Oct 2020 14:13:30 +0000 (16:13 +0200)] 
coccinelle: fix the equals-null transformation

The original issue with this transformation was that we were replacing
the whole if statement instead of just the expression inside. That
caused the code to be weirdly formatted, as Coccinelle put a new block
around each replaced if statement.

This version replaces just the inner expression if it's in its incorrect
form, otherwise it just accepts it (to avoid recursion).

5 years agococcinelle: drop the custom isomorphisms
Frantisek Sumsal [Thu, 1 Oct 2020 14:11:43 +0000 (16:11 +0200)] 
coccinelle: drop the custom isomorphisms

My former dumb me didn't read the documentation properly, so with the
introduction of custom isomorphisms I caused two issues:

1) Masked all standard isomorphisms defined by Coccinelle
2) Replace the original issue with a completely new one

5 years agoMerge pull request #17233 from poettering/nspawn-reopen-fix
Daan De Meyer [Sat, 3 Oct 2020 12:26:54 +0000 (13:26 +0100)] 
Merge pull request #17233 from poettering/nspawn-reopen-fix

nspawn: reopen stdin/stdout + chmod fixes for stdin/stdout

5 years agoman: fix typos 17239/head
Samanta Navarro [Sat, 3 Oct 2020 11:56:50 +0000 (11:56 +0000)] 
man: fix typos

5 years agoseccomp-util: fix typo in help message
Samanta Navarro [Sat, 3 Oct 2020 11:56:40 +0000 (11:56 +0000)] 
seccomp-util: fix typo in help message

5 years agogithub: ask for arch+kernel in bug report form
Lennart Poettering [Thu, 1 Oct 2020 12:57:06 +0000 (14:57 +0200)] 
github: ask for arch+kernel in bug report form

Quite often we see kernel and arch specific issues, let's ask for the
version right-away when people file the issue.

Other tweaks.

5 years agonspawn: don't chown() stdin/stdout passed in when --console=pipe is used 17233/head
Lennart Poettering [Fri, 2 Oct 2020 09:59:45 +0000 (11:59 +0200)] 
nspawn: don't chown() stdin/stdout passed in when --console=pipe is used

We should chown what we allocate ourselves, i.e. any pty we allocate
ourselves. But for stuff we propagate, let's avoid that: we shouldn't
make more changes than necessary.

Fixes: #17229
5 years agoptyfwd: reopen stdin/sdout before setting O_NONBLOCK
Lennart Poettering [Fri, 2 Oct 2020 09:50:58 +0000 (11:50 +0200)] 
ptyfwd: reopen stdin/sdout before setting O_NONBLOCK

If we set O_NONBLOCK on stdin/stdout directly this means the flag is
left set when we abort abnormally, as we don't get the chance to reset
it again on exit. This might confuse progrms invoking us. Moreover, if
programs invoking us continue to write to the stdout passed to us, they
might be confused by non-blocking mode too.

Hence, let's avoid this if possible: let's reopen stdin/stdout and set
O_NONBLOCK only on the reopend fds, leaving the original fds as they
are.

Prompted-by: https://github.com/systemd/systemd/pull/17070#issuecomment-702304802
5 years agoMerge pull request #17172 from keszybz/read-login-defs
Lennart Poettering [Fri, 2 Oct 2020 09:01:30 +0000 (11:01 +0200)] 
Merge pull request #17172 from keszybz/read-login-defs

Read /etc/login.defs

5 years agoMerge pull request #17219 from poettering/exec-root-dir
Zbigniew Jędrzejewski-Szmek [Thu, 1 Oct 2020 18:01:46 +0000 (20:01 +0200)] 
Merge pull request #17219 from poettering/exec-root-dir

minor tweaks to execute.[ch]

5 years agosysusers: emit warnings about login.defs overrides on first user or group creation 17172/head
Zbigniew Jędrzejewski-Szmek [Thu, 1 Oct 2020 16:18:26 +0000 (18:18 +0200)] 
sysusers: emit warnings about login.defs overrides on first user or group creation

*** Running /home/zbyszek/src/systemd-work/test/test-sysusers/test-14.input (with login.defs symlinked)
login.defs specifies UID allocation range 401–555 that is different than the built-in defaults (201–998)
login.defs specifies GID allocation range 405–666 that is different than the built-in defaults (201–990)

5 years agotests: when creating temp dirs, include test name in path
Zbigniew Jędrzejewski-Szmek [Thu, 1 Oct 2020 12:55:22 +0000 (14:55 +0200)] 
tests: when creating temp dirs, include test name in path

This makes it easier to figure out which directory we want to look at
when tests fail, and also which test left behind a directory when it
shouldn't.

5 years agosysusers: look at login.defs when setting the default range to allocate users
Zbigniew Jędrzejewski-Szmek [Fri, 25 Sep 2020 15:16:06 +0000 (17:16 +0200)] 
sysusers: look at login.defs when setting the default range to allocate users

Also, even if login.defs are not present, don't start allocating at 1, but at
SYSTEM_UID_MIN.

Fixes #9769.

The test is adjusted. Actually, it was busted before, because sysusers would
never use SYSTEM_GID_MIN, so if SYSTEM_GID_MIN was different than
SYSTEM_UID_MIN, the tests would fail. On all "normal" systems the two are
equal, so we didn't notice. Since sysusers now always uses the minimum of the
two, we only need to substitute one value.

5 years agotest-sysusers: fix how paths are calculated
Zbigniew Jędrzejewski-Szmek [Thu, 1 Oct 2020 12:16:46 +0000 (14:16 +0200)] 
test-sysusers: fix how paths are calculated

We were looking at ${f%.*}, i.e. the $f with any suffix starting with a dot removed.
This worked fine for paths like /some/path/test-11.input. It also worked
for paths like /some/path/inline (there were no dots, so we got $f back unscathed).
But in the ubuntu CI the package is built in a temporary directory like
/tmp/autopkgtest-lxc.nnnfqb26/downtmp/build.UfW/ (yes, it has a dot, even two.).
That still worked for the first case, but in the second case we truncated things
after the first dot, and we would try to get
/tmp/autopkgtest-lxc.nnnfqb26/downtmp/build and try to load
/tmp/autopkgtest-lxc.nnnfqb26/downtmp/build.expected-password, which obviously
didn't work as expected. To avoid this issue, do the suffix removal only when
we know that there really is a suffix.

A second minor issue was that we would try to copy $1.expected-*, and sometimes
$1 would be given, and sometimes not. Effectively we were relying on there
not being any files matching .expected-*. There weren't any such files, but let's
avoid this ugliness and always pass $1.

5 years agotest-sysusers: sort examples
Zbigniew Jędrzejewski-Szmek [Sun, 27 Sep 2020 09:30:17 +0000 (11:30 +0200)] 
test-sysusers: sort examples

This shouldn't affect the outcome, but makes outputs easier to compare.

5 years agotest/TEST-21-SYSUSERS: turn into a unit test
Zbigniew Jędrzejewski-Szmek [Sat, 26 Sep 2020 09:58:24 +0000 (11:58 +0200)] 
test/TEST-21-SYSUSERS: turn into a unit test

All this test does is manipulate text files in a subdir specified with --testroot.
It can be a normal unittest without the overhead of creating a machine image.

As a bonus, also test the .standalone version.

5 years agobasic/fileio: add chase_symlinks_and_fopen_unlocked()
Zbigniew Jędrzejewski-Szmek [Thu, 1 Oct 2020 11:52:16 +0000 (13:52 +0200)] 
basic/fileio: add chase_symlinks_and_fopen_unlocked()

5 years agoshared/uid-range: reduce scope of iterator variables
Zbigniew Jędrzejewski-Szmek [Fri, 25 Sep 2020 15:51:41 +0000 (17:51 +0200)] 
shared/uid-range: reduce scope of iterator variables

5 years agoAlso parse the minimum uid/gid values
Zbigniew Jędrzejewski-Szmek [Fri, 25 Sep 2020 14:50:45 +0000 (16:50 +0200)] 
Also parse the minimum uid/gid values

We don't (and shouldn't I think) look at them when determining the type of the
user, but they should be used during user/group allocation. (For example, an
admin may specify SYS_UID_MIN==200 to allow statically numbered users that are
shared with other systems in the range 1–199.)

5 years agoLook at /etc/login.defs for the system_max_[ug]id values
Zbigniew Jędrzejewski-Szmek [Fri, 25 Sep 2020 14:31:42 +0000 (16:31 +0200)] 
Look at /etc/login.defs for the system_max_[ug]id values

It makes little sense to make the boundary between systemd and user guids
configurable. Nevertheless, a completely fixed compile-time define is not
enough in two scenarios:
- the systemd_uid_max boundary has moved over time. The default used to be
  500 for a long time. Systems which are upgraded over time might have users
  in the wrong range, but changing existing systems is complicated and
  expensive (offline disks, backups, remote systems, read-only media, etc.)
- systems are used in a heterogenous enviornment, where some vendors pick
  one value and others another.
So let's make this boundary overridable using /etc/login.defs.

Fixes #3855, #10184.

5 years agoexecute: use empty_to_root() a bit more 17219/head
Lennart Poettering [Thu, 1 Oct 2020 08:53:56 +0000 (10:53 +0200)] 
execute: use empty_to_root() a bit more

5 years agoexecute: add helper for checking if root_directory/root_image are set in ExecContext
Lennart Poettering [Thu, 1 Oct 2020 08:42:10 +0000 (10:42 +0200)] 
execute: add helper for checking if root_directory/root_image are set in ExecContext

5 years agoMerge pull request #17152 from keszybz/make-mountapivfs-default
Lennart Poettering [Thu, 1 Oct 2020 09:00:02 +0000 (11:00 +0200)] 
Merge pull request #17152 from keszybz/make-mountapivfs-default

Make MountAPIVFS=yes default

5 years agoMerge pull request #17214 from poettering/log-generator-fix
Franck Bui [Thu, 1 Oct 2020 08:51:19 +0000 (10:51 +0200)] 
Merge pull request #17214 from poettering/log-generator-fix

fix logging in generators

5 years agoMerge pull request #17154 from keszybz/crypttab-commas
Lennart Poettering [Thu, 1 Oct 2020 08:26:24 +0000 (10:26 +0200)] 
Merge pull request #17154 from keszybz/crypttab-commas

Allow escaping commas in crypttab

5 years agoMerge pull request #17213 from keszybz/man-cleanups
Lennart Poettering [Thu, 1 Oct 2020 08:24:44 +0000 (10:24 +0200)] 
Merge pull request #17213 from keszybz/man-cleanups

Fix links in man pages

5 years agobootspec: don't fail with EIO if searching for ESP and finding one without an envelop...
Lennart Poettering [Wed, 30 Sep 2020 09:04:08 +0000 (11:04 +0200)] 
bootspec: don't fail with EIO if searching for ESP and finding one without an enveloping partition table

If this happens this should just mean: we couldn't find the ESP.

Fixes: #17122
5 years agogenerator: use kmsg in system-level generators, journal otherwise 17214/head
Lennart Poettering [Wed, 30 Sep 2020 14:19:12 +0000 (16:19 +0200)] 
generator: use kmsg in system-level generators, journal otherwise

Fixes: #17129.
5 years agolog: normalize log target condition check
Lennart Poettering [Wed, 30 Sep 2020 14:17:12 +0000 (16:17 +0200)] 
log: normalize log target condition check

THis doesn't change the condition's logic at all, but is an attempt to
make things a bit more readable: instead of checking log_target !=
LOG_TARGET_AUTO let's actually list the targets where we want to
consider journal/syslog/kmsg, to make things a bit less confusing. After
all the message here is not to avoid them if LOG_TARGET_AUTO is set, but
to definitely do them in the other cases.

5 years agolog: update comment
Lennart Poettering [Wed, 30 Sep 2020 14:06:53 +0000 (16:06 +0200)] 
log: update comment

The logic was changed in bc694c06e60505efeb09e5278a7b22cdfa23975e, let's
update the comment accordingly.

5 years agoAdd Aiptek Hyperpen 6000U to hwdb
Jan Schlüter [Wed, 30 Sep 2020 08:34:35 +0000 (10:34 +0200)] 
Add Aiptek Hyperpen 6000U to hwdb