]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoman: specify that Domains= is a space-separated list
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 17:03:53 +0000 (18:03 +0100)] 
man: specify that Domains= is a space-separated list

Fixes #14998.

4 years agohwdb: add corrections for Olimex Teres-I to keyboard hwdb
Daniel Lublin [Tue, 3 Mar 2020 14:59:43 +0000 (15:59 +0100)] 
hwdb: add corrections for Olimex Teres-I to keyboard hwdb

The firmware of the Olimex Teres-I (a DIY laptop kit) seems to have wrong
scancodes.

Fixes #15003.

4 years agotree-wide: fix spelling of lookup and setup verbs
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 14:00:53 +0000 (15:00 +0100)] 
tree-wide: fix spelling of lookup and setup verbs

"set up" and "look up" are the verbs, "setup" and "lookup" are the nouns.

4 years agotree-wide: drop printk.devkmsg=on setting in various places
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 13:57:03 +0000 (14:57 +0100)] 
tree-wide: drop printk.devkmsg=on setting in various places

Since 6123dfaa72 this should not be necessary anymore.

4 years agoman,mkosi: use glibc-minimal-langpack for Fedora
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 13:50:58 +0000 (14:50 +0100)] 
man,mkosi: use glibc-minimal-langpack for Fedora

This saves ~24MB of space, see
https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot.

4 years agoman: bump fedora versions
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 13:48:54 +0000 (14:48 +0100)] 
man: bump fedora versions

4 years agoMerge pull request #14874 from bluca/portable_detach_now_block
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 13:40:12 +0000 (14:40 +0100)] 
Merge pull request #14874 from bluca/portable_detach_now_block

portablectl: block when stopping a unit on detach (--now)

4 years agohwdb: 60-sensor.hwdb: Add proximity sensor udev property (#14845)
Guido Günther [Tue, 3 Mar 2020 13:40:00 +0000 (14:40 +0100)] 
hwdb: 60-sensor.hwdb: Add proximity sensor udev property (#14845)

Devices with proximity sensors can specify a near level that
indicates when an object is considered close to the device.

4 years agoselinux: check return value of string_to_security_class()
Christian Göttsche [Mon, 2 Mar 2020 16:53:20 +0000 (17:53 +0100)] 
selinux: check return value of string_to_security_class()

This should never happen, but better safe than sorry.

4 years agodrop unused translations
Vladimir Yerilov [Tue, 3 Mar 2020 10:45:43 +0000 (20:45 +1000)] 
drop unused translations

4 years agoupdate Russian translation
Vladimir Yerilov [Tue, 3 Mar 2020 09:23:09 +0000 (19:23 +1000)] 
update Russian translation

4 years agosysusers: do not require /proc to be mounted 15002/head
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 10:58:07 +0000 (11:58 +0100)] 
sysusers: do not require /proc to be mounted

We're operating on known paths in root-owned directories here, so the detour
through toctou-safe methods that require /proc to be mounted is not necessary.
Should fix https://bugzilla.redhat.com/show_bug.cgi?id=1807768.

4 years agoNEWS: Use correct tense in v245 entry
Paul Menzel [Tue, 3 Mar 2020 11:19:41 +0000 (12:19 +0100)] 
NEWS: Use correct tense in v245 entry

4 years agobasic/fs-util: add a version of chmod_and_chown that doesn not use /proc
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 10:51:50 +0000 (11:51 +0100)] 
basic/fs-util: add a version of chmod_and_chown that doesn not use  /proc

4 years agosysusers: many different errnos to express one condition
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 09:18:32 +0000 (10:18 +0100)] 
sysusers: many different errnos to express one condition

See https://bugzilla.redhat.com/show_bug.cgi?id=1807768. It turns
out that sysusers cannot query if the group exists:
Failed to check if group dnsmasq already exists: No such process
...
Failed to check if group systemd-timesync already exists: No such process

When the same command is executed later, the issue does not occur. Not sure why
the behaviour in the initial transaction is different. But let's accept all
errors that the man pages list. We check if the user/group exists before creating
anyway, so this seems pretty safe.

4 years agoNEWS: two minor entries v245-rc2
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 07:41:00 +0000 (08:41 +0100)] 
NEWS: two minor entries

