]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoman: document that program invocation will fail if the User= does not exist
Lennart Poettering [Thu, 16 Jan 2020 11:14:03 +0000 (12:14 +0100)] 
man: document that program invocation will fail if the User= does not exist

Fixes: #14565
4 years agodocs: clarify that we don't want to own $BOOT exclusively
Lennart Poettering [Thu, 16 Jan 2020 11:09:29 +0000 (12:09 +0100)] 
docs: clarify that we don't want to own $BOOT exclusively

Let's be clearer here.

Prompted by a quick discussion I had with @gicmo.

4 years agoDisable reading SystemdOptions EFI Var when in SecureBoot mode
Arian van Putten [Wed, 15 Jan 2020 16:10:11 +0000 (17:10 +0100)] 
Disable reading SystemdOptions EFI Var when in SecureBoot mode

In SecureBoot mode this is probably not what you want. As your cmdline
is cryptographically signed like when using Type #2 EFI Unified Kernel
Images (https://systemd.io/BOOT_LOADER_SPECIFICATION/) The user's
intention is then that the cmdline should not be modified.  You want to
make sure that the system starts up as exactly specified in the signed
artifact.

4 years agoMerge pull request #14585 from keszybz/sysctl-downgrade-messages
Lennart Poettering [Thu, 16 Jan 2020 17:45:29 +0000 (18:45 +0100)] 
Merge pull request #14585 from keszybz/sysctl-downgrade-messages

Downgrade sysctl message to log_debug in containers

4 years agoClarify journald.conf MaxLevelStore documentation
Luca Boccassi [Thu, 16 Jan 2020 16:24:07 +0000 (16:24 +0000)] 
Clarify journald.conf MaxLevelStore documentation

'stored on disk' gives the impression that this option affects only
permanent storage, even though it affects everything the journal
records, regardless of the storage type.
Use 'stored in the journal' to avoid confusion.

4 years agosysctl: downgrade message when we have no permission 14585/head
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2020 13:45:28 +0000 (14:45 +0100)] 
sysctl: downgrade message when we have no permission

We need to run sysctl also in containers, because the network
subtree is namespaces and may legitimately be writable. But logging
all "errors" at notice level creates unwanted noise.

Also downgrade message about missing sysctls to log_info. This might also be
relatively common when configuration is targeted at different kernel
versions. With log_debug it'll still end up in the logs, but isn't really worth
of "notice" most of the time.

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

4 years agosysctl: move hashmap allocation out of main function
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2020 12:05:32 +0000 (13:05 +0100)] 
sysctl: move hashmap allocation out of main function

This allocation is a low level detail, and it seems nicer to keep it
out of run().

4 years agoman: rework section about configuration file precedence
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2020 13:10:18 +0000 (14:10 +0100)] 
man: rework section about configuration file precedence

This section is loaded in a bunch of places, so this affects many
man pages.

1. point the reader to the synopsis section, which has the exact paths
that are used to load files.
2. put the "reference" part first, and recommendations later, in separate
paragraphs.
3. describe how individual settings and whole files are replaces.

Closes #12791.

4 years agoMerge pull request #14581 from poettering/setcred-alternative-fix
Zbigniew Jędrzejewski-Szmek [Thu, 16 Jan 2020 08:53:26 +0000 (09:53 +0100)] 
Merge pull request #14581 from poettering/setcred-alternative-fix

alternative pam_setcred() fix

4 years agocore: on each iteration processing /proc/self/mountinfo merge all discovery flags...
Lennart Poettering [Tue, 14 Jan 2020 15:25:45 +0000 (16:25 +0100)] 
core: on each iteration processing /proc/self/mountinfo merge all discovery flags for each path

This extends on d253a45e1c147f5174265d71d7419da7bd52a88b, and instead of
merging just a single flag from previous mount entries of
/proc/self/mountinfo for the same path we merge all three.

This shouldn't change behaviour, but I think make things more readable.

Previously we'd set MOUNT_PROC_IS_MOUNTED unconditionally, we still do.

