]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoshared: split out polkit stuff from bus-util.c → bus-polkit.c
Lennart Poettering [Wed, 22 Jan 2020 10:39:22 +0000 (11:39 +0100)] 
shared: split out polkit stuff from bus-util.c → bus-polkit.c

It's enough, complex stuff to warrant its own source file.

No other changes, just splitting out.

4 years agoMerge pull request #14628 from poettering/hwdb-asus-tp500la
hadess [Wed, 22 Jan 2020 10:47:06 +0000 (11:47 +0100)] 
Merge pull request #14628 from poettering/hwdb-asus-tp500la

hwdb: add asus tp500la

4 years agologinctl: use /org/freedesktop/login1/session/auto when "lock-session" is called...
Lennart Poettering [Tue, 21 Jan 2020 12:43:04 +0000 (13:43 +0100)] 
loginctl: use /org/freedesktop/login1/session/auto when "lock-session" is called without argument

This way we'll use the "display" session automatically, and that makes
the call work when invoked from user@.service.

Fixes: #13614
4 years agoMerge pull request #14605 from aerusso/pulls/x-systemd-wantedby-requiredby
Lennart Poettering [Tue, 21 Jan 2020 18:21:49 +0000 (19:21 +0100)] 
Merge pull request #14605 from aerusso/pulls/x-systemd-wantedby-requiredby

Implemented x-systemd.{required,wanted}-by= options

4 years agoman: fix typo in systemd.netdev Xfrm example
Andreas Rammhold [Tue, 21 Jan 2020 17:22:22 +0000 (18:22 +0100)] 
man: fix typo in systemd.netdev Xfrm example

The first section header in that example should probably be `[NetDev]` and not `[Xfrm]`.

4 years agonetwork,udev: use uint64_t for bit rate
Yu Watanabe [Tue, 21 Jan 2020 11:06:40 +0000 (20:06 +0900)] 
network,udev: use uint64_t for bit rate

Fixes #14620.

4 years agotimesyncd: log louder when we refuse a server due to root distance
Lennart Poettering [Tue, 21 Jan 2020 11:03:02 +0000 (12:03 +0100)] 
timesyncd: log louder when we refuse a server due to root distance

This is something people should know about, since it's caused by
misconfiguration.

Fixes: #13912
4 years agoMerge pull request #14617 from poettering/no-strv-clear
Lennart Poettering [Tue, 21 Jan 2020 14:08:38 +0000 (15:08 +0100)] 
Merge pull request #14617 from poettering/no-strv-clear

strv: remove strv_clear() and some other minor fixes

4 years agoMerge pull request #14622 from poettering/uid-ref-fixlets
Lennart Poettering [Tue, 21 Jan 2020 14:08:02 +0000 (15:08 +0100)] 
Merge pull request #14622 from poettering/uid-ref-fixlets

trivial uid ref counting clean-ups

4 years agoFixed some typos in the documentation
Emmanuel Bourg [Tue, 21 Jan 2020 13:07:02 +0000 (14:07 +0100)] 
Fixed some typos in the documentation

4 years agoresolved: drop DNSSEC root key that is not valid anymore
Lennart Poettering [Mon, 20 Jan 2020 16:11:31 +0000 (17:11 +0100)] 
resolved: drop DNSSEC root key that is not valid anymore

I guess we can drop this now, the key is no longer valid until
2019-01-11, hence there's no point in still including it in our trust
anchor.

4 years agoImplemented x-systemd.{required,wanted}-by= options 14605/head
Antonio Russo [Sat, 18 Jan 2020 21:14:58 +0000 (14:14 -0700)] 
Implemented x-systemd.{required,wanted}-by= options

Teaches systemd-fstab-generator these two unit options,
creating appropriate dependencies on the generated .mount
units.  When used, they override any other automatically
generated dependencies, such as local-fs.target, and are
NOT suppressed by noauto.  The new options are ignored for
/, in the same way that noauto is ignored.

Fixes: #14380
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
4 years agojournal: don't use startswith() on something that is not a NUL-terminated string
Lennart Poettering [Tue, 21 Jan 2020 09:49:58 +0000 (10:49 +0100)] 
journal: don't use startswith() on something that is not a NUL-terminated string

Otherwise we might access memory coming after it that is not valid or
allocated.

Fixes: #14114
4 years agohwbd: add Asus TP500LA 14628/head
Lennart Poettering [Tue, 21 Jan 2020 13:23:39 +0000 (14:23 +0100)] 
hwbd: add Asus TP500LA

Extracted from #12654

Fixes: #12654
4 years agohwdb: merge identical entries
Lennart Poettering [Tue, 21 Jan 2020 13:23:33 +0000 (14:23 +0100)] 
hwdb: merge identical entries

4 years agohwdb: fix whitespace issue
Lennart Poettering [Tue, 21 Jan 2020 13:23:14 +0000 (14:23 +0100)] 
hwdb: fix whitespace issue

