]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agogrowfs: port over to resize_fs() 14252/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2019 09:15:49 +0000 (10:15 +0100)] 
growfs: port over to resize_fs()

4 years agogrowfs: define main function through macro
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2019 08:22:13 +0000 (09:22 +0100)] 
growfs: define main function through macro

4 years agoshared: add new wrapper for online fs resizing ioctls 14221/head
Lennart Poettering [Thu, 27 Dec 2018 13:31:27 +0000 (14:31 +0100)] 
shared: add new wrapper for online fs resizing ioctls

4 years agomissing: add XFS magic
Lennart Poettering [Fri, 28 Dec 2018 18:01:53 +0000 (19:01 +0100)] 
missing: add XFS magic

4 years agoman: document journal rate limit burst multiplier
Charles (Chas) Williams [Thu, 21 Nov 2019 15:26:24 +0000 (10:26 -0500)] 
man: document journal rate limit burst multiplier

The actual burst limit is modified by the remaining disk space. This
isn't mentioned anywhere in the available documentation and might be a
source of surprise for an end user expecting certain behaviors.

4 years agosd-boot: Add a 0.1 second delay before key-probing for showing menu
Leonid Bloch [Sun, 1 Dec 2019 23:05:02 +0000 (01:05 +0200)] 
sd-boot: Add a 0.1 second delay before key-probing for showing menu

If there is no boot menu timeout, pressing a key during boot should get
the boot menu displayed. However, on some systems the keyboard is not
initialized right away, which causes the menu to be inaccessible if no
timeout is specified.

To resolve this, if the error is "not ready" after the initial attempt of
detection, wait for 0.1 second and retry. This solves the problem
described above on all the tested systems.

The reason for just a single retry, and not retrying while "not ready",
is that some firmwares continue to return the "not ready" error on
every probe attempt if no key is pressed.

Signed-off-by: Leonid Bloch <lb.workbox@gmail.com>
4 years agoudev: Ensure udev_event_spawn reads stdout
Paul Davey [Tue, 26 Nov 2019 23:51:59 +0000 (12:51 +1300)] 
udev: Ensure udev_event_spawn reads stdout

When running the program with udev_event_spawn it is possible to miss
output in stdout when the program exits causing the result to be empty
which can cause rules using the result to not function correctly.

This is due to the on_spawn_sigchld callback being processed while IO is
still pending and causing the event loop to exit.

To correct this the sigchld event source is made a lower priority than
the other event sources to ensure it is processed after IO.  This
requires changing the IO event source to oneshot and re-enabling it when
valid data is read but not for EOF, this prevents the empty pipes
constantly generating IO events.

4 years agoMerge pull request #14133 from keur/clear_ambient_inherited
Lennart Poettering [Wed, 4 Dec 2019 09:30:58 +0000 (10:30 +0100)] 
Merge pull request #14133 from keur/clear_ambient_inherited

Clear ambient inherited

4 years agoMerge pull request #14177 from keszybz/use-initrd.target
Lennart Poettering [Wed, 4 Dec 2019 09:30:32 +0000 (10:30 +0100)] 
Merge pull request #14177 from keszybz/use-initrd.target

Use initrd.target in the initramfs

4 years agocore: reload SELinux label cache on daemon-reload
Christian Göttsche [Wed, 27 Nov 2019 18:43:47 +0000 (19:43 +0100)] 
core: reload SELinux label cache on daemon-reload

Reloading the SELinux label cache here enables a light-wight follow-up of a SELinux policy change, e.g. adding a label for a RuntimeDirectory.

Closes: #13363
4 years agoMerge pull request #14189 from cgzones/selinux_tmpfiles
Lennart Poettering [Wed, 4 Dec 2019 09:29:22 +0000 (10:29 +0100)] 
Merge pull request #14189 from cgzones/selinux_tmpfiles

Selinux tmpfiles

