]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agomeson: fix feature list
Yu Watanabe [Thu, 30 Jan 2020 15:03:38 +0000 (00:03 +0900)] 
meson: fix feature list

4 years agoMerge pull request #14719 from yuwata/sd-boot-fix-warnings
Lennart Poettering [Sun, 2 Feb 2020 15:57:17 +0000 (16:57 +0100)] 
Merge pull request #14719 from yuwata/sd-boot-fix-warnings

sd-boot: fix warnings

4 years agosysusers: support creating users with a specific primary group
David Michael [Thu, 30 Jan 2020 19:04:14 +0000 (14:04 -0500)] 
sysusers: support creating users with a specific primary group

This extends the "uid:gid" syntax for "u" lines so that a group
name can be given instead of a GID.  This requires that the group
is either queued for creation by sysusers, or it is already defined
on the system.

Closes #14340

4 years agoMerge pull request #14672 from yuwata/network-routing-policy-uidrange
Yu Watanabe [Sun, 2 Feb 2020 13:46:04 +0000 (22:46 +0900)] 
Merge pull request #14672 from yuwata/network-routing-policy-uidrange

network: support UID based routing policy

4 years agotest-network: add test for UID based routing policy 14672/head
Yu Watanabe [Sun, 26 Jan 2020 13:39:32 +0000 (22:39 +0900)] 
test-network: add test for UID based routing policy

4 years agonetwork: support UID based routing policy
Yu Watanabe [Sun, 26 Jan 2020 13:22:38 +0000 (22:22 +0900)] 
network: support UID based routing policy

Closes #14666.

4 years agoutil: add parse_uid_range() helper function
Yu Watanabe [Sun, 26 Jan 2020 12:51:12 +0000 (21:51 +0900)] 
util: add parse_uid_range() helper function

4 years agomeson, man: do not install pam_systemd_home(8) when pam or homed is disabled
Yu Watanabe [Sat, 1 Feb 2020 02:01:41 +0000 (11:01 +0900)] 
meson, man: do not install pam_systemd_home(8) when pam or homed is disabled

Fixes #14725.

4 years agotest: don't install /etc/securetty
Frantisek Sumsal [Fri, 31 Jan 2020 10:51:05 +0000 (11:51 +0100)] 
test: don't install /etc/securetty

Having /etc/securetty in test containers prevents root from logging into
them:

```
Jan 31 10:15:11 systemd-testsuite login[69]: pam_securetty(login:auth): access denied: tty 'pts/0' is not secure !
Jan 31 10:15:11 systemd-testsuite login[69]: FAILED LOGIN 1 FROM pts/0 FOR root, Authentication failure
```

4 years agoMerge pull request #14178 from poettering/journal-namespace
Lennart Poettering [Sat, 1 Feb 2020 10:25:48 +0000 (11:25 +0100)] 
Merge pull request #14178 from poettering/journal-namespace

journal: add concept of "journal namespaces"

4 years agoMerge pull request #14721 from yuwata/home-tiny-fixes
Anita Zhang [Fri, 31 Jan 2020 20:02:51 +0000 (12:02 -0800)] 
Merge pull request #14721 from yuwata/home-tiny-fixes

homed,nspawn,userdb: trivial tiny fixes

4 years agotest: also check the result of merge_gid_lists() 14721/head
Yu Watanabe [Fri, 31 Jan 2020 14:31:19 +0000 (23:31 +0900)] 
test: also check the result of merge_gid_lists()

Fixes CID#1412354.

4 years agouser-util: fix use after free() on error path
Yu Watanabe [Fri, 31 Jan 2020 14:23:44 +0000 (23:23 +0900)] 
user-util: fix use after free() on error path

Fixes CID#1412356.

4 years agouserdbd: fix memleak
Yu Watanabe [Fri, 31 Jan 2020 14:20:45 +0000 (23:20 +0900)] 
userdbd: fix memleak

Fixes CID#1412416.

4 years agoupdate TODO 14178/head
Lennart Poettering [Thu, 28 Nov 2019 10:07:15 +0000 (11:07 +0100)] 
update TODO