Previously we'd inherit MOUNT_PROC_JUST_MOUNTED from a previous entry on
the same line, we still do.

MOUNT_PROC_JUST_CHANGED should generally stay set too. Why that? If we
have two mount entries on the same mount point we'd first process one
and then the other, and the almost certainly different mount parameters
of the two would mean we'd set MOUNT_PROC_JUST_CHANGED for the second.
And with this we'll definitely do that still.

This also adds a comment explaining the situation a bit, and why we get
into this situation.

4 years agoMerge pull request #14375 from poettering/userdb
Lennart Poettering [Wed, 15 Jan 2020 16:41:29 +0000 (17:41 +0100)] 
Merge pull request #14375 from poettering/userdb

New varlink API for user and group management

4 years agoexecute: allow pam_setcred() to fail, ignore errors 14581/head
Lennart Poettering [Wed, 15 Jan 2020 16:09:36 +0000 (17:09 +0100)] 
execute: allow pam_setcred() to fail, ignore errors

Fixes: #14567
Alternative-To: #14569
4 years agoexecute: add const to array parameters, where possible
Lennart Poettering [Wed, 15 Jan 2020 16:08:25 +0000 (17:08 +0100)] 
execute: add const to array parameters, where possible

4 years agodocs: add documentation for the varlink user/group APIs 14375/head
Lennart Poettering [Wed, 28 Aug 2019 17:36:01 +0000 (19:36 +0200)] 
docs: add documentation for the varlink user/group APIs

4 years agodocs: add documentation for JSON group records, too
Lennart Poettering [Fri, 29 Nov 2019 20:51:55 +0000 (21:51 +0100)] 
docs: add documentation for JSON group records, too

4 years agodocs: add documentation for JSON user records
Lennart Poettering [Tue, 27 Aug 2019 13:57:33 +0000 (15:57 +0200)] 
docs: add documentation for JSON user records

4 years agoman: document the new nss-systemd behaviour
Lennart Poettering [Tue, 19 Nov 2019 15:51:27 +0000 (16:51 +0100)] 
man: document the new nss-systemd behaviour

(This also changes the suggested /etc/nsswitch.conf line to use for
hooking up nss-system to use glibc's [SUCCESS=merge] feature so that we
can properly merge group membership lists).

4 years agoman: document systemd-userdbd.service
Lennart Poettering [Wed, 28 Aug 2019 11:33:13 +0000 (13:33 +0200)] 
man: document systemd-userdbd.service

4 years agoman: document userdbctl(1)
Lennart Poettering [Wed, 28 Aug 2019 10:40:23 +0000 (12:40 +0200)] 
man: document userdbctl(1)

4 years agoman: document new pam_systemd features in man page
Lennart Poettering [Tue, 19 Nov 2019 10:30:41 +0000 (11:30 +0100)] 
man: document new pam_systemd features in man page

This also updates the suggested PAM snippet in a number of way:

1. Be closer to the logic nowadays implemented in Fedora where the
   auth/account/password stacks are all finished off with
   pam_{deny|permit}.so