4 years agoNEWS: update contributors list
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2020 07:31:06 +0000 (08:31 +0100)] 
NEWS: update contributors list

4 years agohwdb: update for v245-rc2
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 20:45:56 +0000 (21:45 +0100)] 
hwdb: update for v245-rc2

4 years agonetwork: Move config_parse_ip_service_type to networkd-dhcp4.c and
Susant Sahani [Mon, 2 Mar 2020 20:44:01 +0000 (21:44 +0100)] 
network: Move config_parse_ip_service_type to networkd-dhcp4.c and
rename

4 years agoMerge pull request #14992 from keszybz/syslog-address-length-fix
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 20:31:24 +0000 (21:31 +0100)] 
Merge pull request #14992 from keszybz/syslog-address-length-fix

Syslog address length fix

4 years agoask-password-api: drop unneeded parentheses 14992/head
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 14:54:43 +0000 (15:54 +0100)] 
ask-password-api: drop unneeded parentheses

4 years agocore/execute: use return value from sockaddr_un_set_path(), remove duplicate check
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 14:54:22 +0000 (15:54 +0100)] 
core/execute: use return value from sockaddr_un_set_path(), remove duplicate check

4 years agohomed,userdb: don't use sockaddr_un_set_path() on fixed addresses
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 14:53:14 +0000 (15:53 +0100)] 
homed,userdb: don't use sockaddr_un_set_path() on fixed addresses

Let's use structured initialization and let the compiler do its job.

4 years agotree-wide: use the return value from sockaddr_un_set_path()
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 14:51:31 +0000 (15:51 +0100)] 
tree-wide: use the return value from sockaddr_un_set_path()

It fully initializes the address structure, so no need for pre-initialization,
and also returns the length of the address, so no need to recalculate using
SOCKADDR_UN_LEN().

socklen_t is unsigned, so let's not use an int for it. (It doesn't matter, but
seems cleaner and more portable to not assume anything about the type.)

4 years agotest-sizeof: print size socklen_t
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 14:52:28 +0000 (15:52 +0100)] 
test-sizeof: print size socklen_t

It returns 32 bits, unsigned on amd64, so it's probably similar everywhere
with glibc. But let's make the code generic, without assuming specific size
or signedness.

4 years agojournald: fix forwarding to syslog
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2020 13:44:31 +0000 (14:44 +0100)] 
journald: fix forwarding to syslog

.msg_namelen was set to a bogus value before we actually stored the path in the
the structure. sockaddr_un_set_path() returns the length, so just use that.

Fixes #14799.

4 years agoRequireMountsFor in systemd-nspawn should wait for machine mount
Kevin P. Fleming [Mon, 24 Feb 2020 14:54:35 +0000 (09:54 -0500)] 
RequireMountsFor in systemd-nspawn should wait for machine mount

This patch modifies the RequireMountsFor setting in systemd-nspawn@.service to wait for the machine instance directory to be mounted, not just /var/lib/machines.

Closes #14931

4 years agoMerge pull request #14991 from yuwata/man-fix-typo
Yu Watanabe [Mon, 2 Mar 2020 10:30:22 +0000 (19:30 +0900)] 
Merge pull request #14991 from yuwata/man-fix-typo

assorted tiny fixes

4 years agoshared/logs-show: Remove unused OUTPUT_FOLLOW
HATAYAMA Daisuke [Sat, 29 Feb 2020 21:31:38 +0000 (06:31 +0900)] 
shared/logs-show: Remove unused OUTPUT_FOLLOW

As of the commit aae9a96d4b3a8562af9e8c6a23871b442645b954 removing --follow
option in systemctl command, OUTPUT_FOLLOW has never been set anywhere. Let's
remove it.

The condition expression of the if-statement in show_journal() that refers to
OUTPUT_FOLLOW now thus evaluates always to true. Hence, the call of
sd_journal_wait() is in dead code, and the outer infinite for-loop is
meaningless, which we remove as cleanup.

There is no functional change by this commit.

4 years agonetwork: make Type=ether match based on iftype
Yu Watanabe [Thu, 27 Feb 2020 12:56:36 +0000 (21:56 +0900)] 
network: make Type=ether match based on iftype