4 years agoman: document --namespace= switch of journalctl
Lennart Poettering [Thu, 28 Nov 2019 09:42:33 +0000 (10:42 +0100)] 
man: document --namespace= switch of journalctl

4 years agoman: document the new sd_journal_open_namespace() API
Lennart Poettering [Thu, 28 Nov 2019 09:36:54 +0000 (10:36 +0100)] 
man: document the new sd_journal_open_namespace() API

4 years agoman: document LogNamespace= unit setting
Lennart Poettering [Thu, 28 Nov 2019 09:02:02 +0000 (10:02 +0100)] 
man: document LogNamespace= unit setting

4 years agoman: document new _NAMESPACE= journal field
Lennart Poettering [Wed, 27 Nov 2019 20:29:47 +0000 (21:29 +0100)] 
man: document new _NAMESPACE= journal field

4 years agoman: document journald@NAMESPACE.conf
Lennart Poettering [Wed, 27 Nov 2019 20:38:07 +0000 (21:38 +0100)] 
man: document journald@NAMESPACE.conf

4 years agoman: document journald namespaces
Lennart Poettering [Wed, 27 Nov 2019 18:25:51 +0000 (19:25 +0100)] 
man: document journald namespaces

4 years agojournalctl: underline sections in --help
Lennart Poettering [Thu, 28 Nov 2019 09:50:49 +0000 (10:50 +0100)] 
journalctl: underline sections in --help

4 years agonspawn: voidify umount_verbose()
Yu Watanabe [Fri, 31 Jan 2020 14:10:26 +0000 (23:10 +0900)] 
nspawn: voidify umount_verbose()

Fixes CID#1415122.

4 years agouser-record-util: add missing error check
Yu Watanabe [Fri, 31 Jan 2020 14:08:53 +0000 (23:08 +0900)] 
user-record-util: add missing error check

Fixes CID#1415123.

4 years agohomework: fix errno in log_error_errno()
Yu Watanabe [Fri, 31 Jan 2020 14:07:07 +0000 (23:07 +0900)] 
homework: fix errno in log_error_errno()

Fixes CID#1415124.

4 years agohome: add missing variable initialization
Yu Watanabe [Fri, 31 Jan 2020 14:04:38 +0000 (23:04 +0900)] 
home: add missing variable initialization

Fixes CID#1415126.

4 years agounits: define RuntimeDirectory= in systemd-journald.service
Lennart Poettering [Wed, 27 Nov 2019 20:18:28 +0000 (21:18 +0100)] 
units: define RuntimeDirectory= in systemd-journald.service

It doesn't get us much, but makes the differences between the templated
and non-templated versions a bit smaller.

4 years agounits: sort settings in systemd-journald.service again
Lennart Poettering [Wed, 27 Nov 2019 20:18:10 +0000 (21:18 +0100)] 
units: sort settings in systemd-journald.service again

4 years agotmpfiles: apply ACLs to top-level journal directory in /run, too
Lennart Poettering [Wed, 27 Nov 2019 18:15:11 +0000 (19:15 +0100)] 
tmpfiles: apply ACLs to top-level journal directory in /run, too

We already apply them to the directory in /var. Let's do the same in
/run too. That's because due to the log namespace logic we nowadays can
gain additional subdirs there during regular operation.

4 years agotmpfiles: merge lines for the same inodes
Lennart Poettering [Wed, 27 Nov 2019 18:13:34 +0000 (19:13 +0100)] 
tmpfiles: merge lines for the same inodes

4 years agotest: add simple test for log namespaces
Lennart Poettering [Wed, 27 Nov 2019 16:57:51 +0000 (17:57 +0100)] 
test: add simple test for log namespaces

4 years agojournald: add ability to activate by varlink socket
Lennart Poettering [Wed, 27 Nov 2019 13:47:37 +0000 (14:47 +0100)] 
journald: add ability to activate by varlink socket

If we have exit on idle, then operations such as "journalctl
--namespace=foo --rotate" should work even if the journal daemon is
currently not running.