2. Make pam_unix.so just "sufficient" instead of "required" (paving
   ground for pam_systemd_home.so being hooked in as additional
   sufficient module.

3. Only do pam_nologin in the "account" stack, since it's about account
   validity really.

4. Use modern parameters to pam_unix when changing passwords, i.e.
   sha512 and shadow, and use already set up passwords (preparing ground
   for pam_systemd_home again)

4 years agopam-systemd: apply user record properties to session
Lennart Poettering [Tue, 13 Aug 2019 11:18:15 +0000 (13:18 +0200)] 
pam-systemd: apply user record properties to session

This way any component providing us with JSON user record data can use
this for automatic resource management and other session properties.

4 years agopam-systemd: normalize return values of append_session_xyz()
Lennart Poettering [Tue, 13 Aug 2019 11:17:51 +0000 (13:17 +0200)] 
pam-systemd: normalize return values of append_session_xyz()

Let's propagate the PAM errors we got.

4 years agopam-systemd: port over to use a UserRecord structure
Lennart Poettering [Mon, 12 Aug 2019 16:55:26 +0000 (18:55 +0200)] 
pam-systemd: port over to use a UserRecord structure

Later on this allows us to set various session properties from user
record.

4 years agopam-systemd: share bus connection with pam_systemd_home if we can
Lennart Poettering [Mon, 12 Aug 2019 14:55:48 +0000 (16:55 +0200)] 
pam-systemd: share bus connection with pam_systemd_home if we can

Let's use the pam-util.h provided helpers to acquire them.

4 years agopam-systemd: port to pam_bus_log_{create|parse}_error() and pam_log_oom()
Lennart Poettering [Mon, 12 Aug 2019 14:39:10 +0000 (16:39 +0200)] 
pam-systemd: port to pam_bus_log_{create|parse}_error() and pam_log_oom()

4 years agoshared: add pam utility helpers
Lennart Poettering [Wed, 18 Dec 2019 09:06:34 +0000 (10:06 +0100)] 
shared: add pam utility helpers

4 years agologind: honour per-user stopDelayUSec property
Lennart Poettering [Fri, 9 Aug 2019 11:46:43 +0000 (13:46 +0200)] 
logind: honour per-user stopDelayUSec property

4 years agologind: honour killProcesses field of user record
Lennart Poettering [Fri, 9 Aug 2019 11:46:25 +0000 (13:46 +0200)] 
logind: honour killProcesses field of user record

4 years agologind: enforce user record resource settings when user logs in
Lennart Poettering [Thu, 8 Aug 2019 14:58:06 +0000 (16:58 +0200)] 
logind: enforce user record resource settings when user logs in

4 years agologind: port to UserRecord object
Lennart Poettering [Wed, 7 Aug 2019 14:22:35 +0000 (16:22 +0200)] 
logind: port to UserRecord object

This changes the user tracking of logind to use the new-style UserRecord
object.

In a later commit this enables us to do per-user resource management.

4 years agonss: hook up nss-systemd with userdb varlink bits
Lennart Poettering [Thu, 4 Jul 2019 16:31:11 +0000 (18:31 +0200)] 
nss: hook up nss-systemd with userdb varlink bits

This changes nss-systemd to use the new varlink user/group APIs for
looking up everything.

(This also changes the factory /etc/nsswitch.conf line to use for
hooking up nss-system to use glibc's [SUCCESS=merge] feature so that we
can properly merge group membership lists).

Fixes: #12492
4 years agocore: add user/group resolution varlink interface to PID 1
Lennart Poettering [Wed, 7 Aug 2019 12:58:59 +0000 (14:58 +0200)] 
core: add user/group resolution varlink interface to PID 1

4 years agocore: make return parameter of dynamic_user_lookup_name() optional
Lennart Poettering [Wed, 7 Aug 2019 10:48:45 +0000 (12:48 +0200)] 
core: make return parameter of dynamic_user_lookup_name() optional

4 years agouserdbd: add userdbctl tool as client for userdbd
Lennart Poettering [Mon, 5 Aug 2019 16:22:01 +0000 (18:22 +0200)] 
userdbd: add userdbctl tool as client for userdbd

4 years agouserdbd: add new service that can merge userdb queries from multiple clients
Lennart Poettering [Thu, 4 Jul 2019 16:33:30 +0000 (18:33 +0200)] 
userdbd: add new service that can merge userdb queries from multiple clients

4 years agoshared: add helpers for displaying new-style user/group records to users
Lennart Poettering [Mon, 5 Aug 2019 16:21:49 +0000 (18:21 +0200)] 
shared: add helpers for displaying new-style user/group records to users

4 years agoshared: add internal API for querying JSON user records via varlink
Lennart Poettering [Wed, 7 Aug 2019 13:26:32 +0000 (15:26 +0200)] 
shared: add internal API for querying JSON user records via varlink

This new API can be used in place of NSS by our own internal code if
more than the classic UNIX records are needed.

4 years agoshared: add helpers for converting NSS passwd/group structures to new JSON objects
Lennart Poettering [Mon, 5 Aug 2019 16:21:30 +0000 (18:21 +0200)] 
shared: add helpers for converting NSS passwd/group structures to new JSON objects

These new calls may be used to convert classic UNIX/glibc NSS struct
passwd and struct group records into new-style JSON-based user/group
objects.

4 years agoshared: add generic user/group record structures and JSON parsers
Lennart Poettering [Wed, 7 Aug 2019 13:25:36 +0000 (15:25 +0200)] 
shared: add generic user/group record structures and JSON parsers

4 years agolibcrypt-util: add superficial validator for UNIX hashed password strings
Lennart Poettering [Wed, 13 Nov 2019 22:28:05 +0000 (23:28 +0100)] 
libcrypt-util: add superficial validator for UNIX hashed password strings

4 years agoshared: split out crypt() specific helpers into its own .c/.h in src/shared/
Lennart Poettering [Wed, 13 Nov 2019 22:13:42 +0000 (23:13 +0100)] 
shared: split out crypt() specific helpers into its own .c/.h in src/shared/

This way we can use libxcrypt specific functionality such as
crypt_gensalt() and thus take benefit of the newer algorithms libxcrypt
implements. (Also adds support for a new env var $SYSTEMD_CRYPT_PREFIX
which may be used to select the hash algorithm to use for libxcrypt.)

Also, let's move the weird crypt.h inclusion into libcrypt.h so that
there's a single place for it.

4 years agonss-util: add macros for generating getpwent()/getgrent() prototypes
Lennart Poettering [Wed, 7 Aug 2019 10:33:33 +0000 (12:33 +0200)] 
nss-util: add macros for generating getpwent()/getgrent() prototypes

We have similar macros already for getpwuid()/getpwnam(), let's add more
of this.

4 years agoMerge pull request #14579 from keszybz/docs-index
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 13:26:39 +0000 (14:26 +0100)] 
Merge pull request #14579 from keszybz/docs-index

