Yu Watanabe
c757517d98
meson: fix feature list
2020-02-02 17:09:28 +01:00
Lennart Poettering
a754993d9c
Merge pull request #14719 from yuwata/sd-boot-fix-warnings
...
sd-boot: fix warnings
2020-02-02 16:57:17 +01:00
David Michael
649916d356
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
2020-02-02 16:53:22 +01:00
Yu Watanabe
4e3132d6d6
Merge pull request #14672 from yuwata/network-routing-policy-uidrange
...
network: support UID based routing policy
2020-02-02 22:46:04 +09:00
Yu Watanabe
6be8e78e32
test-network: add test for UID based routing policy
2020-02-02 22:43:38 +09:00
Yu Watanabe
ea471a4695
network: support UID based routing policy
...
Closes #14666 .
2020-02-02 22:43:38 +09:00
Yu Watanabe
03de302a31
util: add parse_uid_range() helper function
2020-02-02 22:43:38 +09:00
Yu Watanabe
af06ddf51a
meson, man: do not install pam_systemd_home(8) when pam or homed is disabled
...
Fixes #14725 .
2020-02-01 12:13:45 +01:00
Frantisek Sumsal
2273ecfeda
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
```
2020-02-01 11:55:17 +01:00
Lennart Poettering
5ee69e144e
Merge pull request #14178 from poettering/journal-namespace
...
journal: add concept of "journal namespaces"
2020-02-01 11:25:48 +01:00
Anita Zhang
279be556f8
Merge pull request #14721 from yuwata/home-tiny-fixes
...
homed,nspawn,userdb: trivial tiny fixes
2020-01-31 12:02:51 -08:00
Yu Watanabe
020313b213
test: also check the result of merge_gid_lists()
...
Fixes CID#1412354.
2020-01-31 23:31:23 +09:00
Yu Watanabe
4af8ab2cab
user-util: fix use after free() on error path
...
Fixes CID#1412356.
2020-01-31 23:23:44 +09:00
Yu Watanabe
b44b735a78
userdbd: fix memleak
...
Fixes CID#1412416.
2020-01-31 23:20:52 +09:00
Lennart Poettering
ad23785246
update TODO
2020-01-31 15:10:40 +01:00
Lennart Poettering
2b6b8bd3f7
man: document --namespace= switch of journalctl
2020-01-31 15:10:40 +01:00
Lennart Poettering
241c8f67f6
man: document the new sd_journal_open_namespace() API
2020-01-31 15:10:40 +01:00
Lennart Poettering
5b0a76d107
man: document LogNamespace= unit setting
2020-01-31 15:10:40 +01:00
Lennart Poettering
7d8155b3df
man: document new _NAMESPACE= journal field
2020-01-31 15:10:40 +01:00
Lennart Poettering
6bc4361997
man: document journald@NAMESPACE.conf
2020-01-31 15:10:40 +01:00
Lennart Poettering
efcbcd0d04
man: document journald namespaces
2020-01-31 15:10:40 +01:00
Lennart Poettering
23d8c56046
journalctl: underline sections in --help
2020-01-31 15:10:40 +01:00
Yu Watanabe
9610210d32
nspawn: voidify umount_verbose()
...
Fixes CID#1415122.
2020-01-31 23:10:29 +09:00
Yu Watanabe
02cec15629
user-record-util: add missing error check
...
Fixes CID#1415123.
2020-01-31 23:08:59 +09:00
Yu Watanabe
00c7b071ac
homework: fix errno in log_error_errno()
...
Fixes CID#1415124.
2020-01-31 23:07:15 +09:00
Yu Watanabe
852640f8a2
home: add missing variable initialization
...
Fixes CID#1415126.
2020-01-31 23:04:43 +09:00
Lennart Poettering
340cb115b3
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.
2020-01-31 15:04:24 +01:00
Lennart Poettering
5591cd4e20
units: sort settings in systemd-journald.service again
2020-01-31 15:04:15 +01:00
Lennart Poettering
fb38a7beb8
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.
2020-01-31 15:04:12 +01:00
Lennart Poettering
0f5a4f9cd9
tmpfiles: merge lines for the same inodes
2020-01-31 15:04:08 +01:00
Lennart Poettering
db23d83bd4
test: add simple test for log namespaces
2020-01-31 15:04:05 +01:00
Lennart Poettering
dc5437c78b
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)
2020-01-31 15:03:55 +01:00
Lennart Poettering
65c398c031
journald: add exit on idle
2020-01-31 15:03:44 +01:00
Lennart Poettering
6d4d600260
varlink: add ability to register callback for disconnections
2020-01-31 15:03:27 +01:00
Lennart Poettering
c4f601f205
varlink: add API for determining number of current connections
2020-01-31 15:03:11 +01:00
Lennart Poettering
d98580e438
journald: use structured initialization
2020-01-31 15:03:07 +01:00
Lennart Poettering
2435269171
journald: add logging for one error we lacked logging for
2020-01-31 15:03:04 +01:00
Lennart Poettering
d93dda3afe
systemctl: show logs for correct namespace of service
2020-01-31 15:02:52 +01:00
Lennart Poettering
21fa231ece
journalctl: drop misplaced empty line
2020-01-31 15:02:48 +01:00
Lennart Poettering
6b25db87a1
journalctl: add new --namespace= switch for showing logs for namespace
2020-01-31 15:02:45 +01:00
Lennart Poettering
31e99dd2cc
journal: make constant argument actually 'const'
2020-01-31 15:02:41 +01:00
Lennart Poettering
456aa87906
journal: allow opening journal files specific to some namespace
2020-01-31 15:02:29 +01:00
Lennart Poettering
2f5435a147
journal: use structured initialization
2020-01-31 15:02:25 +01:00
Lennart Poettering
33ff74643e
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.
2020-01-31 15:02:22 +01:00
Lennart Poettering
68312977db
journal: properly mark two definitions that are deprecated with GCC attributes for that
2020-01-31 15:02:00 +01:00
Lennart Poettering
e7238caf0c
journalctl: use automatic memory cleanup
2020-01-31 15:01:57 +01:00
Lennart Poettering
0491150b5c
journalctl: use log_error_errno() wherever we can
2020-01-31 15:01:53 +01:00
Lennart Poettering
a6214d9643
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.
2020-01-31 15:01:50 +01:00
Lennart Poettering
91dd5f7cbe
core: add new LogNamespace= execution setting
2020-01-31 15:01:43 +01:00
Lennart Poettering
839d1b2014
string-util: add brief explanatory comment
2020-01-31 15:01:39 +01:00