(Note that we don't do activation by varlink for the main instance of
journald, I am not sure the deadlocks it might introduce are worth it)

4 years agojournald: add exit on idle
Lennart Poettering [Wed, 27 Nov 2019 13:45:24 +0000 (14:45 +0100)] 
journald: add exit on idle

4 years agovarlink: add ability to register callback for disconnections
Lennart Poettering [Wed, 27 Nov 2019 13:43:41 +0000 (14:43 +0100)] 
varlink: add ability to register callback for disconnections

4 years agovarlink: add API for determining number of current connections
Lennart Poettering [Wed, 27 Nov 2019 12:04:33 +0000 (13:04 +0100)] 
varlink: add API for determining number of current connections

4 years agojournald: use structured initialization
Lennart Poettering [Wed, 27 Nov 2019 12:04:07 +0000 (13:04 +0100)] 
journald: use structured initialization

4 years agojournald: add logging for one error we lacked logging for
Lennart Poettering [Wed, 27 Nov 2019 12:03:51 +0000 (13:03 +0100)] 
journald: add logging for one error we lacked logging for

4 years agosystemctl: show logs for correct namespace of service
Lennart Poettering [Wed, 27 Nov 2019 11:13:59 +0000 (12:13 +0100)] 
systemctl: show logs for correct namespace of service

4 years agojournalctl: drop misplaced empty line
Lennart Poettering [Wed, 27 Nov 2019 11:13:08 +0000 (12:13 +0100)] 
journalctl: drop misplaced empty line

4 years agojournalctl: add new --namespace= switch for showing logs for namespace
Lennart Poettering [Mon, 25 Nov 2019 17:49:52 +0000 (18:49 +0100)] 
journalctl: add new --namespace= switch for showing logs for namespace

4 years agojournal: make constant argument actually 'const'
Lennart Poettering [Wed, 27 Nov 2019 11:13:36 +0000 (12:13 +0100)] 
journal: make constant argument actually 'const'

4 years agojournal: allow opening journal files specific to some namespace
Lennart Poettering [Wed, 27 Nov 2019 11:11:24 +0000 (12:11 +0100)] 
journal: allow opening journal files specific to some namespace

4 years agojournal: use structured initialization
Lennart Poettering [Wed, 27 Nov 2019 11:08:39 +0000 (12:08 +0100)] 
journal: use structured initialization

4 years agojournalctl: use an anonymous array when an array is needed
Lennart Poettering [Tue, 26 Nov 2019 10:24:33 +0000 (11:24 +0100)] 
journalctl: use an anonymous array when an array is needed

I am pretty sure this makes things more readable, since the expected
argument here is actually an array.

4 years agojournal: properly mark two definitions that are deprecated with GCC attributes for...
Lennart Poettering [Tue, 26 Nov 2019 10:23:52 +0000 (11:23 +0100)] 
journal: properly mark two definitions that are deprecated with GCC attributes for that

4 years agojournalctl: use automatic memory cleanup
Lennart Poettering [Mon, 25 Nov 2019 17:44:19 +0000 (18:44 +0100)] 
journalctl: use automatic memory cleanup

4 years agojournalctl: use log_error_errno() wherever we can
Lennart Poettering [Mon, 25 Nov 2019 17:42:52 +0000 (18:42 +0100)] 
journalctl: use log_error_errno() wherever we can

4 years agojournalctl: move pcre function code down
Lennart Poettering [Mon, 25 Nov 2019 17:31:44 +0000 (18:31 +0100)] 
journalctl: move pcre function code down

We usually put the static arguments at the top of each source files, do
so here too, and thus move the first code down.

4 years agocore: add new LogNamespace= execution setting
Lennart Poettering [Mon, 25 Nov 2019 15:22:45 +0000 (16:22 +0100)] 
core: add new LogNamespace= execution setting

4 years agostring-util: add brief explanatory comment
Lennart Poettering [Mon, 25 Nov 2019 15:22:10 +0000 (16:22 +0100)] 
string-util: add brief explanatory comment