Revert the test move and fix formatting on main page a bit

4 years agoMerge pull request #14562 from yuwata/table-strv
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 12:59:11 +0000 (13:59 +0100)] 
Merge pull request #14562 from yuwata/table-strv

introduce TABLE_STRV and use it in networkctl and resolvectl

4 years agodocs: fix width of console example 14579/head
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 12:46:16 +0000 (13:46 +0100)] 
docs: fix width of console example

4 years agoRevert "docs: rename HACKING → Hacking"
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 12:45:04 +0000 (13:45 +0100)] 
Revert "docs: rename HACKING → Hacking"

This reverts commit 8c5cd27dd155fbe71a6bf82096b8775c5ff453b8.

4 years agoMerge pull request #14578 from keszybz/docs-index
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 12:43:24 +0000 (13:43 +0100)] 
Merge pull request #14578 from keszybz/docs-index

Let's see if redirects work

4 years agodocs: rename HACKING → Hacking 14578/head
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 11:15:08 +0000 (12:15 +0100)] 
docs: rename HACKING → Hacking

Let's see if this works at all.

4 years agodocs: shift console log on index page to the left
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 10:55:49 +0000 (11:55 +0100)] 
docs: shift console log on index page to the left

4 years agoMerge pull request #14424 from poettering/watch-bus-name-rework
Lennart Poettering [Wed, 15 Jan 2020 10:46:11 +0000 (11:46 +0100)] 
Merge pull request #14424 from poettering/watch-bus-name-rework

pid1: simplify drastically how we watch bus names for service's BusName= setting

4 years agoMerge pull request #14573 from keszybz/docs-index
Lennart Poettering [Wed, 15 Jan 2020 09:25:06 +0000 (10:25 +0100)] 
Merge pull request #14573 from keszybz/docs-index

Docs index

4 years agodocs: add the systemd output example 14573/head
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 20:35:44 +0000 (21:35 +0100)] 
docs: add the systemd output example

It is still nice...

