Yu Watanabe [Thu, 30 Dec 2021 18:56:59 +0000 (03:56 +0900)]
hostname-util: drop GET_HOSTNAME_ALLOW_NONE flag and always refuse "(none)"
The flag is now only used in test-sysctl-util.c, and it should be
replaced with uname(), because of the same reason as the previous
commit.
(cherry picked from commit
9383fa08bd263277d9a17a8999c3497458f273e3)
Yu Watanabe [Thu, 30 Dec 2021 18:48:17 +0000 (03:48 +0900)]
hostname-setup: gracefully handle kernel with empty CONFIG_DEFAULT_HOSTNAME
Previously, sethostname_idempotent_full() calls gethostname_full() with
GET_HOSTNAME_ALLOW_NONE and GET_HOSTNAME_ALLOW_LOCALHOST flags. That
intended to get any values set by kernel. But, that does not work, as
the hostname may be empty.
Let's simplify the logic. The function sethostname_idempotent_full()
intends to set the requested hostname only when the current hostname
is different from the requested one. So, no check in getostname_full()
is required. Hence, simply use the result of uname() here.
Fixes #21896.
(cherry picked from commit
d8d6b2275f7b7a5b58c6b0d89b78c927333c6af9)
Jan Janssen [Sun, 2 Jan 2022 13:37:32 +0000 (14:37 +0100)]
boot: Do not warn if an initializing driver returns EFI_ABORTED
Fixes: #21965
(cherry picked from commit
8fb16fee96a1563738e7fa784fc45d152b8c2694)
Yu Watanabe [Sun, 2 Jan 2022 18:47:27 +0000 (03:47 +0900)]
seccomp-util: include missing_syscall_def.h to make __SNR_foo mapped to __NR_foo
Fixes #21969.
(cherry picked from commit
e83156c264d149e8f92f05b4d777317824a430f1)
Yu Watanabe [Sun, 2 Jan 2022 18:44:50 +0000 (03:44 +0900)]
missing-syscall: add __NR_openat2
(cherry picked from commit
d96ad9e8cb9fc8a9adfeebf69a645b809705daa0)
Yu Watanabe [Sun, 2 Jan 2022 18:48:10 +0000 (03:48 +0900)]
syscalls: update syscall definitions
(cherry picked from commit
0c718b1a67cd0d3512eafeb4659458694bf3865b)
Jan Janssen [Sun, 2 Jan 2022 19:05:58 +0000 (20:05 +0100)]
ci: Test efi binaries for section table gaps
(cherry picked from commit
bbbf1c3d3229d328f1bcbf039db8e15e221a1d85)
Jan Janssen [Sat, 1 Jan 2022 15:37:27 +0000 (16:37 +0100)]
boot: Use objcopy to align sections
Not aligning these can create gaps in the section table. Some
firmware does not handle this nicely resulting in secure boot
signature fails.
Using objcopy ensures that any new sections in the future will be
properly aligned.
Fixes: #21956
(cherry picked from commit
75747c8a399967fa5d815a8f70f724436d035652)
Yu Watanabe [Fri, 31 Dec 2021 00:13:00 +0000 (09:13 +0900)]
nss-myhostname: do not apply non-zero offset to null pointer
Fixes https://github.com/systemd/systemd/issues/21935#issuecomment-
1003216503.
(cherry picked from commit
92e9df9ca031b9b04487a46afd986ab3122183fd)
Yu Watanabe [Thu, 30 Dec 2021 21:59:42 +0000 (06:59 +0900)]
nss-systemd: fix alignment of gr_mem
Follow-up for
1e65eb8f9b7d567462030b2e625998d77677e636.
Fixes #21935.
(cherry picked from commit
420a35c1fadfb4d67be6316436233d98b5688de5)
Yu Watanabe [Thu, 30 Dec 2021 21:05:21 +0000 (06:05 +0900)]
udev: fix ID_NET_NAME_MAC= udev property
This fixes a bug introduced by
eaba9bb3e69635d2c490c5e1b0d262b763753e1d.
The commit mistakenly drops 'x' in ID_NET_NAME_MAC, and adds colons.
The colons were dropped by the commit
dfa4876c417e2a9935d58100d44d94bb41cd5bfb,
but the missing 'x' was not added at that time.
Follow-up for
dfa4876c417e2a9935d58100d44d94bb41cd5bfb.
(cherry picked from commit
60e930fc3e6eb8a36fbc184773119eb8d2f30364)
Zbigniew Jędrzejewski-Szmek [Thu, 30 Dec 2021 13:51:44 +0000 (14:51 +0100)]
meson: fix detection of libcryptsetup functions
Meson would generate the following compile test:
#define crypt_set_metadata_size meson_disable_define_of_crypt_set_metadata_size
#include <limits.h>
#undef crypt_set_metadata_size
#ifdef __cplusplus
extern "C"
#endif
char crypt_set_metadata_size (void);
#if defined __stub_crypt_set_metadata_size || defined __stub___crypt_set_metadata_size
fail fail fail this function is not going to work
#endif
int main(void) {
return crypt_set_metadata_size ();
}
This works fine when the identifier being queried is an actual function. But
crypt_token_max() is an inline function, so getting the address would fail,
leading to a false negative result. Complation would fail because the function
would be defined twice.
With this patch, the check is changed to include the header:
#include <libcryptsetup.h>
#include <limits.h>
#if defined __stub_crypt_set_metadata_size || defined __stub___crypt_set_metadata_size
fail fail fail this function is not going to work
#endif
int main(void) {
void *a = (void*) &crypt_set_metadata_size;
long long b = (long long) a;
return (int) b;
}
which seems to work correctly.
(cherry picked from commit
aac8071730bd0bca3c2289bda628b1ef7a2591d2)
Yu Watanabe [Thu, 30 Dec 2021 17:15:40 +0000 (02:15 +0900)]
test-network: add testcase for invalid AllowedIPs=
(cherry picked from commit
14b451f20aaffa25f7091a7f1240aa711459b13e)
Yu Watanabe [Thu, 30 Dec 2021 17:08:56 +0000 (02:08 +0900)]
network: wireguard: warn about invalid allowed IP addresses
But handle them gracefully. Otherwise, when the route to the address is
being configured, kernel refuse the route.
Note that kernel's wireguard module handle e.g. 192.168.10.3/24 as
192.168.10.0/24.
Fixes #21929.
(cherry picked from commit
af670fc635d1b7cd987fdb1acaf35d74c370e73f)
Yu Watanabe [Thu, 30 Dec 2021 15:31:51 +0000 (00:31 +0900)]
nss-systemd: fix required buffer size calculation
This also fixes the pointer assigned to the gr_mem element of struct group.
Fixes a bug introduced by
47fd7fa6c650d7a0ac41bc89747e3b866ffb9534.
Fixes #21935.
(cherry picked from commit
1e65eb8f9b7d567462030b2e625998d77677e636)
Yu Watanabe [Thu, 30 Dec 2021 15:11:01 +0000 (00:11 +0900)]
sysusers: use filename if /proc is not mounted
During system install, /proc may not be mounted yet.
Fixes RHBZ#
2036217 (https://bugzilla.redhat.com/show_bug.cgi?id=
2036217).
(cherry picked from commit
b78d7f246899687a1697cdcebe93d8512c5e7c4b)
Noel Kuntze [Thu, 30 Dec 2021 11:49:23 +0000 (12:49 +0100)]
network: complete example for xfrm setup
(cherry picked from commit
0d03e672a97c6ee85f563648e1ff40c88ce81d85)
Luca Boccassi [Thu, 30 Dec 2021 00:54:32 +0000 (00:54 +0000)]
systemd-run: ensure error logs suggest to use '--user' when appropriate
Before:
$ systemd-run --service-type=notify --user false
Job for run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service failed because the control process exited with error code.
See "systemctl status run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service" and "journalctl -xeu run-rc3fe52ee6ddd4a6eaaf1a20e0a949cdf.service" for details.
After:
$ systemd-run --service-type=notify --user false
Job for run-r7791e380a7b6400ea01d6a0e5a458b23.service failed because the control process exited with error code.
See "systemctl --user status run-r7791e380a7b6400ea01d6a0e5a458b23.service" and "journalctl --user -xeu run-r7791e380a7b6400ea01d6a0e5a458b23.service" for details.
Fixes https://github.com/systemd/systemd/issues/21933
(cherry picked from commit
466f2351bbb5c0fdc9f153e35506570e59b14c5f)
Luca Boccassi [Thu, 30 Dec 2021 00:53:29 +0000 (00:53 +0000)]
dbus-wait-for-jobs: add extra_args to bus_wait_for_jobs_one()
And pass it through to bus_wait_for_jobs()
(cherry picked from commit
86980de64bf8c03505eec729808f52f3b3042998)
Jan Janssen [Wed, 29 Dec 2021 13:35:07 +0000 (14:35 +0100)]
boot: Introduce helper macros for offset checking
This fixes a subtle sizeof overflow on 32bit machines.
(cherry picked from commit
aa1d0f25873f737fb9306a12f9283872012f2d9a)
Jan Janssen [Tue, 28 Dec 2021 15:07:09 +0000 (16:07 +0100)]
boot: Reject unaligned data
The data seems to be properly aligned in real BCD stores, so it
should be fine to just reject bad ones.
Fixes: #21917
(cherry picked from commit
1cadb35fd68f0255e50627dffd25c83e7e2081e5)
Yu Watanabe [Wed, 29 Dec 2021 03:04:46 +0000 (12:04 +0900)]
manager: always close idle pipe when sending ready notification
This fixes a bug introduced by
6d9326595592f98e8126eacb4176acd8c3516d5c.
The commit makes several functions skipped if the manager is already
in finished state, as
> In manager_check_finished(), more steps are skipped if MANAGER_IS_FINISHED().
> Those steps are idempotent, but no need to waste cycles trying to do them
> more than once.
However, the idle pipe may be re-opened after manager is finished:
manager_dispatch_run_queue() -> manager_watch_idle_pipe().
So, the closing the pipe is not idempotent here.
Fixes #21889.
(cherry picked from commit
9c1b17c3dc1541df02118ee3aaf6dd5dd540cdc2)
ksa678491784 [Tue, 28 Dec 2021 15:09:33 +0000 (18:09 +0300)]
stub: Do not assume having DeviceHandle
(cherry picked from commit
5204355861643a658a6d8e009b67e422cdb9194b)
Yu Watanabe [Tue, 28 Dec 2021 13:42:03 +0000 (22:42 +0900)]
network: ndisc: ignore route prefix to ::/0
Fixes #21912.
(cherry picked from commit
80bfc3b901317ca7c1aaede0cd69150789a6e9be)
Yu Watanabe [Tue, 28 Dec 2021 15:49:11 +0000 (00:49 +0900)]
test: add testcases of symlinked drop-in directories
(cherry picked from commit
cf6562e4565c3055e1f387adadf2ff7fb0ce1688)
Yu Watanabe [Tue, 28 Dec 2021 15:47:20 +0000 (00:47 +0900)]
unti-file: fix symlinked drop-in directory handling
This fixes a bug introduced by
95ef0eaf0d5cd43fcc8e9eb541f2c342f25f8f2f.
Fixes #21920.
(cherry picked from commit
7f304b856164a70b240d66d279fe66e7c8e8887d)
Luca Boccassi [Mon, 27 Dec 2021 18:22:43 +0000 (18:22 +0000)]
core: do not touch /run/systemd/systemd-units-load from user session instances
Follow-up for: https://github.com/systemd/systemd/commit/
15b9243c0d7f6d1531fa65dbc01bd11e8e6c12ca
Fixes: https://github.com/systemd/systemd/issues/21911
(cherry picked from commit
4b3ad81bfafcd97acb06db463495e348d159d8e6)
Jan Janssen [Mon, 27 Dec 2021 21:49:02 +0000 (22:49 +0100)]
boot: Fix name length comparison
(cherry picked from commit
2198a773916f0e4ecca01725118f1f5a6bbe27b1)
Jan Janssen [Mon, 27 Dec 2021 21:46:06 +0000 (22:46 +0100)]
boot: Fix off-by-one offset sanity checks
(cherry picked from commit
c3c5b93a0c04c4940724b7babca92f4e75f49b98)
Jan Janssen [Mon, 27 Dec 2021 21:41:50 +0000 (22:41 +0100)]
boot: Fix off-by-one NUL-termination
(cherry picked from commit
fab82756462fd0ce82836e3d95721954d7ab2527)
Luca Boccassi [Sun, 26 Dec 2021 16:45:13 +0000 (16:45 +0000)]
chrattr-util: return EOPNOTSUPP from chrattr_full if no other failure was observed
When chattr_full tries to apply flags one-by-one, and one fails,
record which errno was returned. But record EOPNOTSUPP(&friends)
only if no other error is observed, and return it only in that case
(otherwise keep returning ENOANO), so that callers can respond
appropriately to EOPNOTSUPP vs more relevant errors.
For example, this lets tmpfiles.d log at debug level when a filesystem
flag cannot be applied because the filesystem does not support it,
but at warning level if something else went wrong when applying it.
Restores logging behaviour of tmpfiles.d to pre-250.
Follow-up for: https://github.com/systemd/systemd/commit/
c1631ee124a30abfb9c71e2a1534b8afffc3b6a7
Fixes: https://github.com/systemd/systemd/issues/21901
(cherry picked from commit
7c3b51c469140cdbc1b7e9a232af3f250fea3884)
Mike Gilbert [Sat, 25 Dec 2021 00:20:36 +0000 (19:20 -0500)]
random-util: use ssize_t for getrandom return value
This matches the prototype provided by glibc.
(cherry picked from commit
289b41aae7356b7a6c72ff4a3476193a084ff33f)
James Hilliard [Sat, 25 Dec 2021 10:16:57 +0000 (03:16 -0700)]
meson: don't try to guess versioned clang/llvm-strip bins for cross compile
This should simplify overriding the program locations as the binary
names should now not change if cross compiling.
It's likely any attempts at autodetecting these in cross environments will
be brittle at best so lets just disable it.
(cherry picked from commit
4b7b73c7140b3c923064c6bf27a30b0e88a72f7a)
Yu Watanabe [Fri, 24 Dec 2021 01:06:13 +0000 (10:06 +0900)]
meson: fix build with -Dcryptolib=openssl -Ddns-over-tls=false
Previously, when -Ddns-over-tls=false, libopenssl was missing in the
dependency of resolved.
Also, this drops libgpg_error when it is not necessary.
Replaces #21878.
Yu Watanabe [Fri, 24 Dec 2021 05:52:44 +0000 (14:52 +0900)]
man: also add anotations for methods
Fixes #21882.
Yu Watanabe [Fri, 24 Dec 2021 00:15:51 +0000 (09:15 +0900)]
missing-syscall: define all MOUNT_ATTR_* if missing
Fixes #21876.
Zbigniew Jędrzejewski-Szmek [Thu, 23 Dec 2021 12:32:03 +0000 (13:32 +0100)]
NEWS: finalize release
Yu Watanabe [Thu, 23 Dec 2021 20:03:16 +0000 (05:03 +0900)]
analyze: fix segfault when malloc() fails (#21874)
Fixes #21872.
log_syntax_callback sets 's', a.k.a. '*userdata', to POINTER_MAX to signal allocation failure.
If the error does not cause immediate failure of the program, and log_syntax_callback is called
again, it would try to use 's' as a pointer to a set and fail badly.
Zbigniew Jędrzejewski-Szmek [Thu, 23 Dec 2021 19:07:41 +0000 (20:07 +0100)]
Merge pull request #21869 from yuwata/sd-journal-fix-segfault
sd-journal: fix segfault
Luca Boccassi [Thu, 23 Dec 2021 17:43:37 +0000 (17:43 +0000)]
Merge pull request #21870 from keszybz/cleanup-and-comments
Use _cleanup_ and adjust comments
Zbigniew Jędrzejewski-Szmek [Thu, 23 Dec 2021 12:26:09 +0000 (13:26 +0100)]
src/basic: adjust grammar in comments
Zbigniew Jędrzejewski-Szmek [Fri, 17 Dec 2021 15:04:33 +0000 (16:04 +0100)]
shared: re-wrap comment
Zbigniew Jędrzejewski-Szmek [Fri, 17 Dec 2021 14:22:18 +0000 (15:22 +0100)]
hostname: use _cleanup_ in one more place
Yu Watanabe [Thu, 23 Dec 2021 12:45:29 +0000 (21:45 +0900)]
sd-journal: fix segfault when match_new() fails
Fixes #21867.
Yu Watanabe [Thu, 23 Dec 2021 12:35:29 +0000 (21:35 +0900)]
sd-journal: free incomplete match on failure
Zbigniew Jędrzejewski-Szmek [Thu, 23 Dec 2021 12:30:26 +0000 (13:30 +0100)]
Merge pull request #21866 from yuwata/update-hwdb-and-news-v250
Update hwdb and news for v250
Jan Janssen [Tue, 21 Dec 2021 16:10:42 +0000 (17:10 +0100)]
boot: Use correct handle to find TextInputEx protocol
LibLocateProtocol will return the protocol for the first device that
supports it. But it may not actually come from the ConIn device that
we want to use here.
This should be the root cause of what was previously considered just
broken firmware. If you ask the wrong device to return some key, of
course it will never provide one.
This changes the way we handle input yet again in light of this new
knowledge and because using the correct TextInputEx with fallback to
ConIn can actually create double input in some cases.
Since we are now confident that we get the right TextInputEx, we can
use that exclusively, only falling back to ConIn if the console input
device does not support the better interface (the spec is pretty clear
that it must support it, though).
Because some firmware is broken, we still need to provide a fallback
to the previously used TextInputEx thats overrides ConIn/ConInEx if
it is functional.
Yu Watanabe [Thu, 23 Dec 2021 10:40:32 +0000 (19:40 +0900)]
NEWS: update contributors list and release date
Yu Watanabe [Thu, 23 Dec 2021 10:36:06 +0000 (19:36 +0900)]
hwdb: update hwdb for v250-final
Generated by `meson compile -C build update-hwdb update-hwdb-autosuspend`.
Ludwig Nussel [Tue, 21 Dec 2021 10:38:49 +0000 (11:38 +0100)]
machined: set TTYPath for container shell
TTYPath is needed for proper utmp registration of the shell to
receive wall messages.
Yu Watanabe [Thu, 23 Dec 2021 07:49:42 +0000 (16:49 +0900)]
man: reindent and rebreak systemd.network
Also fixes the following:
- IPServiceType= is moved to [DHCPv4] section,
- drop an incorrect sentence in RouteMTUBytes= in [DHCPv4] section.
- drop unnecessary word 'unsigned'.
Yu Watanabe [Thu, 23 Dec 2021 08:01:55 +0000 (17:01 +0900)]
meson: fix typo
Luca Boccassi [Wed, 22 Dec 2021 18:31:15 +0000 (18:31 +0000)]
analyze: do not connect to DBUS with --offline
Co-authored-by: Lucas Werkmeister <mail@lucaswerkmeister.de>
Luca Boccassi [Wed, 22 Dec 2021 16:14:53 +0000 (16:14 +0000)]
Merge pull request #21858 from yuwata/fix-test-home
test: workaround for TEST-46-HOMED
Jan Janssen [Wed, 22 Dec 2021 12:35:05 +0000 (13:35 +0100)]
boot: Use -fvisibility=hidden instead of -fwhole-program
It's functionally the same for sd-boot, but using visibilty
is generally preferred over whole-program.
Evgeny Vereshchagin [Tue, 21 Dec 2021 21:05:10 +0000 (21:05 +0000)]
meson: make it compatible with AFL and honggfuzz again
afl-clang and hufzz-clang try to instrument the code and the
underlying compilers don't like it. It should probably be
fixed in both afl and honggfuzz eventually but until then
let's just use "raw" clang to build bpf-skeletons.
It's a follow-up to https://github.com/systemd/systemd/pull/21607
Yu Watanabe [Wed, 22 Dec 2021 07:52:47 +0000 (16:52 +0900)]
test: wait for user inactive
The user may be busy when auto-rebalancing the user's home device.
Workaround for #21589.
---
Dec 01 15:03:15 H systemd-homework[1078]: Provided password unlocks user record.
Dec 01 15:03:15 H systemd-homework[1078]: Image file '/home/test-user.home' already locked, can't use.
Dec 01 15:03:15 H systemd-homed[240]: Worker reported error code EADDRINUSE.
Dec 01 15:03:15 H systemd-homed[240]: Activation failed: Address already in use
---
Yu Watanabe [Wed, 22 Dec 2021 06:43:05 +0000 (15:43 +0900)]
test: remove test-user2
Otherwise, we cannot run the test multiple times.
Yu Watanabe [Wed, 22 Dec 2021 08:11:31 +0000 (17:11 +0900)]
home: update log message
The ratelimit hits even when the all previous attempts are successfull.
Yu Watanabe [Wed, 22 Dec 2021 08:27:12 +0000 (17:27 +0900)]
Merge pull request #21848 from yuwata/errno-name-drop-aliases
errno-name: drop aliases defined for specific arch
Yu Watanabe [Tue, 21 Dec 2021 23:51:41 +0000 (08:51 +0900)]
test: add test for errno-list.[ch]
Yu Watanabe [Tue, 21 Dec 2021 11:34:23 +0000 (20:34 +0900)]
errno-name: drop aliases defined for specific arch
In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and
EREFUSED are defined as aliases of ECANCELED and ECONNREFUSED,
respectively. Let's drop them.
Fixes #21844.
Yu Watanabe [Wed, 22 Dec 2021 06:20:20 +0000 (15:20 +0900)]
Merge pull request #21857 from loongarch64/dev-pr1
LoongArch: dmi, virt detection and testcase
Jan Janssen [Wed, 22 Dec 2021 00:33:10 +0000 (01:33 +0100)]
test,static-destruct: Use retain attribute to prevent linker garbage collection
Fixes: #21847
Xiaotian Wu [Sat, 6 Nov 2021 08:29:45 +0000 (16:29 +0800)]
test: add LoongArch 64bit testcase
Xiaotian Wu [Fri, 5 Nov 2021 01:23:13 +0000 (09:23 +0800)]
virt: add detection for LoongArch 64bit
Xiaotian Wu [Mon, 19 Apr 2021 10:19:17 +0000 (18:19 +0800)]
dmi: add LoongArch 64bit support
Frantisek Sumsal [Tue, 21 Dec 2021 19:45:18 +0000 (20:45 +0100)]
test: tweak TriggerLimitIntervalSec= if we're running w/o KVM as well
since in that case we might be also slow enough to miss the rate-limit
window. However, let's not set the trigger limit unconditionally to
still have coverage for the unaltered path unit (but without sacrificing
CI stability).
See: https://github.com/systemd/systemd/pull/21808#issuecomment-
998927401
Jan Janssen [Tue, 21 Dec 2021 12:44:47 +0000 (13:44 +0100)]
boot: Fix armhf build failure
Fixes: #21842
Yu Watanabe [Tue, 21 Dec 2021 11:10:09 +0000 (20:10 +0900)]
meson: fix cross compiling
Daan De Meyer [Tue, 21 Dec 2021 10:13:10 +0000 (11:13 +0100)]
shared: Remove remaining usages of GPT_ROOT_NATIVE, GPT_USR_NATIVE from dissect-image.c
Follow-up for
49ae9d91f9ba68bf3f1a6928152a5969d329bbc2
Fixes #21843
Scott Worley [Mon, 20 Dec 2021 22:23:02 +0000 (14:23 -0800)]
timedatectl: Uniform commas in NTPMessage output
Frantisek Sumsal [Mon, 20 Dec 2021 18:52:47 +0000 (19:52 +0100)]
test: tweak the path trigger limit a bit when collecting coverage
Basically the same thing as in
e70103e, but for TEST-63. Uses
directives introduced by
47dba9f.
Follow-up to
aaae822.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Dec 2021 13:55:32 +0000 (14:55 +0100)]
NEWS: add missing noun
Yu Watanabe [Mon, 20 Dec 2021 17:30:53 +0000 (02:30 +0900)]
Merge pull request #21839 from yuwata/repart-issue-reproducer-21817
test: add test case for #21817
Daan De Meyer [Mon, 20 Dec 2021 13:55:02 +0000 (14:55 +0100)]
journal: Handle partially read HashItem's when punching holes
Zbigniew Jędrzejewski-Szmek [Mon, 20 Dec 2021 13:16:44 +0000 (14:16 +0100)]
nss-resolve: expose various source-disablement settings as variables
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=
2006761:
> systemd-resolved always (reverse)-resolves the host's IP addresses and FQDN.
> This can be harmful when an application (for instance, a DNS zone manager) is
> installed on the same server instance. That application would expect
> NXDOMAIN to be returned if the current server's IP does not belong in an
> already managed reverse zone.
This allows clients of nss-resolve to use the same config options that are
available through the dbus api and as command-line options to resolvectl.
The man page text is is mostly copied directly from
c6f20515ab600098b5c2871bae2e9ecab3b41555.
Yu Watanabe [Mon, 20 Dec 2021 14:47:52 +0000 (23:47 +0900)]
test: add a test case for issue #21817
Yu Watanabe [Mon, 20 Dec 2021 14:34:17 +0000 (23:34 +0900)]
test: install losetup by default
Preparation for the next commit.
Luca Boccassi [Mon, 20 Dec 2021 13:52:43 +0000 (13:52 +0000)]
NEWS: add note about path unit's TriggerLimitBurst= and TriggerLimitIntervalSec=
Tom Yan [Sun, 19 Dec 2021 17:30:38 +0000 (01:30 +0800)]
repart: use real disk start/end for bar production
Partitions are not always within our aligned scope. Bar printing
involves foreign partitions as well.
Fixes #21817.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Dec 2021 12:24:41 +0000 (13:24 +0100)]
hwdb: update for -rc3
Just a small bunch of additions and a naming updates.
Yu Watanabe [Mon, 20 Dec 2021 11:48:32 +0000 (20:48 +0900)]
journal-remote: use MHD_HTTP_CONTENT_TOO_LARGE as MHD_HTTP_PAYLOAD_TOO_LARGE is deprecated since 0.9.74
Luca Boccassi [Mon, 20 Dec 2021 12:04:41 +0000 (12:04 +0000)]
Merge pull request #21831 from keszybz/man-dnssec-fixlets
Fixlets for DNSSEC-related documentation
Zbigniew Jędrzejewski-Szmek [Mon, 20 Dec 2021 11:20:47 +0000 (12:20 +0100)]
NEWS: add the boot loader stuff
dependabot[bot] [Mon, 20 Dec 2021 09:19:10 +0000 (09:19 +0000)]
build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/
da838ae9595ac94171fa2d4de5a2f117b3e7ac32...
82c141cc518b40d92cc801eee768e7aafc9c2fa2)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Zbigniew Jędrzejewski-Szmek [Sat, 18 Dec 2021 16:03:43 +0000 (17:03 +0100)]
man: correctly document default for DNSSEC= and DNSoverTLS=
https://bugzilla.redhat.com/show_bug.cgi?id=
1926323
Zbigniew Jędrzejewski-Szmek [Tue, 14 Dec 2021 18:39:36 +0000 (19:39 +0100)]
man: describe flags for record resolving
Zbigniew Jędrzejewski-Szmek [Tue, 14 Dec 2021 17:48:25 +0000 (18:48 +0100)]
man: describe $SYSTEMD_NSS_RESOLVE_VALIDATE
This variable has a pretty important effect, but we didn't mention it
anywhere in the docs. It was added in
aee9d18c8d909eb7aca2838e4bce5da018b6a112.
Daan De Meyer [Mon, 20 Dec 2021 09:43:18 +0000 (10:43 +0100)]
Merge pull request #21807 from keszybz/bootcls-no-autodetect
Use KERNEL_INSTALL_MACHINE_ID and KERNEL_INSTALL_LAYOUT with bootctl install
Mike Gilbert [Mon, 20 Dec 2021 00:39:37 +0000 (19:39 -0500)]
basic: add a size check to format timex members properly
As of glibc-2.34, the size of members in struct timex varies depending on
the _TIME_BITS macro.
Fixes: https://github.com/systemd/systemd/issues/21826
Yu Watanabe [Sun, 19 Dec 2021 00:03:16 +0000 (09:03 +0900)]
sd-radv: do not use goto for non-error-handling cases
Follow-up for
059d7b6eae827e73c73633bcc40fe74f3696f3f6.
The comment https://github.com/systemd/systemd/pull/21814#discussion_r771842132
suggests to introduce new helper, but it is used only one place.
Let's not add such, but simply replace the goto with a flag.
Daan De Meyer [Sun, 19 Dec 2021 11:42:11 +0000 (12:42 +0100)]
Merge pull request #21818 from bluca/path_trigger_limit
path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=
Nishal Kulkarni [Fri, 17 Dec 2021 16:36:31 +0000 (22:06 +0530)]
logind: Use new macros
Migrate logind to use the new macros to declare a D-Bus method or signal.
Replaced SD_BUS_METHOD_WITH_NAMES with SD_BUS_METHOD_WITH_ARGS.
Replaced SD_BUS_SIGNAL_WITH_NAMES with SD_BUS_SIGNAL_WITH_ARGS.
Yu Watanabe [Sat, 18 Dec 2021 23:52:08 +0000 (08:52 +0900)]
Merge pull request #21814 from yuwata/network-dhcp-pd-fixes
network: several fixes for DHCP prefix delegation
Luca Boccassi [Sat, 18 Dec 2021 17:52:52 +0000 (17:52 +0000)]
path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=
Given there's now a default for these settings, also allow users to configure
them, matching socket units
Luca Boccassi [Sat, 18 Dec 2021 17:23:53 +0000 (17:23 +0000)]
man: fix typo in systemd.socket.5
Luca Boccassi [Sat, 18 Dec 2021 16:56:05 +0000 (16:56 +0000)]
Merge pull request #21808 from DaanDeMeyer/path-trigger-limit
core: Add trigger limit for path units
Daan De Meyer [Fri, 17 Dec 2021 19:01:31 +0000 (20:01 +0100)]
core: Add trigger limit for path units
When conditions fail on a service unit, a path unit can cause
PID 1 to busy loop as it keeps trying to activate the service unit.
To avoid this from happening, add a trigger limit to the path unit,
identical to the trigger limit we have for socket units.
Initially, let's start with a high limit and not make it configurable.
If needed, we can add properties to configure the rate limit similar
to the ones we have for socket units.
Nishal Kulkarni [Fri, 17 Dec 2021 13:01:55 +0000 (18:31 +0530)]
homed: Use new SD_BUS_METHOD_WITH_ARGS macro
Migrate homed to use the new macros to declare a D-Bus method.
Replaced `SD_BUS_METHOD_WITH_NAMES` with `SD_BUS_METHOD_WITH_ARGS`