4 years agounits: add unit files for instantiated journal daemons
Lennart Poettering [Mon, 25 Nov 2019 14:37:35 +0000 (15:37 +0100)] 
units: add unit files for instantiated journal daemons

4 years agojournald: allow running multiple instances of journald
Lennart Poettering [Mon, 25 Nov 2019 14:00:38 +0000 (15:00 +0100)] 
journald: allow running multiple instances of journald

If we do, we operate on a separate set of logs and runtime objects

The namespace is configured via argv[1].

Fixes: #12123
Fixes: #10230 #9519
(These latter two issues ask for slightly different stuff, but the
usecases generally can be solved by running separate instances of
journald now, hence also declaring that as "Fixes:")

4 years agojournald: when create journal directories use calculated paths
Lennart Poettering [Mon, 25 Nov 2019 11:52:42 +0000 (12:52 +0100)] 
journald: when create journal directories use calculated paths

4 years agojournald: minor coding style updates
Lennart Poettering [Mon, 25 Nov 2019 11:50:36 +0000 (12:50 +0100)] 
journald: minor coding style updates

4 years agojournald: let's simplify rotating of offline user journals
Lennart Poettering [Fri, 22 Nov 2019 15:39:18 +0000 (16:39 +0100)] 
journald: let's simplify rotating of offline user journals

Let's just use the path that is already stored in JournalStorage,
instead of generating our own. While we are at it, split out the loop
into its own function.

4 years agojournald: simplify find_journal() a bit
Lennart Poettering [Fri, 22 Nov 2019 15:24:57 +0000 (16:24 +0100)] 
journald: simplify find_journal() a bit

Let's use the already precalculated persistent storage path instead of
deriving it again from the machine ID.

4 years agojournald: hide current storage determination in helper call
Lennart Poettering [Fri, 22 Nov 2019 15:11:20 +0000 (16:11 +0100)] 
journald: hide current storage determination in helper call

4 years agojournald: use structured initialization
Lennart Poettering [Fri, 22 Nov 2019 14:28:53 +0000 (15:28 +0100)] 
journald: use structured initialization

4 years agojournald: line break overly long function header
Lennart Poettering [Fri, 22 Nov 2019 14:23:17 +0000 (15:23 +0100)] 
journald: line break overly long function header

4 years agojournald: let's use TAKE_PTR() and TAKE_FD() where appropriate
Lennart Poettering [Fri, 22 Nov 2019 14:22:40 +0000 (15:22 +0100)] 
journald: let's use TAKE_PTR() and TAKE_FD() where appropriate

4 years agojournald: let's use unlink_and_free() where we can
Lennart Poettering [Fri, 22 Nov 2019 14:22:24 +0000 (15:22 +0100)] 
journald: let's use unlink_and_free() where we can

4 years agojournald: specifying _pure_ on static functions is unnecessary, compiler can figure...
Lennart Poettering [Fri, 22 Nov 2019 14:21:31 +0000 (15:21 +0100)] 
journald: specifying _pure_ on static functions is unnecessary, compiler can figure that out on its own

4 years agojournald: don't bother with seqnum file if we don't read form /dev/kmsg anyway
Lennart Poettering [Fri, 22 Nov 2019 14:21:06 +0000 (15:21 +0100)] 
journald: don't bother with seqnum file if we don't read form /dev/kmsg anyway

4 years agojournald: fix indentation
Lennart Poettering [Fri, 22 Nov 2019 14:20:42 +0000 (15:20 +0100)] 
journald: fix indentation

4 years agojournald: use free_and_replace() where appropriate
Lennart Poettering [Fri, 22 Nov 2019 13:09:35 +0000 (14:09 +0100)] 
journald: use free_and_replace() where appropriate

4 years agojournald: add missing logging for some errors
Lennart Poettering [Fri, 22 Nov 2019 13:00:40 +0000 (14:00 +0100)] 
journald: add missing logging for some errors

4 years agojournald: why bitwise XOR when boolean != is easier to read?
Lennart Poettering [Fri, 22 Nov 2019 12:59:59 +0000 (13:59 +0100)] 
journald: why bitwise XOR when boolean != is easier to read?