4 years agopid1: add new kernel cmdline arg systemd.cpu_affinity=
Lennart Poettering [Tue, 26 Nov 2019 08:46:00 +0000 (09:46 +0100)] 
pid1: add new kernel cmdline arg systemd.cpu_affinity=

Let's allow configuration of the CPU affinity via the kernel cmdline,
overriding CPUAffinity= in /etc/systemd/system.conf

Prompted by:

https://lists.freedesktop.org/archives/systemd-devel/2019-November/043754.html

4 years agoFix DPI for MX Master 2s bluetooth mouse
Raphael [Fri, 29 Nov 2019 17:34:54 +0000 (18:34 +0100)] 
Fix DPI for MX Master 2s bluetooth mouse

Mouse behaviour is unusably slow disregardless of mouse speed settings.

4 years agoCreate parent directories when creating systemd-private subdirs
Jérémy Rosen [Fri, 29 Nov 2019 19:28:35 +0000 (20:28 +0100)] 
Create parent directories when creating systemd-private subdirs

This is needed when systemd is compiled without systemd-tmpfiles

4 years agoMerge pull request #14211 from yuwata/support-nlmsgerr_attr_msg
Zbigniew Jędrzejewski-Szmek [Wed, 4 Dec 2019 08:15:23 +0000 (09:15 +0100)] 
Merge pull request #14211 from yuwata/support-nlmsgerr_attr_msg

Support NLMSGERR_ATTR_MSG

4 years agonetwork: do not return error but return UINT64_MAX if speed meter is disabled
Yu Watanabe [Mon, 2 Dec 2019 15:29:44 +0000 (00:29 +0900)] 
network: do not return error but return UINT64_MAX if speed meter is disabled

Fixes #14222.

4 years agoAlienware M17xR3 ejectcd button fix
lothrond [Wed, 4 Dec 2019 04:29:01 +0000 (23:29 -0500)] 
Alienware M17xR3 ejectcd button fix

4 years agocore: swap priority can be negative
Topi Miettinen [Tue, 3 Dec 2019 18:36:37 +0000 (20:36 +0200)] 
core: swap priority can be negative

Negative priorities are useful for swap targets which should be only used as
last resort.

4 years agohwdb: Set trackball property for Logitech MX Ergo (#14231)
xduugu [Tue, 3 Dec 2019 23:32:50 +0000 (23:32 +0000)] 
hwdb: Set trackball property for Logitech MX Ergo (#14231)

4 years agonetworkctl: fix to show BSSID
Yu Watanabe [Mon, 2 Dec 2019 15:39:28 +0000 (00:39 +0900)] 
networkctl: fix to show BSSID

This fixes an issue caused by a typo in
78404d22cca9cbbc8adb9dd7248da2f2725b1dbc.

4 years agosystemctl: enhance message about kexec missing kernel
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2019 11:54:52 +0000 (11:54 +0000)] 
systemctl: enhance message about kexec missing kernel

Fixes #7730.

4 years agoTODO: remove obsolete entries
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2019 20:37:48 +0000 (21:37 +0100)] 
TODO: remove obsolete entries

4 years agoinitrd: fix systemd.debug-shell & friends 14177/head
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2019 13:48:27 +0000 (14:48 +0100)] 
initrd: fix systemd.debug-shell & friends

They would get assigned to an inactive target in the initramfs.

4 years agoFixup typo in NEWS
Slava Kardakov [Mon, 2 Dec 2019 20:39:59 +0000 (23:39 +0300)] 
Fixup typo in NEWS

4 years agoMerge pull request #14216 from jwrdegoede/hwdb-teclast-sensors
Lennart Poettering [Mon, 2 Dec 2019 08:58:31 +0000 (09:58 +0100)] 
Merge pull request #14216 from jwrdegoede/hwdb-teclast-sensors

hwdb: sort Teclast sensors entries and add a new quirk for the Teclast X89