4 years agodocs: update old para with links to the blog stories
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 20:35:24 +0000 (21:35 +0100)] 
docs: update old para with links to the blog stories

They are of historical interest, but without links not very useful.

4 years agodocs: remove markup from title
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 20:25:52 +0000 (21:25 +0100)] 
docs: remove markup from title

Github uses a different background for backticked text, and this stands out
(in a bad way) on the title page.

4 years agoman: add commas and reword a sentence
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 13:29:02 +0000 (14:29 +0100)] 
man: add commas and reword a sentence

On more careful reading, "exit status ... do not cause the unit to enter a
failure state" is not gramatically or logically correct.

4 years agoMerge pull request #14547 from keszybz/networkctl-matching
Yu Watanabe [Wed, 15 Jan 2020 02:56:01 +0000 (11:56 +0900)] 
Merge pull request #14547 from keszybz/networkctl-matching

networkctl: return error or warning when interfaces are not matched

4 years agotest-format-table: add tests for TABLE_STRV 14562/head
Yu Watanabe [Tue, 14 Jan 2020 10:07:39 +0000 (19:07 +0900)] 
test-format-table: add tests for TABLE_STRV

4 years agoresolvectl: use format-table.[ch]
Yu Watanabe [Tue, 14 Jan 2020 09:29:53 +0000 (18:29 +0900)] 
resolvectl: use format-table.[ch]

4 years agonetworkctl: use TABLE_STRV
Yu Watanabe [Tue, 14 Jan 2020 09:29:52 +0000 (18:29 +0900)] 
networkctl: use TABLE_STRV

4 years agoformat-table: introduce TABLE_STRV
Yu Watanabe [Tue, 14 Jan 2020 09:29:51 +0000 (18:29 +0900)] 
format-table: introduce TABLE_STRV

4 years agostrv: introduce strv_compare()
Yu Watanabe [Tue, 14 Jan 2020 09:29:50 +0000 (18:29 +0900)] 
strv: introduce strv_compare()

4 years agoMerge pull request #14571 from poettering/assorted-fixlets
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 20:22:13 +0000 (21:22 +0100)] 
Merge pull request #14571 from poettering/assorted-fixlets

two minor fixes for recent merges

4 years agodocs: rework HTML into GitHub Markdown table 14571/head
Lennart Poettering [Tue, 14 Jan 2020 15:53:43 +0000 (16:53 +0100)] 
docs: rework HTML into GitHub Markdown table

Presumably this should render better on https://systemd.io/DISCOVERABLE_PARTITIONS then.

As pointed out on: https://github.com/systemd/systemd/pull/14390#issuecomment-574205631

4 years agocgroup: minor comment improvement
Lennart Poettering [Tue, 14 Jan 2020 15:32:20 +0000 (16:32 +0100)] 
cgroup: minor comment improvement

As pointed out here:

https://github.com/systemd/systemd/pull/14564#discussion_r366305882

4 years agoMerge pull request #14570 from keszybz/resource-docs
Lennart Poettering [Tue, 14 Jan 2020 15:17:38 +0000 (16:17 +0100)] 
Merge pull request #14570 from keszybz/resource-docs

Modernize links to cgroups docs

4 years agologind: refuse overriding idle hint on tty sessions
Lennart Poettering [Mon, 6 Jan 2020 19:13:16 +0000 (20:13 +0100)] 
logind: refuse overriding idle hint on tty sessions

Previously we'd allow marking TTY sessions as idle, but when the user
tried to unmark it as idle again it we'd just revert to automatic TTY
atime idle detection, thus making it impossible to mark the session as
non-idle, unless its TTY is atime-touched all the time. But of course,
marking a session as idle is pretty much fatal if you never can mark it
as non-idle again.

This change is triggred by bug reports such as this:

https://github.com/systemd/systemd/issues/14053

With this patch we will now output a clean, clear error message if a
client tries to manipulate the idle state of a non-graphical session.
This means we now have clear rules: "manual" idle logic for graphical
sessions, and TTY based ones for all others that have a TTY of some
form.