4 years agovirt: do not define vm_from_string() for non-x86 architecture
Yu Watanabe [Tue, 21 Jan 2020 09:10:46 +0000 (18:10 +0900)] 
virt: do not define vm_from_string() for non-x86 architecture

Fixes #14615.

4 years agocore: make a number of functions not used externally static 14622/head
Lennart Poettering [Tue, 21 Jan 2020 10:51:45 +0000 (11:51 +0100)] 
core: make a number of functions not used externally static

4 years agocore: show the UID we cannot parse
Lennart Poettering [Tue, 21 Jan 2020 10:51:26 +0000 (11:51 +0100)] 
core: show the UID we cannot parse

4 years agojson: lower maximum allowed recursion to 2K
Lennart Poettering [Mon, 20 Jan 2020 19:13:46 +0000 (20:13 +0100)] 
json: lower maximum allowed recursion to 2K

Apparently 4K is too high still, let's halve it.

Fixes: #14396
4 years agoMerge pull request #14595 from poettering/stdin-file-fix
Lennart Poettering [Tue, 21 Jan 2020 09:22:31 +0000 (10:22 +0100)] 
Merge pull request #14595 from poettering/stdin-file-fix

core: make sure StandardInput=file: doesn't get dup'ed to stdout/stde…

4 years agohwdb: fix error numbers passed to log_syntax() 14617/head
Lennart Poettering [Tue, 21 Jan 2020 09:15:26 +0000 (10:15 +0100)] 
hwdb: fix error numbers passed to log_syntax()

4 years agohwdb: use strv_extend() where we can
Lennart Poettering [Tue, 21 Jan 2020 09:13:07 +0000 (10:13 +0100)] 
hwdb: use strv_extend() where we can

4 years agostrv: get rid of strv_clear()
Lennart Poettering [Tue, 21 Jan 2020 09:07:34 +0000 (10:07 +0100)] 
strv: get rid of strv_clear()

Let's remove a function of questionnable utility.