4 years agotests: unset LD_PRELOAD in testsuite.service when it's run under ASan
Evgeny Vereshchagin [Fri, 31 Jan 2020 06:13:14 +0000 (06:13 +0000)] 
tests: unset LD_PRELOAD in testsuite.service when it's run under ASan

This should help to address the "grep" issue we ran into in
https://github.com/systemd/systemd-centos-ci/pull/217.

4 years agosd-boot: fix -Wpointer-sign warning 14719/head
Yu Watanabe [Fri, 31 Jan 2020 10:21:11 +0000 (19:21 +0900)] 
sd-boot: fix -Wpointer-sign warning

4 years agoMerge pull request #14718 from yuwata/man-repart-14716
Michael Biebl [Fri, 31 Jan 2020 10:49:24 +0000 (11:49 +0100)] 
Merge pull request #14718 from yuwata/man-repart-14716

man: do not install man pages for systemd-repart if it is disabled

4 years agosd-boot: fix warning about comparison is always true
Yu Watanabe [Fri, 31 Jan 2020 10:20:34 +0000 (19:20 +0900)] 
sd-boot: fix warning about comparison is always true

4 years agoman: do not install man pages for systemd-repart if it is disabled 14718/head
Yu Watanabe [Fri, 31 Jan 2020 09:06:05 +0000 (18:06 +0900)] 
man: do not install man pages for systemd-repart if it is disabled

Closes #14716.

4 years agoMerge pull request #14712 from wlhlm/root-storage-daemons-docs-fix
Anita Zhang [Thu, 30 Jan 2020 20:57:21 +0000 (12:57 -0800)] 
Merge pull request #14712 from wlhlm/root-storage-daemons-docs-fix

Tiny fix for example code in docs

4 years agoMerge pull request #14696 from poettering/dissect-tweaks
Anita Zhang [Thu, 30 Jan 2020 20:46:03 +0000 (12:46 -0800)] 
Merge pull request #14696 from poettering/dissect-tweaks

various tweaks to the image dissection logic

4 years agodocs: Fix example code in ROOT_STORAGE_DAEMONS 14712/head
Wilhelm Schuster [Thu, 30 Jan 2020 20:27:05 +0000 (20:27 +0000)] 
docs: Fix example code in ROOT_STORAGE_DAEMONS

4 years agoMerge pull request #14701 from keszybz/homed-fixups
Yu Watanabe [Thu, 30 Jan 2020 15:09:39 +0000 (00:09 +0900)] 
Merge pull request #14701 from keszybz/homed-fixups

Trivial homed fixups

4 years agodocs: formatting fix (#14707)
mtron [Thu, 30 Jan 2020 15:06:57 +0000 (16:06 +0100)] 
docs: formatting fix (#14707)

fixes formatting in the last paragraph of the 'General Structure' chapter.

4 years agopo: add src/home/org.freedesktop.home1.policy to POTFILES.in
Piotr Drąg [Thu, 30 Jan 2020 14:14:32 +0000 (15:14 +0100)] 
po: add src/home/org.freedesktop.home1.policy to POTFILES.in

4 years agofix links to GROUP_RECORD and USER_GROUP_API
mtron [Thu, 30 Jan 2020 14:45:52 +0000 (15:45 +0100)] 
fix links to GROUP_RECORD and USER_GROUP_API

fix 2 more broken links.

GROUP_RECORD now points to https://systemd.io/GROUP_RECORD/ and
USER_GROUP_API to https://systemd.io/USER_GROUP_API/

4 years agofix link to JSON User Records
mtron [Thu, 30 Jan 2020 14:26:02 +0000 (15:26 +0100)] 
fix link to JSON User Records

4 years agoVarious typo fixes and grammar corrections 14701/head
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2020 12:46:19 +0000 (13:46 +0100)] 
Various typo fixes and grammar corrections

4 years agopolkit: tweak grammar
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2020 11:34:05 +0000 (12:34 +0100)] 
polkit: tweak grammar