I considered allowing the idle state to be overriden both ways for tty
sessions but that's problematic: for sessions that are temporarily
upgraded from tty to graphical and thus suddenly want to manage their
own idle state we'd need to a way to detect when the upgrade goes away
and thus we should revert to old behaviour. Without reverting to the
previous TTY idle auto-magic we'd otherwise be stuck in an eternally
idle or eternally non-idle state, with really bad effects in case
auto-suspend is used. Thus, let's instead generate a proper error
message, saying clearly we don't support it.

(Also includes some other fixes and clean-ups in related code)

Closes: #14053
4 years agoMerge pull request #14564 from poettering/cgroup-realize-fix
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 14:52:56 +0000 (15:52 +0100)] 
Merge pull request #14564 from poettering/cgroup-realize-fix

pid1: cgroup realization fix

4 years agoMerge pull request #14390 from poettering/gpt-var-tmp
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 14:37:53 +0000 (15:37 +0100)] 
Merge pull request #14390 from poettering/gpt-var-tmp

introduce GPT partition types for /var and /var/tmp and support them for auto-discovery

4 years agosystemctl: use format-table.[ch] for tables
Frantisek Sumsal [Fri, 3 Jan 2020 12:01:26 +0000 (13:01 +0100)] 
systemctl: use format-table.[ch] for tables

4 years agoMerge pull request #14505 from poettering/refuse-on-failure
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 13:19:04 +0000 (14:19 +0100)] 
Merge pull request #14505 from poettering/refuse-on-failure

refuse OnFailure= deps on units that have no failure state

4 years agoMerge pull request #14563 from poettering/less-the-markdown
Zbigniew Jędrzejewski-Szmek [Tue, 14 Jan 2020 12:23:50 +0000 (13:23 +0100)] 
Merge pull request #14563 from poettering/less-the-markdown

trivial markdown fixlets

4 years agobasic/strv: drop flags argument from strv_fnmatch() 14547/head
Zbigniew Jędrzejewski-Szmek [Sun, 12 Jan 2020 11:26:26 +0000 (12:26 +0100)] 
basic/strv: drop flags argument from strv_fnmatch()

4 years agonetworkctl: return error or warning when interfaces are not matched
Zbigniew Jędrzejewski-Szmek [Sun, 12 Jan 2020 11:14:31 +0000 (12:14 +0100)] 
networkctl: return error or warning when interfaces are not matched

We'd just print nothing and exit with 0. If the user gave an explicit
name, we should fail. If a pattern didn't match, we should at least warn.

$ networkctl status enx54ee75cb1dc0a* --no-pager && echo $?
No interfaces matched.
0

$ networkctl status enx54ee75cb1dc0a --no-pager
Interface "enx54ee75cb1dc0a" not found.
1

4 years agomount: mark an existing "mounting" unit from /proc/self/mountinfo as "just_mounted"
Jun'ichi Nomura [Tue, 3 Dec 2019 07:52:02 +0000 (16:52 +0900)] 
mount: mark an existing "mounting" unit from /proc/self/mountinfo as "just_mounted"

When starting a mount unit, systemd invokes mount command and moves the
unit's internal state to "mounting".  Then it watches for updates of
/proc/self/mountinfo.  When the expected mount entry newly appears in
mountinfo, the unit internal state is changed to "mounting-done".
Finally, when systemd finds the mount command has finished, it checks
whether the unit internal state is "mounting-done" and changes the state
to "mounted".
If the state was not "mounting-done" in the last step though mount command
was successfully finished, the unit is marked as "failed" with following
log messages:
  Mount process finished, but there is no mount.
  Failed with result 'protocol'.

If daemon-reload is done in parallel with starting mount unit, it is
possible that things happen in following order and result in above failure.
  1. the mount unit state changes to "mounting"
  2. daemon-reload saves the unit state
  3. kernel completes the mount and /proc/self/mountinfo is updated
  4. daemon-reload restores the saved unit state, that is "mounting"
  5. systemd notices the mount command has finished but the unit state
     is still "mounting" though it should be "mounting-done"