4 years agohwdb: Add accel orientation quirk for Teclast X89 tablet 14216/head
Hans de Goede [Sun, 1 Dec 2019 14:55:00 +0000 (15:55 +0100)] 
hwdb: Add accel orientation quirk for Teclast X89 tablet

Add a quirk to fix the accelerometer orientation on the Teclast X89 tablet.

4 years agohwdb: Sort 60-sensor.hwdb Teclast entries alphabetically
Hans de Goede [Sun, 1 Dec 2019 14:46:32 +0000 (15:46 +0100)] 
hwdb: Sort 60-sensor.hwdb Teclast entries alphabetically

Sort 60-sensor.hwdb Teclast entries alphabetically (by model name),
and add a comment with the model name to the few entries which were
missing this.

4 years agosemaphore: switch branch to debian/master
Michael Biebl [Sat, 30 Nov 2019 18:05:53 +0000 (19:05 +0100)] 
semaphore: switch branch to debian/master

4 years agonetwork: include NLMSGERR_ATTR_MSG attribute in error message 14211/head
Yu Watanabe [Sat, 30 Nov 2019 06:54:07 +0000 (15:54 +0900)] 
network: include NLMSGERR_ATTR_MSG attribute in error message

4 years agosd-netlink: support NLMSGERR_ATTR_MSG
Yu Watanabe [Sat, 30 Nov 2019 06:01:06 +0000 (15:01 +0900)] 
sd-netlink: support NLMSGERR_ATTR_MSG

From v4.12 the kernel appends some attributes to netlink acks
containing a textual description of the error and other fields.
This makes sd-netlink parse the attributes.

4 years agoupdate TODO
Lennart Poettering [Fri, 29 Nov 2019 16:31:03 +0000 (17:31 +0100)] 
update TODO

4 years agoMerge pull request #14201 from poettering/v244-final v244
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2019 16:32:36 +0000 (17:32 +0100)] 
Merge pull request #14201 from poettering/v244-final

V244 final

4 years agonspawn: allow Capability=all in systemd.nspawn [EXEC] section
afg [Fri, 29 Nov 2019 09:08:05 +0000 (17:08 +0800)] 
nspawn: allow Capability=all in systemd.nspawn [EXEC] section

Just like --capability=all is allowed in the systemd-nspawn
command line.

4 years agohwdb: run another 'hwdb-update' 14201/head
Lennart Poettering [Fri, 29 Nov 2019 13:35:54 +0000 (14:35 +0100)] 
hwdb: run another 'hwdb-update'

4 years agoNEWS: update for final 244
Lennart Poettering [Fri, 29 Nov 2019 13:29:03 +0000 (14:29 +0100)] 
NEWS: update for final 244

4 years agoREADME: move logo up, like on brand.systemd.io README
Lennart Poettering [Fri, 29 Nov 2019 11:57:22 +0000 (12:57 +0100)] 
README: move logo up, like on brand.systemd.io README

4 years agoREADME: use more appropriate logo format for README
Lennart Poettering [Fri, 29 Nov 2019 10:50:59 +0000 (11:50 +0100)] 
README: use more appropriate logo format for README

4 years agoupdate TODO
Lennart Poettering [Fri, 29 Nov 2019 10:51:04 +0000 (11:51 +0100)] 
update TODO

4 years agoman: document initrd.target
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2019 09:01:27 +0000 (10:01 +0100)] 
man: document initrd.target

4 years agopid1: use initrd.target in the initramfs by default
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2019 08:48:26 +0000 (09:48 +0100)] 
pid1: use initrd.target in the initramfs by default

This makes the code do what the documentation says. The code had no inkling
about initrd.target, so I think this change is fairly risky. As a fallback,
default.target will be loaded, so initramfses which relied on current behaviour
will still work, as along as they don't have a different initrd.target.

