Lennart Poettering
d6f46470f5
journald: when create journal directories use calculated paths
2020-01-31 15:01:14 +01:00
Lennart Poettering
4f60310373
journald: minor coding style updates
2020-01-31 15:01:09 +01:00
Lennart Poettering
4e00337b16
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.
2020-01-31 15:01:05 +01:00
Lennart Poettering
46e2348a58
journald: simplify find_journal() a bit
...
Let's use the already precalculated persistent storage path instead of
deriving it again from the machine ID.
2020-01-31 15:01:01 +01:00
Lennart Poettering
b42b9479a8
journald: hide current storage determination in helper call
2020-01-31 15:00:57 +01:00
Lennart Poettering
74dd8f5759
journald: use structured initialization
2020-01-31 15:00:53 +01:00
Lennart Poettering
8548f4f09b
journald: line break overly long function header
2020-01-31 15:00:49 +01:00
Lennart Poettering
7e7ef3bfb2
journald: let's use TAKE_PTR() and TAKE_FD() where appropriate
2020-01-31 15:00:45 +01:00
Lennart Poettering
a30e35f85a
journald: let's use unlink_and_free() where we can
2020-01-31 15:00:41 +01:00
Lennart Poettering
2066f4fe30
journald: specifying _pure_ on static functions is unnecessary, compiler can figure that out on its own
2020-01-31 15:00:37 +01:00
Lennart Poettering
a2735a4549
journald: don't bother with seqnum file if we don't read form /dev/kmsg anyway
2020-01-31 15:00:33 +01:00
Lennart Poettering
dbac262578
journald: fix indentation
2020-01-31 15:00:29 +01:00
Lennart Poettering
99d0d05a10
journald: use free_and_replace() where appropriate
2020-01-31 15:00:25 +01:00
Lennart Poettering
659a77bec6
journald: add missing logging for some errors
2020-01-31 15:00:21 +01:00
Lennart Poettering
d83f7e4c92
journald: why bitwise XOR when boolean != is easier to read?
2020-01-31 14:59:41 +01:00
Yu Watanabe
efda8aebcb
sd-boot: fix -Wpointer-sign warning
2020-01-31 19:59:34 +09:00
Yu Watanabe
a614aa1985
sd-boot: fix warning about comparison is always true
2020-01-31 19:20:34 +09:00
Yu Watanabe
3ae01632f2
dhcp6: coding style fixes
2020-01-31 14:44:40 +09:00
Yu Watanabe
9de8a4259e
dhcp6: do not use T1 and T2 longer than one provided by the lease
...
Fixes #12623 .
2020-01-31 14:44:32 +09:00
Anita Zhang
1b9d61bcee
Merge pull request #14696 from poettering/dissect-tweaks
...
various tweaks to the image dissection logic
2020-01-30 12:46:03 -08:00
Zbigniew Jędrzejewski-Szmek
2a4be3c52b
Various typo fixes and grammar corrections
2020-01-30 13:48:01 +01:00
Zbigniew Jędrzejewski-Szmek
402058dc3a
polkit: tweak grammar
2020-01-30 12:34:05 +01:00
Zbigniew Jędrzejewski-Szmek
4119d1e60a
Merge pull request #14096 from poettering/homed
...
systemd-homed
2020-01-30 12:32:06 +01:00
Zbigniew Jędrzejewski-Szmek
f3b136a484
shared/sysctl-util: normalize repeated slashes or dots to a single value
...
We use those strings as hash keys. While writing "a...b" looks strange,
"a///b" does not look so strange. Both syntaxes would actually result in the
value being correctly written to the file, but they would confuse our
de-deplication over keys. So let's normalize. Output also becomes nicer.
Add test.
2020-01-30 10:48:27 +01:00
Lennart Poettering
8d251485fa
core: fsck images specified as RootImage= too before using them
2020-01-29 19:29:59 +01:00
Lennart Poettering
4fcb96ce25
nspawn: fsck all images when mounting things
...
Also, start logging about mount errors, things are hard to debug
otherwise.
2020-01-29 19:29:55 +01:00
Lennart Poettering
e475f72977
dissect: add --fsck= option to systemd-dissect tool
...
Let's expose this fsck behaviour directly.
2020-01-29 19:29:52 +01:00
Lennart Poettering
cf32c48657
dissect: optionally, run fsck before mounting dissected images
...
Some file systems want us to run fsck before mounting, hence do so,
optionally.
2020-01-29 19:29:44 +01:00
Lennart Poettering
0f7c9a3d81
dissect: complain if partition flags are set that we don't know
2020-01-29 19:29:39 +01:00
Yu Watanabe
a44956c94a
network: fix implicit type conversion warning by GCC-10
...
Fixes part of #14691 .
2020-01-29 19:24:12 +01:00
Topi Miettinen
e21d90606a
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).
2020-01-29 16:06:48 +01:00
Lennart Poettering
72d43d09cc
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"
2020-01-29 15:32:26 +01:00
Lennart Poettering
bcb1eadc0c
test: fix rename_noreplace() test
...
This corrects the fix b81b9d406d , making the test operate like it was
originally.
2020-01-28 22:53:59 +01:00
Lennart Poettering
3c7b4ebf94
test: make sure chase_symlink() returns normalized paths
2020-01-28 22:53:59 +01:00
Lennart Poettering
47d7ab727c
fs-util: make sure we output normalized paths in chase_symlinks()
...
Let's eat up multiple slashes.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1787089
Replaces: #14687
2020-01-28 22:53:59 +01:00
Lennart Poettering
6efb1257d1
test: add test for the non-resolving of chase_symlink() root prefix
2020-01-28 22:53:59 +01:00
Lennart Poettering
c2595d3b02
fs-util: when calling chase_symlinks() with root path, leave root part unresolved
...
Previously there was a weird asymmetry: initially we'd resolve the
specified prefix path when chasing symlinks together with the actual
path we were supposed to cover, except when we hit an absolute symlink
where we'd use the root as it was. Let's unify handling here: the prefix
path is never resolved, and always left as it is.
This in particular fixes issues with symlinks in the prefix path, as
that confused the check that made sure we never left the root directory.
Fixes : #14634
Replaces: #14635
2020-01-28 22:53:59 +01:00
Lennart Poettering
ba0fb5acd4
sleep: automatically lock all home directories when suspending
2020-01-28 22:36:56 +01:00
Lennart Poettering
26cf9fb7f8
home: add pam_systemd_home.so PAM hookup
...
In a way fixes: https://bugs.freedesktop.org/show_bug.cgi?id=67474
2020-01-28 22:36:41 +01:00
Lennart Poettering
4aa0a8ac3e
home: add homectl client tool
2020-01-28 22:36:30 +01:00
Lennart Poettering
70a5db5822
home: add new systemd-homed service that can manage LUKS homes
...
Fixes more or less: https://bugs.freedesktop.org/show_bug.cgi?id=67474
2020-01-28 22:36:07 +01:00
Franck Bui
1ffadeaae3
udev: assume that the recv buffer size of the netlink socket is already configured when the socket is passed in
...
This makes ReceiveBuffer= option in systemd-udevd-kernel.socket unit useful.
2020-01-28 22:35:08 +01:00
Lennart Poettering
b940fb1f4f
Merge pull request #14594 from keszybz/id128-show-gpt
...
Print gpt table values in systemd-id128
2020-01-28 17:23:50 +01:00
Zbigniew Jędrzejewski-Szmek
ebe2ab60cc
Merge pull request #14611 from yuwata/network-fix-reconfigure
...
network: fix reconfigure
2020-01-28 16:10:28 +01:00
Zbigniew Jędrzejewski-Szmek
d2b45da40a
Merge pull request #14633 from poettering/logind-switch-polkit
...
add polkit hookup for VT switching in logind
2020-01-28 16:09:09 +01:00
Lennart Poettering
8615bec7a0
Merge pull request #14667 from yuwata/boot-random-seed-mode
...
boot: parse random-seed-mode
2020-01-28 15:42:10 +01:00
Lennart Poettering
4523f1db0f
Merge pull request #14675 from yuwata/network-dhcp-accept-nul
...
network: accept NUL character in SendOption=
2020-01-28 15:18:16 +01:00
Lennart Poettering
766840af42
Merge pull request #14673 from keur/protect_clock
...
Protect clock
2020-01-28 15:11:41 +01:00
sangelovic
58abbbcc6b
sd-bus: fix introspection bug in signal parameter names
2020-01-28 11:20:33 +01:00
Yu Watanabe
732e3a6104
network: accept NUL character in SendOption=
...
Closes #14609 .
2020-01-27 19:58:10 +09:00