mount_setup_existing_unit() should take into account that MOUNT_MOUNTING
is transitional state and set MOUNT_PROC_JUST_MOUNTED flag if the unit
comes from /proc/self/mountinfo so that mount_process_proc_self_mountinfo()
later can make state transition from "mounting" to "mounting-done".

Fixes: #10872
4 years agocgroup: drop redundant if check 14564/head
Lennart Poettering [Mon, 13 Jan 2020 19:11:56 +0000 (20:11 +0100)] 
cgroup: drop redundant if check

4 years agocgroup: update only siblings that got realized once
Lennart Poettering [Mon, 13 Jan 2020 19:06:39 +0000 (20:06 +0100)] 
cgroup: update only siblings that got realized once

Fixes: #14475
Replaces: #14554

4 years agocgroup: drop unnecessary {}
Lennart Poettering [Mon, 13 Jan 2020 19:04:58 +0000 (20:04 +0100)] 
cgroup: drop unnecessary {}

4 years agocgroup: no need to cast dev_t to dev_t
Lennart Poettering [Mon, 13 Jan 2020 19:04:38 +0000 (20:04 +0100)] 
cgroup: no need to cast dev_t to dev_t

4 years agocgroup: use log_warning_errno() where possible
Lennart Poettering [Mon, 13 Jan 2020 19:02:01 +0000 (20:02 +0100)] 
cgroup: use log_warning_errno() where possible

4 years agodocs: uppercase all markdown document titles 14563/head
Lennart Poettering [Tue, 14 Jan 2020 09:14:11 +0000 (10:14 +0100)] 
docs: uppercase all markdown document titles

For most we used uppercasing, but not for all. Let's stick to one rule,
and uppercase them all.

4 years agodocs: drop "The" in categorization titles of Markdown documentation
Lennart Poettering [Tue, 14 Jan 2020 09:11:19 +0000 (10:11 +0100)] 
docs: drop "The" in categorization titles of Markdown documentation

I think it makes sense to keep the "The" in place for the actual page's
title, but let's drop it from the categorization header, to make it
easier to find stuff, as the "The" isn't helpful to that.

In particular as we sometimes do it this and sometimes the other way so
far, hence let's stick to one common rule.

4 years agoMerge pull request #14561 from keszybz/docs-deellipsisize
Lennart Poettering [Tue, 14 Jan 2020 09:08:21 +0000 (10:08 +0100)] 
Merge pull request #14561 from keszybz/docs-deellipsisize

Doc formatting fixes and link update

4 years agoMerge pull request #14555 from poettering/table-multine
Yu Watanabe [Mon, 13 Jan 2020 21:48:57 +0000 (06:48 +0900)] 
Merge pull request #14555 from poettering/table-multine

format-table: proper multi-line support

4 years agodocs: update link and more dots 14561/head
Zbigniew Jędrzejewski-Szmek [Mon, 13 Jan 2020 20:03:15 +0000 (21:03 +0100)] 
docs: update link and more dots

Apparently unicode ellipsis is too much for github.

4 years agodocs: say that journalctl --flush/--sync also require journald
Zbigniew Jędrzejewski-Szmek [Mon, 13 Jan 2020 14:28:25 +0000 (15:28 +0100)] 
docs: say that journalctl --flush/--sync also require journald

https://github.com/systemd/systemd/pull/14549#pullrequestreview-341758182

4 years agoMerge pull request #14557 from poettering/root-storage-daemons-markdown
Zbigniew Jędrzejewski-Szmek [Mon, 13 Jan 2020 19:57:37 +0000 (20:57 +0100)] 
Merge pull request #14557 from poettering/root-storage-daemons-markdown

docs: convert root storage daemon doc to markdown

4 years agodocs: import initrd interface documentation from fdo wiki
Lennart Poettering [Mon, 13 Jan 2020 17:48:31 +0000 (18:48 +0100)] 
docs: import initrd interface documentation from fdo wiki