In an initramfs created with recent dracut:
$ ls -l usr/lib/systemd/system/{default.target,initrd.target}
lrwxrwxrwx. usr/lib/systemd/system/default.target -> initrd.target
-rw-r--r--. usr/lib/systemd/system/initrd.target
So at least for dracut, there should be no difference.

Also avoid a pointless allocation.

4 years agonetwork: fix double free()
Yu Watanabe [Thu, 28 Nov 2019 15:37:44 +0000 (00:37 +0900)] 
network: fix double free()

4 years agoman: use literal tag at one more place
Yu Watanabe [Thu, 28 Nov 2019 18:26:57 +0000 (03:26 +0900)] 
man: use literal tag at one more place

4 years agoman: document sd_event_source_set_floating()
Lennart Poettering [Wed, 27 Nov 2019 16:11:44 +0000 (17:11 +0100)] 
man: document sd_event_source_set_floating()

Let's make sure we get back to 100% man page documentation coverage of
our sd-event APIs. We are bad enough at the others, let's get these ones
right at least.

4 years agoman: use mkswap@ instead of makeswap@
Jan Tojnar [Thu, 28 Nov 2019 11:42:01 +0000 (12:42 +0100)] 
man: use mkswap@ instead of makeswap@

That is what is linked from systemd.swap(5) and also what the systemd.generator produces.

4 years agojournald: don't ask for the machine ID if we don't need it
Lennart Poettering [Mon, 25 Nov 2019 13:08:53 +0000 (14:08 +0100)] 
journald: don't ask for the machine ID if we don't need it

4 years agojournalctl: pager_close() calls fflush(stdout) anyway as first thing
Lennart Poettering [Tue, 26 Nov 2019 10:28:33 +0000 (11:28 +0100)] 
journalctl: pager_close() calls fflush(stdout) anyway as first thing

4 years agojournald: remove unused field
Lennart Poettering [Wed, 27 Nov 2019 12:03:26 +0000 (13:03 +0100)] 
journald: remove unused field

4 years agojournalctl: return EOPNOTSUPP if pcre is not enabled
Lennart Poettering [Mon, 25 Nov 2019 17:44:40 +0000 (18:44 +0100)] 
journalctl: return EOPNOTSUPP if pcre is not enabled

4 years agoman: don't claim journalctl would still use signals
Lennart Poettering [Wed, 27 Nov 2019 18:24:44 +0000 (19:24 +0100)] 
man: don't claim journalctl would still use signals

It's using the varlink interface these days.

4 years agoman: add reference to journald man page from systemd.journal-fields(7)
Lennart Poettering [Wed, 27 Nov 2019 20:29:32 +0000 (21:29 +0100)] 
man: add reference to journald man page from systemd.journal-fields(7)

We had none so far. Which is weird.

4 years agoman: apparently we lowercased STDOUT/STDERR everywhere else in docs, do so here too
Lennart Poettering [Thu, 28 Nov 2019 09:01:49 +0000 (10:01 +0100)] 
man: apparently we lowercased STDOUT/STDERR everywhere else in docs, do so here too

4 years agoMerge pull request #14179 from poettering/help-fixlets
Lennart Poettering [Thu, 28 Nov 2019 13:22:30 +0000 (14:22 +0100)] 
Merge pull request #14179 from poettering/help-fixlets

--help fixlets

4 years agoman: drop reference to machined, add one for journald instead
Lennart Poettering [Thu, 28 Nov 2019 09:36:08 +0000 (10:36 +0100)] 
man: drop reference to machined, add one for journald instead

We dropped documentation from sd_journal_open_container() long ago
(since the call is obsolete), hence drop the reference to machined. But
add one in for journald instead.

4 years agotmpfiles: create with correct MAC label on option C 14189/head
Christian Göttsche [Thu, 28 Nov 2019 11:18:04 +0000 (12:18 +0100)] 
tmpfiles: create with correct MAC label on option C