strv_clear() frees the items of a string array, but not the array
itself. i.e. it half-drestructs a string array and makes it empty. This
is not too useful an operation since we almost never need to just do
that, we also want to free the whole thing. In fact, strv_clear() is
only used in one of our .c file, and there it appears like unnecessary
optimization, given that for each array with n elements it leaves the
number of free()s we need to at O(n) which is not really an optimization
at all (it goes from n+1 to n, that's all).

Prompted by the discussions on #14605

4 years agoDocumentation update for x-systemd.{before,after}
Antonio Russo [Tue, 21 Jan 2020 02:35:13 +0000 (19:35 -0700)] 
Documentation update for x-systemd.{before,after}

A minor clarification in the manual page is made.

Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
4 years agotest: add test for https://github.com/systemd/systemd/issues/14560 14595/head
Lennart Poettering [Mon, 20 Jan 2020 13:40:44 +0000 (14:40 +0100)] 
test: add test for https://github.com/systemd/systemd/issues/14560

4 years agocore: make sure StandardInput=file: doesn't get dup'ed to stdout/stderr by default
Lennart Poettering [Fri, 17 Jan 2020 11:41:53 +0000 (12:41 +0100)] 
core: make sure StandardInput=file: doesn't get dup'ed to stdout/stderr by default

Fixes: #14560
4 years agounits: drop full paths for utilities in $PATH
Zbigniew Jędrzejewski-Szmek [Wed, 18 Dec 2019 08:14:57 +0000 (09:14 +0100)] 
units: drop full paths for utilities in $PATH

This makes things a bit simpler and the build a bit faster, because we don't
have to rewrite files to do the trivial substitution. @rootbindir@ is always in
our internal $PATH that we use for non-absolute paths, so there should be no
functional change.

4 years agoItalian: language update
Daniele Medri [Sun, 19 Jan 2020 10:58:21 +0000 (11:58 +0100)] 
Italian: language update

4 years agopkgconf: add full generator paths
Sascha Dewald [Sat, 18 Jan 2020 08:17:57 +0000 (08:17 +0000)] 
pkgconf: add full generator paths

4 years agotree-wide: we forgot to destroy some bus errors
Lennart Poettering [Fri, 17 Jan 2020 14:37:56 +0000 (15:37 +0100)] 
tree-wide: we forgot to destroy some bus errors

4 years agoMerge pull request #14596 from poettering/no-mask-perpetual
Zbigniew Jędrzejewski-Szmek [Sat, 18 Jan 2020 09:17:10 +0000 (10:17 +0100)] 
Merge pull request #14596 from poettering/no-mask-perpetual

core: don't allow perpetual units to be masked

4 years agotypo: "May modify to" -> "May modify"
Wieland Hoffmann [Sat, 18 Jan 2020 07:38:29 +0000 (08:38 +0100)] 
typo: "May modify to" -> "May modify"

4 years agoMerge pull request #14590 from poettering/doc-fixlets
Zbigniew Jędrzejewski-Szmek [Fri, 17 Jan 2020 14:23:02 +0000 (15:23 +0100)] 
Merge pull request #14590 from poettering/doc-fixlets

A bunch of documentation fixes

4 years agomount: make checks on perpetual mount units more lax 14596/head
Lennart Poettering [Fri, 17 Jan 2020 14:09:01 +0000 (15:09 +0100)] 
mount: make checks on perpetual mount units more lax

We don#t really care where perpetual mounts are mounted from, since they
have to exist since before we run anyway.

4 years agocore: never allow perpetual units to be masked
Lennart Poettering [Fri, 17 Jan 2020 14:02:13 +0000 (15:02 +0100)] 
core: never allow perpetual units to be masked

Fixes: #14550
4 years agoMerge pull request #14592 from keszybz/simplifications
Lennart Poettering [Fri, 17 Jan 2020 11:27:48 +0000 (12:27 +0100)] 
Merge pull request #14592 from keszybz/simplifications

Simplifications

4 years agoman: document that WakeSystem= affects clock choice 14590/head
Lennart Poettering [Thu, 16 Jan 2020 18:40:51 +0000 (19:40 +0100)] 
man: document that WakeSystem= affects clock choice

Fixes: #8308
4 years agodocs: uppercase are headers
Lennart Poettering [Thu, 16 Jan 2020 18:30:01 +0000 (19:30 +0100)] 
docs: uppercase are headers

We do this in most cases, do so here too.

4 years agodocs: let's reduce our spurious whitespace a bit
Lennart Poettering [Thu, 16 Jan 2020 18:29:49 +0000 (19:29 +0100)] 
docs: let's reduce our spurious whitespace a bit

4 years agodocs: in PORTABILITY_AND_STABILITY only use one h1
Lennart Poettering [Thu, 16 Jan 2020 18:27:19 +0000 (19:27 +0100)] 
docs: in PORTABILITY_AND_STABILITY only use one h1

According to the designer of the page layout a page only should have one
h1 header, and everything else should be h2, h3, … I think that makes a
ton of sense, hence let's downgrade some headers here.

4 years agoman: clarify that user rlimits cannot go beyond limits set for service mgr
Lennart Poettering [Thu, 16 Jan 2020 18:22:30 +0000 (19:22 +0100)] 
man: clarify that user rlimits cannot go beyond limits set for service mgr

Fixes: #10758
4 years agoman: extend on halt documentation
Lennart Poettering [Thu, 16 Jan 2020 18:01:05 +0000 (19:01 +0100)] 
man: extend on halt documentation

Based on the suggestions on #13254 and #13264

Fixes: #13254
4 years agoman: document that rootflags= does not override /etc/fstab
Lennart Poettering [Thu, 16 Jan 2020 17:51:19 +0000 (18:51 +0100)] 
man: document that rootflags= does not override /etc/fstab

Fixes: #13324
4 years agoman: underline that AccuracySec= is about coalescing timer events, nothing else
Lennart Poettering [Thu, 16 Jan 2020 15:47:56 +0000 (16:47 +0100)] 
man: underline that AccuracySec= is about coalescing timer events, nothing else

Fixes: #13328
4 years agoman: mention that Before= doesn't work for device units
Lennart Poettering [Thu, 16 Jan 2020 15:41:29 +0000 (16:41 +0100)] 
man: mention that Before= doesn't work for device units

Fixes: #13362
4 years agoman: suggest SYSTEMD_WANTS usage instead of RUN for long running processes
Lennart Poettering [Thu, 16 Jan 2020 15:36:33 +0000 (16:36 +0100)] 
man: suggest SYSTEMD_WANTS usage instead of RUN for long running processes

Fixes: #14259
4 years agoman: document the limits of the block device discovery for IO cgroup options
Lennart Poettering [Thu, 16 Jan 2020 15:29:01 +0000 (16:29 +0100)] 
man: document the limits of the block device discovery for IO cgroup options

Fixes: #14271
4 years agoman: document how error propagation to path units works
Lennart Poettering [Thu, 16 Jan 2020 15:13:50 +0000 (16:13 +0100)] 
man: document how error propagation to path units works

Fixes: #14331
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 agocore: reduce indentation a bit 14592/head
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 10:42:40 +0000 (11:42 +0100)] 
core: reduce indentation a bit

4 years agologind: use loop instead of repeated code
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 10:37:49 +0000 (11:37 +0100)] 
logind: use loop instead of repeated code

https://github.com/systemd/systemd/pull/14096#discussion_r350953689

4 years agoshared/user-record-nss: use macro to avoid repeats
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 09:37:18 +0000 (10:37 +0100)] 
shared/user-record-nss: use macro to avoid repeats

It's easier to read when each field is intialized in exactly one place.

4 years agoshared/user-record-nss: shorten code a bit
Zbigniew Jędrzejewski-Szmek [Wed, 15 Jan 2020 09:04:30 +0000 (10:04 +0100)] 
shared/user-record-nss: shorten code a bit

free_and_strdup() already does comparison internally.

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