This makes Type= can match the type shown in networkctl.

Closes #14952.

4 years agotest-network: add a test case for CAKE 14890/head
Yu Watanabe [Mon, 17 Feb 2020 12:03:12 +0000 (21:03 +0900)] 
test-network: add a test case for CAKE

4 years agonetwork: tc: introduce cake
Susant Sahani [Mon, 2 Mar 2020 06:54:17 +0000 (15:54 +0900)] 
network: tc: introduce cake

CAKE (Common Applications Kept Enhanced)

Please see http://man7.org/linux/man-pages/man8/tc-cake.8.html

4 years agosd-netlink: introduce sd_netlink_message_append_s8() and friends
Susant Sahani [Mon, 2 Mar 2020 06:51:16 +0000 (15:51 +0900)] 
sd-netlink: introduce sd_netlink_message_append_s8() and friends

4 years agotest-network: add a test case for sfb
Yu Watanabe [Sun, 16 Feb 2020 16:27:59 +0000 (01:27 +0900)] 
test-network: add a test case for sfb

4 years agonetwork: TC introduce sfb - Stochastic Fair Blue
Susant Sahani [Tue, 11 Feb 2020 07:24:27 +0000 (08:24 +0100)] 
network: TC introduce sfb - Stochastic Fair Blue

Please see https://www.systutorials.com/docs/linux/man/8-tc-sfb/

4 years agotest-network: add a test case for GRED
Yu Watanabe [Sun, 16 Feb 2020 16:09:05 +0000 (01:09 +0900)] 
test-network: add a test case for GRED

4 years agonetwork: TC introduce GRED, Generic Random Early Detection
Susant Sahani [Mon, 10 Feb 2020 12:24:02 +0000 (13:24 +0100)] 
network: TC introduce GRED, Generic Random Early Detection

http://tldp.org/en/Traffic-Control-HOWTO/ar01s06.html

4 years agotest-network: add a test case for PFIFO
Yu Watanabe [Sun, 16 Feb 2020 15:37:03 +0000 (00:37 +0900)] 
test-network: add a test case for PFIFO

4 years agonetwork: TC introduce PFIFO
Susant Sahani [Mon, 10 Feb 2020 15:12:21 +0000 (16:12 +0100)] 
network: TC introduce PFIFO

4 years agotest-network: add test case for HTB class
Yu Watanabe [Wed, 12 Feb 2020 00:53:15 +0000 (09:53 +0900)] 
test-network: add test case for HTB class

4 years agonetwork: tc: support HTB class
Yu Watanabe [Wed, 12 Feb 2020 00:52:56 +0000 (09:52 +0900)] 
network: tc: support HTB class

4 years agonetwork: introduce struct TClass to prepare for supporting tc class
Yu Watanabe [Tue, 11 Feb 2020 14:52:24 +0000 (23:52 +0900)] 
network: introduce struct TClass to prepare for supporting tc class

4 years agosd-netlink: introduce sd_rtnl_message_new_tclass() and friends
Yu Watanabe [Tue, 11 Feb 2020 14:12:24 +0000 (23:12 +0900)] 
sd-netlink: introduce sd_rtnl_message_new_tclass() and friends

4 years agonetwork: introduce TrafficControlKind to prepare for supporting tc class
Yu Watanabe [Mon, 10 Feb 2020 11:53:00 +0000 (20:53 +0900)] 
network: introduce TrafficControlKind to prepare for supporting tc class

4 years agotest-network: add a test case for HTB
Yu Watanabe [Mon, 10 Feb 2020 10:41:39 +0000 (19:41 +0900)] 
test-network: add a test case for HTB

4 years agonetwork: tc: support Hierarchy Token Bucket (HTB)
Yu Watanabe [Mon, 10 Feb 2020 10:41:12 +0000 (19:41 +0900)] 
network: tc: support Hierarchy Token Bucket (HTB)

4 years agonetwork: tc: make Parent= take class id
Yu Watanabe [Mon, 10 Feb 2020 08:45:24 +0000 (17:45 +0900)] 
network: tc: make Parent= take class id