Closes: #10855
4 years agocopy: add flag COPY_MAC_CREATE to create with correct label
Christian Göttsche [Thu, 28 Nov 2019 11:17:48 +0000 (12:17 +0100)] 
copy: add flag COPY_MAC_CREATE to create with correct label

Useful for MAC aware file creation like in systemd-tmpfiles.

4 years agonotify: add color to --help 14179/head
Lennart Poettering [Thu, 28 Nov 2019 09:51:05 +0000 (10:51 +0100)] 
notify: add color to --help

We do that for most tools now, do so here now, too.

4 years agonspawn: highlight description string in --help text
Lennart Poettering [Thu, 28 Nov 2019 09:51:31 +0000 (10:51 +0100)] 
nspawn: highlight description string in --help text

We do so in most tools now, do so here, too.

4 years agoMerge pull request #14166 from keszybz/transient-unit-settings
Yu Watanabe [Thu, 28 Nov 2019 08:23:30 +0000 (17:23 +0900)] 
Merge pull request #14166 from keszybz/transient-unit-settings

Fix docs and some transient unit property passing

4 years agotest-functions: make sure we use the right library path for binaries without RPATH
Lennart Poettering [Wed, 27 Nov 2019 17:25:52 +0000 (18:25 +0100)] 
test-functions: make sure we use the right library path for binaries without RPATH

Meson appears to set the rpath only for some binaries it builds, but not
all. (The rules are not clear to me, but that's besides the point of
this commit).

Let's make sure if our test script operates on a binary that has no
rpath set we fall back preferably to the BUILD_DIR rather than directly
to the host.

This matters if a test uses a libsystemd symbol introduced in a version
newer than the one on the host. In that case "ldd" will not work on the
test binary if rpath is not set. With this fix that behaviour is
corrected, and "ldd" works correctly even in this case.

(Or in other words: before this fix on binaries lacking rpath we'd base
dependency info on the libraries of the host, not the buidl tree, if
they exist in both.)

4 years agotree-wide: normalize includes of public headers
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2019 08:14:22 +0000 (09:14 +0100)] 
tree-wide: normalize includes of public headers

They are supposed to go into a sectinon of their own.

4 years agocore: use SPECIAL_DEFAULT_TARGET more
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2019 08:13:45 +0000 (09:13 +0100)] 
core: use SPECIAL_DEFAULT_TARGET more

4 years agoshared/ask-password-api: modify keyctl break value
Kevin Kuehler [Thu, 28 Nov 2019 00:35:15 +0000 (16:35 -0800)] 
shared/ask-password-api: modify keyctl break value

We can break if KEYCTL_READ return value is equal to our buffer size.

From keyctl(2):

On a successful return, the return value is always the total size of
the payload data.  To determine whether the buffer was of sufficient
size, check to see that the return value is less than or equal to the
value supplied in arg4.

4 years agoexecute: Call capability_ambient_set_apply even if ambient set is 0 14133/head
Kevin Kuehler [Tue, 26 Nov 2019 19:20:14 +0000 (11:20 -0800)] 
execute: Call capability_ambient_set_apply even if ambient set is 0

The function capability_ambient_set_apply() now drops capabilities not
in the capability_ambient_set(), so it is necessary to call it when
the ambient set is empty.

Fixes #13163

4 years agotest-capability: Modify ambient capability tests to test clearing caps
Kevin Kuehler [Tue, 26 Nov 2019 01:52:42 +0000 (17:52 -0800)] 
test-capability: Modify ambient capability tests to test clearing caps

Change test_set_ambient_caps() to test_apply_ambient_caps(), since the
function capability_ambient_set_apply() not only sets ambient
capabilities, but clears inherited capabilities that are not explicitly
requested by the caller.

4 years agosystemctl: fix indentation of cgroup tree
Lennart Poettering [Wed, 27 Nov 2019 13:52:30 +0000 (14:52 +0100)] 
systemctl: fix indentation of cgroup tree