4 years agomeson: fix type of homed option
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2020 11:27:45 +0000 (12:27 +0100)] 
meson: fix type of homed option

4 years agoMerge pull request #14096 from poettering/homed
Zbigniew Jędrzejewski-Szmek [Thu, 30 Jan 2020 11:32:06 +0000 (12:32 +0100)] 
Merge pull request #14096 from poettering/homed

systemd-homed

4 years agopo: update Polish translation
Piotr Drąg [Wed, 29 Jan 2020 16:28:15 +0000 (17:28 +0100)] 
po: update Polish translation

4 years agoupdate TODO
Lennart Poettering [Wed, 29 Jan 2020 18:32:39 +0000 (19:32 +0100)] 
update TODO

4 years agoupdate TODO 14696/head
Lennart Poettering [Wed, 29 Jan 2020 17:09:25 +0000 (18:09 +0100)] 
update TODO

4 years agocore: fsck images specified as RootImage= too before using them
Lennart Poettering [Wed, 29 Jan 2020 18:21:44 +0000 (19:21 +0100)] 
core: fsck images specified as RootImage= too before using them

4 years agonspawn: fsck all images when mounting things
Lennart Poettering [Wed, 29 Jan 2020 18:20:33 +0000 (19:20 +0100)] 
nspawn: fsck all images when mounting things

Also, start logging about mount errors, things are hard to debug
otherwise.

4 years agodissect: add --fsck= option to systemd-dissect tool
Lennart Poettering [Wed, 29 Jan 2020 18:15:47 +0000 (19:15 +0100)] 
dissect: add --fsck= option to systemd-dissect tool

Let's expose this fsck behaviour directly.

4 years agodissect: optionally, run fsck before mounting dissected images
Lennart Poettering [Wed, 29 Jan 2020 18:13:24 +0000 (19:13 +0100)] 
dissect: optionally, run fsck before mounting dissected images

Some file systems want us to run fsck before mounting, hence do so,
optionally.

4 years agodissect: complain if partition flags are set that we don't know
Lennart Poettering [Wed, 29 Jan 2020 17:08:36 +0000 (18:08 +0100)] 
dissect: complain if partition flags are set that we don't know

4 years agonetwork: fix implicit type conversion warning by GCC-10
Yu Watanabe [Wed, 29 Jan 2020 11:39:12 +0000 (20:39 +0900)] 
network: fix implicit type conversion warning by GCC-10

Fixes part of #14691.

4 years agoupdate TODO
Lennart Poettering [Wed, 29 Jan 2020 18:22:26 +0000 (19:22 +0100)] 
update TODO

4 years agoupdate TODO
Lennart Poettering [Wed, 29 Jan 2020 15:55:59 +0000 (16:55 +0100)] 
update TODO

4 years agopam_systemd: resolve the tty of display via /sys instead of /dev
Topi Miettinen [Sun, 26 Jan 2020 09:58:34 +0000 (11:58 +0200)] 
pam_systemd: resolve the tty of display via /sys instead of /dev

Rely on information provided by /proc/*/stat and /sys/dev/char for resolving
the controlling tty for the display server, instead of trying to access the
tty device in /dev (which may not be accessible for example due to
PrivateDevices=yes).

4 years agoid128: change table header from "uuid" to just "id"
Lennart Poettering [Wed, 29 Jan 2020 13:13:03 +0000 (14:13 +0100)] 
id128: change table header from "uuid" to just "id"

The tool deals with any kind of 128bit id, not just uuid, and by default
we display just a series of hex chars, hence let's not claim everything
was a "uuid", but just generically say "id"

4 years agoNEWS: more v245 preparation
Lennart Poettering [Wed, 29 Jan 2020 13:12:22 +0000 (14:12 +0100)] 
NEWS: more v245 preparation

4 years agopo: update French translation
splantefeve [Tue, 28 Jan 2020 22:16:25 +0000 (23:16 +0100)] 
po: update French translation

4 years agoNEWS: start preparing v245
Lennart Poettering [Wed, 29 Jan 2020 10:44:32 +0000 (11:44 +0100)] 
NEWS: start preparing v245