4 years agotest-network: remove unnecessary dummy interface 14991/head
Yu Watanabe [Mon, 17 Feb 2020 15:12:22 +0000 (00:12 +0900)] 
test-network: remove unnecessary dummy interface

4 years agoman: fix typo
Susant Sahani [Mon, 2 Mar 2020 06:43:42 +0000 (15:43 +0900)] 
man: fix typo

4 years agoMerge pull request #14990 from keszybz/nss-homed-fix
Yu Watanabe [Mon, 2 Mar 2020 06:18:13 +0000 (15:18 +0900)] 
Merge pull request #14990 from keszybz/nss-homed-fix

Fix for lookup of groups defined by homed

4 years agounits: disable ProtectKernelLogs for machined
Guillaume Douézan-Grard [Sun, 1 Mar 2020 20:43:24 +0000 (21:43 +0100)] 
units: disable ProtectKernelLogs for machined

machined needs access to the host mount namespace to propagate bind
mounts created with the "machinectl bind" command. However, the
"ProtectKernelLogs" directive relies on mount namespaces to make the
kernel ring buffer inaccessible. This commit removes the
"ProtectKernelLogs=yes" directive from machined service file introduced
in 6168ae5.

Closes #14559.

4 years agorandom-seed: add missing header for GRND_NONBLOCK (#14988)
Romain Naour [Mon, 2 Mar 2020 05:48:21 +0000 (06:48 +0100)] 
random-seed: add missing header for GRND_NONBLOCK (#14988)

GRND_NONBLOCK has been introduced with the 3.17 kernel version [1]
while adding getrandom(2) system call.

The header missing_random.h is needed for random-seed.c when building
with old toolchain, such Sourcery CodeBench ARM 2014.05 (kernel headers
3.13).

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/454255917

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895

4 years agopo: update Polish translation
Piotr Drąg [Sun, 1 Mar 2020 13:47:36 +0000 (14:47 +0100)] 
po: update Polish translation

4 years agol10n: update Czech Translation
AsciiWolf [Sun, 1 Mar 2020 12:44:36 +0000 (13:44 +0100)] 
l10n: update Czech Translation

4 years agoMerge pull request #14983 from ssahani/dhcp-use-routes-14982
Yu Watanabe [Mon, 2 Mar 2020 05:44:00 +0000 (14:44 +0900)] 
Merge pull request #14983 from ssahani/dhcp-use-routes-14982

network: Allow to configure GW even if UseRoutes=false

4 years agoMerge pull request #14976 from keszybz/show-status-message
Zbigniew Jędrzejewski-Szmek [Sun, 1 Mar 2020 22:37:41 +0000 (23:37 +0100)] 
Merge pull request #14976 from keszybz/show-status-message

core: fix message about show status state

4 years agotest-network: add a test case for [DHCPv4] UseRoutes=no 14983/head
Yu Watanabe [Sun, 1 Mar 2020 16:28:01 +0000 (01:28 +0900)] 
test-network: add a test case for [DHCPv4] UseRoutes=no

4 years agonetwork: Allow to configure GW even UseRoutes=false
Susant Sahani [Sun, 1 Mar 2020 04:12:39 +0000 (05:12 +0100)] 
network: Allow to configure GW even UseRoutes=false

When use UseRoutes=False so the DHCP request itself does not request
for Classless Static Routes option.
As a result, the DHCP server will only respond with a Router option.
In this case since we are using the UseRoutes=False option the gateway
that comes in via the router option does not get configured.
This patch fixes theis behaviour.

4 years agorules.d: import the keyboard builtin instead of running it
Peter Hutterer [Mon, 10 Feb 2020 04:32:48 +0000 (14:32 +1000)] 
rules.d: import the keyboard builtin instead of running it

RUN seems to be used primarily for historical reasons over the more
immediate IMPORT command. As a side-effect, RUN also runs *after* all the
rules have been processed which is not really what we want here - we expect
the device to be updated immediately. Other rules that rely on accurate evdev
axes should be able to assume the axes are already present. So let's use
IMPORT here.

For consistency, the second two rules are split across multiple lines as well.

4 years agoresolve: error handling improvements
Yu Watanabe [Mon, 10 Feb 2020 05:50:03 +0000 (14:50 +0900)] 
resolve: error handling improvements

4 years agouserdb: fix lookup of groups defined by homed 14990/head
Zbigniew Jędrzejewski-Szmek [Sun, 1 Mar 2020 11:24:56 +0000 (12:24 +0100)] 
userdb: fix lookup of groups defined by homed

4 years agoFix two typos
Zbigniew Jędrzejewski-Szmek [Sun, 1 Mar 2020 11:24:25 +0000 (12:24 +0100)] 
Fix two typos

4 years agoItalian: removed spurious lines of old labels
Daniele Medri [Sun, 1 Mar 2020 08:24:12 +0000 (09:24 +0100)] 
Italian: removed spurious lines of old labels

4 years agoitalian: language updates
Daniele Medri [Thu, 27 Feb 2020 16:33:35 +0000 (17:33 +0100)] 
italian: language updates

4 years agopid1: add new mode systemd.show-status=error and use it when 'quiet' is passed 14976/head
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 16:49:50 +0000 (17:49 +0100)] 
pid1: add new mode systemd.show-status=error and use it when 'quiet' is passed

systemd.show-status=error is useful for the case where people care about errors
only.

If people want to have a quiet boot, they most likely don't want to see all
status output even if there is a delay in boot, so make "quiet" imply
systemd.show-status=error instead of systemd.show-status=auto.

Fixes #14976.

4 years agopid1: when showing error status, do not switch to status=temporary
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 16:19:46 +0000 (17:19 +0100)] 
pid1: when showing error status, do not switch to status=temporary