Follow-up for 0d588deae21234c9a9d64d9eddbcbe7da5c9a39d.

In that commit the output got moved a 2 chars to the right, hence make
sure to also shift the cgroup tree to the right, so that it gets
properly aligned under the cgroup path again.

4 years agocryptsetup: reduce the chance that we will be OOM killed
Michal Sekletár [Wed, 27 Nov 2019 13:27:58 +0000 (14:27 +0100)] 
cryptsetup: reduce the chance that we will be OOM killed

cryptsetup introduced optional locking scheme that should serialize
unlocking keyslots which use memory hard key derivation
function (argon2). Using the serialization should prevent OOM situation
in early boot while unlocking encrypted volumes.

4 years agoMerge pull request #14164 from poettering/exec-start-transient-fix
Lennart Poettering [Wed, 27 Nov 2019 17:32:30 +0000 (18:32 +0100)] 
Merge pull request #14164 from poettering/exec-start-transient-fix

fix ExecStart= line generation for transient units

4 years agoMerge pull request #14145 from poettering/process-bypass
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 13:53:39 +0000 (14:53 +0100)] 
Merge pull request #14145 from poettering/process-bypass

/proc bypass in various process-util.c calls

4 years agodoc: update list of transient units 14166/head
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:47:01 +0000 (13:47 +0100)] 
doc: update list of transient units

Doing this manually seem to work only so well, but it is indeed hard to generate
automatically. Let's add the stuff that is missing for now.

AddRef= is not a unit file setting, remove it from the list.

4 years agopid1: make TimeoutAbortSec settable for transient units
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:42:57 +0000 (13:42 +0100)] 
pid1: make TimeoutAbortSec settable for transient units

It was documented to be, but implementation was missing.

4 years agopid1: fix setting of DefaultTimeoutAbortSec
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 12:13:17 +0000 (13:13 +0100)] 
pid1: fix setting of DefaultTimeoutAbortSec

This partially reverts a07a7324adf504381e9374d1f1a5db6edaa46435.
We have two pieces of information: the value and a boolean.
config_parse_timeout_abort() added in the reverted commit would write
the boolean to the usec_t value, making a mess.

The code is reworked to have just one implementation and two wrappers
which pass two pointers.

4 years agoshared/conf-parser: remove unnecessary whitespace skipping
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 11:33:48 +0000 (12:33 +0100)] 
shared/conf-parser: remove unnecessary whitespace skipping

The conf-parser machinery already removed whitespace before and after "=", no
need to repeat this step.

The test is adjusted to pass. It was testing an code path that doesn't happen
normally, no point in doing that.

4 years agoshared/bus-unit-util: word wrap
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 10:44:57 +0000 (11:44 +0100)] 
shared/bus-unit-util: word wrap

Having all the names squished on the same line makes it hard to see
what settings are missing.

4 years agocore: prefer non-@ syntax for ExecStart= 14164/head
Lennart Poettering [Wed, 27 Nov 2019 11:05:57 +0000 (12:05 +0100)] 
core: prefer non-@ syntax for ExecStart=

If the zeroth and first argv[] element on the same we don't need to
generate the "@" syntax for ExecStart= and friends.

4 years agocore: write out correct field name when creating transient service units
Lennart Poettering [Wed, 27 Nov 2019 11:05:38 +0000 (12:05 +0100)] 
core: write out correct field name when creating transient service units

4 years agoMerge pull request #14160 from mwilck/fix-shutdown-hang
Yu Watanabe [Wed, 27 Nov 2019 10:16:12 +0000 (19:16 +0900)] 
Merge pull request #14160 from mwilck/fix-shutdown-hang

Fix shutdown hang caused by recent udev change

4 years agodoc: drop rhs from transient settings list
Zbigniew Jędrzejewski-Szmek [Wed, 27 Nov 2019 10:04:36 +0000 (11:04 +0100)] 
doc: drop rhs from transient settings list