Imported from https://www.freedesktop.org/wiki/Software/systemd/InitrdInterface/

4 years agodocs: various small fixes to PORTABILITY_AND_STABILITY markdown
Lennart Poettering [Mon, 13 Jan 2020 16:09:44 +0000 (17:09 +0100)] 
docs: various small fixes to PORTABILITY_AND_STABILITY markdown

Nothing particularly world moving.

Follow-up for #14549

4 years agokillall: update reference to root storage daemon interface docs 14557/head
Lennart Poettering [Mon, 13 Jan 2020 17:53:46 +0000 (18:53 +0100)] 
killall: update reference to root storage daemon interface docs

4 years agodocs: convert root storage daemon doc to markdown
Lennart Poettering [Mon, 13 Jan 2020 17:33:18 +0000 (18:33 +0100)] 
docs: convert root storage daemon doc to markdown

Import from:

https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/

4 years agoMerge pull request #14400 from keszybz/alias-check
Lennart Poettering [Mon, 13 Jan 2020 17:03:13 +0000 (18:03 +0100)] 
Merge pull request #14400 from keszybz/alias-check

Alias check rework

4 years agoMerge pull request #14381 from keszybz/ifindex-cleanup
Lennart Poettering [Mon, 13 Jan 2020 16:57:59 +0000 (17:57 +0100)] 
Merge pull request #14381 from keszybz/ifindex-cleanup

Resolve alternative names

4 years agoMerge pull request #11199 from dargad/restore-pam-setcred
Lennart Poettering [Mon, 13 Jan 2020 16:44:34 +0000 (17:44 +0100)] 
Merge pull request #11199 from dargad/restore-pam-setcred

Restore call to pam_setcred

4 years agoMerge pull request #14293 from keur/systemctl_with_dependencies
Lennart Poettering [Mon, 13 Jan 2020 16:42:55 +0000 (17:42 +0100)] 
Merge pull request #14293 from keur/systemctl_with_dependencies

systemctl: Add --with-dependencies switch

4 years agohwdb: Entry for Lenovo Ideapad 310S-14ISK Alps Touchpad
Zeyu DONG [Fri, 10 Jan 2020 12:11:48 +0000 (20:11 +0800)] 
hwdb: Entry for Lenovo Ideapad 310S-14ISK Alps Touchpad

Add the resolution and range information for Lenovo Ideapad 310S-14ISK Alps touchpad. It provides information for the test case of libinput for Alps devices.

4 years agojournalctl: Correctly handle combination of --reverse and --lines (fixes #1596)
Timo Schlüßler [Mon, 13 Jan 2020 09:26:58 +0000 (09:26 +0000)] 
journalctl: Correctly handle combination of --reverse and --lines (fixes #1596)

4 years agojournalctl: Correctly handle --show-cursor in combination with --until or --since...
Timo Schlüßler [Mon, 13 Jan 2020 09:09:45 +0000 (09:09 +0000)] 
journalctl: Correctly handle --show-cursor in combination with --until or --since and --reverse

4 years agoMerge pull request #14532 from poettering/namespace-dynamic-user-fix
Lennart Poettering [Mon, 13 Jan 2020 15:47:15 +0000 (16:47 +0100)] 
Merge pull request #14532 from poettering/namespace-dynamic-user-fix

Make DynamicUser=1 work in a userns container

4 years agoman: suffix parameter with = in our documentation, if it expects an argument 14555/head
Lennart Poettering [Mon, 13 Jan 2020 15:27:03 +0000 (16:27 +0100)] 
man: suffix parameter with = in our documentation, if it expects an argument

Also, don't claim we'd insert a "," between addresses, because we
actually don't do that.

4 years agomachinectl: modernize address table handling
Lennart Poettering [Mon, 13 Jan 2020 15:20:53 +0000 (16:20 +0100)] 
machinectl: modernize address table handling

Primarily, use the new multi-line support in table formatting.

Also, stream-line naming of the "max-addresses" options. We used three
names for the concept internall, let's just unify on the name we use for
this for external users, i.e. "max-addresses".