We would flip to status=temporary mode on the first error, and then switch back
to status=auto after the initial transaction was done. This isn't very useful,
because usually all the messages about successfully started units and not
related to the original failure. In fact, all those messages most likely cause
the information about the prime error to scroll off screen. And if the user
requested quiet boot, there's no reason to think that they care about those
success messages.

Also, when logging about dependency cycles, treat this similarly to a unit
error and show the message even if the status is "soft disabled" (before we
wouldn't show it in that case).

4 years agopid1: make cylon timeout significantly bigger when not showing any messages
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 15:29:42 +0000 (16:29 +0100)] 
pid1: make cylon timeout significantly bigger when not showing any messages

When we are booting with show-status=on, normally new status updates happen a
few times per second. Thus, it is reasonable to start showing the cylon eye
after 5 s, because that means a significant delay has happened. When we are
running with show-status=off or show-status=auto (and no error had occured),
the user is expecting maybe 15 to 90 seconds with no output (because that's
usually how long the whole boot takes). So we shouldn't bother the user with
information about a few seconds of delay. Let's make the timeout 25s if we are
not showing any messages.

Conversly, when we are outputting status messages, we can show the cylon eye
with a shorter delay, now that we removed the connection to enablement status.
Let's make this 2s, so users get feedback about delays more quickly.

4 years agopid1: touch the /run/systemd/show-status just once
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 10:30:16 +0000 (11:30 +0100)] 
pid1: touch the /run/systemd/show-status just once

We know if we created the file before, no need to repeat the operation. The
state in /run should always match our internal state. Since we call
manager_set_show_status() quite often internally, this saves quite a few
pointless syscalls.

4 years agopid1: when printing status message status, give reason
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 09:59:27 +0000 (10:59 +0100)] 
pid1: when printing status message status, give reason

4 years agocore: fix message about show status state
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 21:49:19 +0000 (22:49 +0100)] 
core: fix message about show status state

We would say "Enabling" also for SHOW_STATUS_AUTO, which is actually
"soft off". So just print the exact state to make things easier to understand.
Also add a helper function to avoid repeating the enum value list.

For #14814.

4 years agoMerge pull request #14966 from keszybz/journalctl-facilities
Yu Watanabe [Sun, 1 Mar 2020 04:17:00 +0000 (13:17 +0900)] 
Merge pull request #14966 from keszybz/journalctl-facilities

journalctl: filtering by facility

4 years agohwdb: Add Medion Akoya E1239T MD60568 to 60-sensor.hwdb
Hans de Goede [Tue, 11 Feb 2020 11:27:10 +0000 (12:27 +0100)] 
hwdb: Add Medion Akoya E1239T MD60568 to 60-sensor.hwdb