I don't know why these particular ones had them.

4 years agoman/systemd.link: Add missing verb *be*
Paul Menzel [Tue, 26 Nov 2019 21:52:17 +0000 (22:52 +0100)] 
man/systemd.link: Add missing verb *be*

4 years agoudevd: don't use monitor after manager_exit() 14160/head
Martin Wilck [Tue, 26 Nov 2019 17:39:09 +0000 (18:39 +0100)] 
udevd: don't use monitor after manager_exit()

If udevd receives an exit signal, it releases its reference on the udev
monitor in manager_exit(). If at this time a worker is hanging, and if
the event timeout for this worker expires before udevd exits, udevd
crashes in on_sigchld()->udev_monitor_send_device(), because the monitor
has already been freed.

Fix this by testing the validity of manager->monitor in on_sigchld().

4 years agoRevert "udevd: fix crash when workers time out after exit is signal caught"
Martin Wilck [Tue, 26 Nov 2019 17:36:46 +0000 (18:36 +0100)] 
Revert "udevd: fix crash when workers time out after exit is signal caught"

This reverts commit 5db454b8031c58a743cc4ee3d5d1dd01dcff17e8.
See https://github.com/systemd/systemd/issues/14128

4 years agobasic: Drop ambient inherited capabilities by default
Kevin Kuehler [Sun, 24 Nov 2019 09:27:09 +0000 (01:27 -0800)] 
basic: Drop ambient inherited capabilities by default

Modify the functions capability_update_inherited_set() and
capability_ambient_set_apply() to drop capabilities not explicitly
requested by the user.

4 years agotest-fileio: cast EOF to (char) before comparing with char explicitly
Lennart Poettering [Mon, 25 Nov 2019 14:15:38 +0000 (15:15 +0100)] 
test-fileio: cast EOF to (char) before comparing with char explicitly

EOF is defined to -1, hence on platforms that have "char" unsigned we
can't compare it as-is, except if we accept an implicit cast. let's make
it an explicit cast, acknowledging the issue.

Fixes: #14118
4 years agoudev: tiny update for log messages
Yu Watanabe [Tue, 26 Nov 2019 05:01:25 +0000 (14:01 +0900)] 
udev: tiny update for log messages

4 years agonetwork: also assume Table=local for ipv6 route if Type=local, broadcast, anycast...
Yu Watanabe [Tue, 26 Nov 2019 03:41:54 +0000 (12:41 +0900)] 
network: also assume Table=local for ipv6 route if Type=local, broadcast, anycast or nat (#14148)

Also, if Type=multicast and scope is not set, then assume Scope=link.

Fixes #14122.

4 years agoMerge pull request #14134 from keszybz/variables-and-docs
Yu Watanabe [Tue, 26 Nov 2019 03:40:30 +0000 (12:40 +0900)] 
Merge pull request #14134 from keszybz/variables-and-docs

Documentation and option parsing fixes

4 years agoMerge pull request #14151 from mk-fg/fix-timer-dump-syntax-bug
Anita Zhang [Mon, 25 Nov 2019 23:56:33 +0000 (15:56 -0800)] 
Merge pull request #14151 from mk-fg/fix-timer-dump-syntax-bug

core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezoneChange=

4 years agocore.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezone... 14151/head
Mike Kazantsev [Mon, 25 Nov 2019 23:29:03 +0000 (04:29 +0500)] 
core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezoneChange=

4 years agoMerge pull request #14112 from keszybz/restart-no-log
Anita Zhang [Mon, 25 Nov 2019 20:09:00 +0000 (12:09 -0800)] 
Merge pull request #14112 from keszybz/restart-no-log

core/service: downgrade "scheduling restart" message to debug

4 years agoprocess-util: shortcut get_process_state() for our own process 14145/head
Lennart Poettering [Mon, 25 Nov 2019 13:59:01 +0000 (14:59 +0100)] 
process-util: shortcut get_process_state() for our own process

4 years agoprocess-util: shortcut get_process_comm() for our own process
Lennart Poettering [Mon, 25 Nov 2019 13:58:24 +0000 (14:58 +0100)] 
process-util: shortcut get_process_comm() for our own process

Let's bypass /proc if we can.

4 years agoprocess-util: tweak get_process_cwd() when calling for own process
Lennart Poettering [Mon, 25 Nov 2019 13:55:50 +0000 (14:55 +0100)] 
process-util: tweak get_process_cwd() when calling for own process

Let's bypass /proc if we can.

4 years agoman: refer to systemd.syntax(7) from systemd.nspawn(5) 14134/head
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 15:14:52 +0000 (16:14 +0100)] 
man: refer to systemd.syntax(7) from systemd.nspawn(5)

systemd.nspawn(5) contained a partial repeat of the stuff that is now in the
dedicated man page. Let's just refer to that.

While at it, do s/searched/searched for/ where appropriate and reword some
sentences for brevity.

4 years agofuzz-unit-file: add new items to the corpus
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 13:19:50 +0000 (14:19 +0100)] 
fuzz-unit-file: add new items to the corpus

4 years agopid1: fix the names of AllowedCPUs= and AllowedMemoryNodes=
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 13:14:43 +0000 (14:14 +0100)] 
pid1: fix the names of AllowedCPUs= and AllowedMemoryNodes=

The original PR was submitted with CPUSetCpus and CPUSetMems, which was later
changed to AllowedCPUs and AllowedMemmoryNodes everywhere (including the parser
used by systemd-run), but not in the parser for unit files.

Since we already released -rc1, let's keep support for the old names. I think
we can remove it in a release or two if anyone remembers to do that.

Fixes #14126. Follow-up for 047f5d63d7a1ab75073f8485e2f9b550d25b0772.

4 years agoMerge pull request #14129 from jlxawk/hwdb-sensor-jumper-ezpad-go
hadess [Mon, 25 Nov 2019 10:59:38 +0000 (11:59 +0100)] 
Merge pull request #14129 from jlxawk/hwdb-sensor-jumper-ezpad-go

hwdb: add accel sensor entry for Jumper EZpad Go

4 years agotest-proc-cmdline: disable EFI-dependent tests when EFI is disabled
Mike Gilbert [Mon, 25 Nov 2019 01:24:44 +0000 (20:24 -0500)] 
test-proc-cmdline: disable EFI-dependent tests when EFI is disabled

Fixes: https://github.com/systemd/systemd/issues/14116
4 years agohwdb: add bluetooth entry for Logitech MX Anywhere 2S
Haochen Tong [Wed, 20 Nov 2019 20:47:14 +0000 (21:47 +0100)] 
hwdb: add bluetooth entry for Logitech MX Anywhere 2S

4 years agoman: restores ConditionVirtualization documentation (#14138)
Steve Ramage [Mon, 25 Nov 2019 07:31:39 +0000 (23:31 -0800)] 
man: restores ConditionVirtualization documentation (#14138)

Resolves #14137. Error introduced in 337b733449924860eb71190e6eff95729909ede6.

4 years agoman: document all pager variables for systemctl and systemd
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 12:59:32 +0000 (13:59 +0100)] 
man: document all pager variables for systemctl and systemd

In those two pages, we need to include individual entries with xi:include to
merge the list less-variables.xml with the other entries, which is obviously
error prone. All variables are supported in both tools so add them.

4 years agobasic/terminal-util: add support for $NO_COLOR
Zbigniew Jędrzejewski-Szmek [Sun, 24 Nov 2019 12:59:22 +0000 (13:59 +0100)] 
basic/terminal-util: add support for $NO_COLOR

See inline comments. Fixes #13752.