Unlike newer Medion Akoya E* models for which we have a generic
wildcard match, this model uses a somewhat older KIOX0009 accelerometer.

Not only does our generic catch all not match, we also need a different
matrix for this model, so add a model-specific entry for it.

4 years agojournalctl: implement --facility=foo 14966/head
Zbigniew Jędrzejewski-Szmek [Thu, 27 Feb 2020 20:36:42 +0000 (21:36 +0100)] 
journalctl: implement --facility=foo

Fixes #9716.

4 years agotest-network: add a test case for [IPv6Prefix] Assign=yes 14956/head
Yu Watanabe [Sat, 29 Feb 2020 15:46:56 +0000 (00:46 +0900)] 
test-network: add a test case for [IPv6Prefix] Assign=yes

4 years agonetwork: make use of generate_ipv6_eui_64_address
Susant Sahani [Fri, 28 Feb 2020 02:51:28 +0000 (03:51 +0100)] 
network: make use of generate_ipv6_eui_64_address

4 years agonetwork: introduce IPv6 prefix assign
Susant Sahani [Thu, 27 Feb 2020 12:32:43 +0000 (13:32 +0100)] 
network: introduce IPv6 prefix assign

Expose a boolean flag to automatically add an address from the delegated prefix to the interface

4 years agonetwork: radv introduce sd_radv_prefix_get_prefix
Susant Sahani [Thu, 27 Feb 2020 12:31:09 +0000 (13:31 +0100)] 
network: radv introduce sd_radv_prefix_get_prefix

4 years agonetwork: Introduce method to generate EUI-64 addresses
Susant Sahani [Thu, 27 Feb 2020 11:40:57 +0000 (12:40 +0100)] 
network: Introduce method to generate EUI-64 addresses

4 years agohomed: fix typo
Yu Watanabe [Sat, 29 Feb 2020 13:38:02 +0000 (22:38 +0900)] 
homed: fix typo

4 years agoMerge pull request #14979 from keszybz/enable-pstore-by-default
Yu Watanabe [Sat, 29 Feb 2020 14:36:23 +0000 (23:36 +0900)] 
Merge pull request #14979 from keszybz/enable-pstore-by-default

Enable pstore by default

4 years agoRevert "namespace: fix MAC labels of /dev when PrivateDevices=yes"
Topi Miettinen [Fri, 28 Feb 2020 18:43:28 +0000 (18:43 +0000)] 
Revert "namespace: fix MAC labels of /dev when PrivateDevices=yes"

This reverts commit e6e81ec0a56861b905db975fc32c83e2f2faca7d.

4 years agopid1: do not fail if we get EPERM while setting up network name
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 13:49:17 +0000 (14:49 +0100)] 
pid1: do not fail if we get EPERM while setting up network name

In a user namespace container:
Feb 28 12:45:53 0b2420135953 systemd[1]: Starting Home Manager...
Feb 28 12:45:53 0b2420135953 systemd[21]: systemd-homed.service: Failed to set up network namespacing: Operation not permitted
Feb 28 12:45:53 0b2420135953 systemd[21]: systemd-homed.service: Failed at step NETWORK spawning /usr/lib/systemd/systemd-homed: Operation not permitted
Feb 28 12:45:53 0b2420135953 systemd[1]: systemd-homed.service: Main process exited, code=exited, status=225/NETWORK
Feb 28 12:45:53 0b2420135953 systemd[1]: systemd-homed.service: Failed with result 'exit-code'.
Feb 28 12:45:53 0b2420135953 systemd[1]: Failed to start Home Manager.

We should treat this similarly to the case where network namespace are not
supported at all.

https://bugzilla.redhat.com/show_bug.cgi?id=1807465

4 years agoexecute: Make '+' exec prefix ignore PrivateTmp=yes
Nate Jones [Sat, 29 Feb 2020 01:31:23 +0000 (20:31 -0500)] 
execute: Make '+' exec prefix ignore PrivateTmp=yes

The man pages state that the '+' prefix in Exec* directives should
ignore filesystem namespacing options such as PrivateTmp. Now it does.

This is very similar to #8842, just with PrivateTmp instead of
PrivateDevices.

4 years agopresets: enable systemd-pstore.service by default 14979/head
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 09:01:39 +0000 (10:01 +0100)] 
presets: enable systemd-pstore.service by default

It has no effect is the pstore is not used, and prevents the non-volatile
storage from filling up if is used by the kernel.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952767

4 years agoman: add .service suffix to systemd-pstore(8)
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 08:57:06 +0000 (09:57 +0100)] 
man: add .service suffix to systemd-pstore(8)

That is the pattern that we always use with executables not in
$PATH.

4 years agoman: tweak markup in systemd-pstore.service(8)
Zbigniew Jędrzejewski-Szmek [Sat, 29 Feb 2020 08:48:44 +0000 (09:48 +0100)] 
man: tweak markup in systemd-pstore.service(8)

4 years agoMerge pull request #14968 from keszybz/docs
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 20:36:12 +0000 (21:36 +0100)] 
Merge pull request #14968 from keszybz/docs

Assorted updates to documentation

4 years agoman: add missing refnames for two binary names 14968/head
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 16:02:23 +0000 (17:02 +0100)] 
man: add missing refnames for two binary names

We generally want the man page to also be available under the
binary name, but the <refname> tags were missing in two cases.

4 years agodocs: interlink the docs to make it easier to navigate
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 10:47:03 +0000 (11:47 +0100)] 
docs: interlink the docs to make it easier to navigate

4 years agodocs: say XBOOTLDR instead of just giving the GPT identifier
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 10:45:30 +0000 (11:45 +0100)] 
docs: say XBOOTLDR instead of just giving the GPT identifier

Fixes #14832.

Also, say "MBR partition table" and not "MBR disk label". "disk label" doesn't
seem to mean anything.

4 years agomeson: explain GIT_VERSION and PROJECT_VERSION
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 10:09:16 +0000 (11:09 +0100)] 
meson: explain GIT_VERSION and PROJECT_VERSION

Fixes #11415.

4 years agoman: fix links to ssh(1) and sshd(8)
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 10:27:09 +0000 (11:27 +0100)] 
man: fix links to ssh(1) and sshd(8)

'openssh' wasn't even defined.

4 years agoman: add explanation where environment.d are inherited
Zbigniew Jędrzejewski-Szmek [Fri, 28 Feb 2020 09:56:38 +0000 (10:56 +0100)] 
man: add explanation where environment.d are inherited

This is far from trivial, I guess.

Fixes #14714.

4 years agonetwork: fix typo in comment
Yu Watanabe [Fri, 28 Feb 2020 11:59:16 +0000 (20:59 +0900)] 
network: fix typo in comment

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 agonetwork: assume Scope=host when Address= is loopback address
Yu Watanabe [Thu, 27 Feb 2020 17:10:15 +0000 (02:10 +0900)] 
network: assume Scope=host when Address= is loopback address

Fixes #14903.

4 years agonetwork: Add support in networkctl for DHCP server forcerenew 14904/head
Susant Sahani [Wed, 19 Feb 2020 06:42:26 +0000 (07:42 +0100)] 
network: Add support in networkctl for DHCP server forcerenew

4 years agoMerge pull request #14964 from yuwata/conf-parser-fix-line-number
Anita Zhang [Fri, 28 Feb 2020 01:16:35 +0000 (17:16 -0800)] 
Merge pull request #14964 from yuwata/conf-parser-fix-line-number

conf-parser: fix line number in error message

4 years agoMerge pull request #14965 from keszybz/journal-rotation-hint
Anita Zhang [Fri, 28 Feb 2020 01:16:02 +0000 (17:16 -0800)] 
Merge pull request #14965 from keszybz/journal-rotation-hint

systemctl: be more specific when emitting warning about rotated journal

4 years agoMerge pull request #14960 from yuwata/udevadm-info-export-db-error-message
Anita Zhang [Fri, 28 Feb 2020 01:10:19 +0000 (17:10 -0800)] 
Merge pull request #14960 from yuwata/udevadm-info-export-db-error-message

udevadm: show more error message during exporting database