Yu Watanabe
374825ec05
resolvconf: disable default route when -p is specified
...
Internally, the switch triggers 'resolvectl default-route INTERFACE no'.
Closes #34112 .
2024-08-27 05:30:06 +09:00
Yu Watanabe
189cb2b15f
resolvconf: clear domains if nothing specified
2024-08-27 05:23:12 +09:00
Yu Watanabe
b3102c05e1
resolvectl: make enum name consistent with the option name
2024-08-27 05:17:52 +09:00
Ronan Pigott
13e15dae9f
resolved: clear the AD bit for bypass packets
...
When the bypass logic is invoked, such as for queries to the stub with
the DO bit set, be certain to clear the AD bit in the reply before
forwarding it if the answer is not known to be authentic.
2024-08-26 16:57:37 +01:00
Daan De Meyer
3fcf2a2a39
repart: Use streq_ptr() in one more place
2024-08-26 16:55:29 +01:00
Allison Karlitskaya
2bdf027de1
man: document "web" session type
...
This has been supported since e9e74f28d7 but never got documented.
Add it to the man pages (plus one comment in a header).
Closes #34127 .
2024-08-26 16:54:59 +01:00
Daan De Meyer
1b275c2acd
crash-handler: Add back notice log message
...
Fixes https://github.com/systemd/systemd/pull/33959#discussion_r1730987738
2024-08-26 16:36:39 +02:00
Yu Watanabe
605377e7b3
network/routing-policy-rule: use config_parse_routing_policy_rule() more
...
Then, we can drop allocation of RoutingPolicyRule object in each conf
parsers.
No functional change, just refactoring.
2024-08-25 06:25:07 +09:00
Yu Watanabe
7f66a94ecf
network/routing-policy-rule: introduce a generic conf-parser for [RoutingPolicyRule] sectin
...
This introduce config_parse_routing_policy_rule(), which wraps existing
conf parsers. With this, we can drop many custom conf parsers for
[RoutingPolicyRule], and can reuse generic conf parsers in conf-parser.[ch].
2024-08-25 06:19:51 +09:00
Yu Watanabe
f7a1e57e1f
conf-parser: move config_parse_ip_protocol() from network/netdev/fou-tunnel.c
...
The function is generic enough. Currently it is used at only one place.
But it will be used at another place.
2024-08-25 06:18:46 +09:00
Yu Watanabe
6db311fdc8
conf-parser: introduce config_parse_uint32_flag()
...
This is not used currently, but will be used later.
2024-08-25 06:18:37 +09:00
Yu Watanabe
f4810fe237
conf-parser: return 1 on success
...
Typically, conf parsers will ignore most errors during parsing strings
and return 0. Let's return 1 on success. Otherwise it is hard to reused
these function in another conf parser.
2024-08-25 06:18:30 +09:00
Yu Watanabe
83c187f585
parse-util: drop unused parse_ip_prefix_length()
2024-08-25 06:18:30 +09:00
Yu Watanabe
74601abcdd
network/routing-policy-rule: merge two conf parsers
...
Both conf parsers takes an integer. Only difference is the maximum
value. Let's merge them, and pass the maximum value through ltype.
2024-08-25 06:17:05 +09:00
Yu Watanabe
78ff6156d1
network/routing-policy-rule: trivial cleanups for conf-parsers
...
No functional change, just refactoring.
2024-08-25 06:16:29 +09:00
Yu Watanabe
e0978eb8cf
network/routing-policy-rule: rename n -> rule
2024-08-25 05:38:05 +09:00
Yu Watanabe
4e03518b16
Merge pull request #34111 from yuwata/log_section_full_errno
...
network: introduce log_section_full_errno() and friends, and use them
2024-08-24 08:31:02 +09:00
Yu Watanabe
4388efca4a
network/routing-policy-rule: use log_section_warning_errno()
2024-08-24 00:05:49 +09:00
Yu Watanabe
75f59c6ea5
conf-parser: introduce log_section_full_errno() and friends
2024-08-24 00:05:49 +09:00
Yu Watanabe
361f70f707
network/routing-policy-rule: read FRA_PROTOCOL afer reading other properties
...
No functional change, just refactoring.
2024-08-23 23:57:17 +09:00
Yu Watanabe
21719d67c1
network/routing-policy-rule: add more assertions
2024-08-23 23:57:17 +09:00
Yu Watanabe
18c9e9acd5
network/routing-policy-rule: sort conf-parser prototypes
2024-08-23 23:57:13 +09:00
Lennart Poettering
a3f17a8f88
varlinkctl: output an expressive error message in case invalid method/interface names are specified
...
Inspired by #34098 → let's make it easier for users to understand and
correct the mistakes they made: let's early refuse invalid
interface/method names.
2024-08-23 23:10:58 +09:00
Yu Watanabe
5537e4417c
updatectl: fix typo and drop space in empty lines
...
Follow-ups for ec15bb71c2 (#32363 ).
2024-08-23 23:10:24 +09:00
Yu Watanabe
d8e298c497
Merge pull request #34102 from yuwata/udev-net_id
...
udev/net_id: trivial cleanups
2024-08-23 18:06:06 +09:00
Yu Watanabe
b9142e2ba7
udevadm/test,test-builtin: enable debugging logs by default again
...
The lines were mistakenly dropped by
aa976d8788 .
2024-08-23 17:34:14 +09:00
Yu Watanabe
02b88d6c62
udev/net_id: update log messages
...
This also downgrades the log level of a message to debug.
2024-08-23 10:21:11 +09:00
Yu Watanabe
8c6f484595
udev/net_id: move naming scheme check
...
We usually do not set r = -1 when a functionality is disabled or not
supported. Even though the error code is not used, let's set a negative
errno in such case.
No functional change, just refactoring.
Follow-up for 0a4ecc54cb .
2024-08-23 10:20:56 +09:00
Yu Watanabe
ab61b8865b
test: use ASSERT_EQ_ID128() and ASSERT_NE_ID128()
2024-08-23 10:18:08 +09:00
Etienne Champetier
448f9f81fd
udev-builtin-net_id: ignore firmware_node/sun == 0
...
Since ID_NET_NAME_SLOT was introduced we ignore slot == 0
0035597a30/src/udev/udev-builtin-net_id.c (L139)
Qemu sets _SUN to PCI_SLOT() for all NICs, so _SUN is not unique.
https://gitlab.com/qemu-project/qemu/-/issues/2530
In my tests with libvirt I can only set 'slot="0x00"' in interface definition,
so all NICs end up with _SUN == 0, and this commit is enough to avoid the issue.
Fixes 0a4ecc54cb
2024-08-23 09:30:49 +09:00
Yu Watanabe
b6b9ddb2b5
Merge pull request #34087 from DaanDeMeyer/nspawn-init-revert
...
Revert "nspawn: Allow specifying custom init program"
2024-08-23 07:42:16 +09:00
Yu Watanabe
6b0561d86a
Merge pull request #34092 from poettering/ambient-caps-fixup
...
minor tweaks to the recent ambient caps rework
2024-08-23 06:41:45 +09:00
Yu Watanabe
a3b571b2cc
Merge pull request #34096 from YHNdnzj/logind-followup-256
...
logind: two follow-ups
2024-08-23 05:38:18 +09:00
Lennart Poettering
167808c6fc
boot: use MAX() where appropriate
2024-08-23 05:26:35 +09:00
Daan De Meyer
615226abd8
Revert "nspawn: Allow specifying custom init program"
...
I don't actually need this anymore since we're going with a
unit based approach for the containers stuff internally so
let's just revert it.
Fixes #34085
This reverts commit ce2291730d .
2024-08-22 22:20:42 +02:00
Daan De Meyer
6a30e66df5
Revert "nspawn: fix settings leak for init parameter"
...
This reverts commit 1e2aa88bb2 .
2024-08-22 22:20:36 +02:00
Mike Yuan
fad3feec12
shared/logs-show: introduce journal_browse_prepare()
...
which combines sigbus_install() and bumping fd limit.
2024-08-22 20:33:22 +02:00
Mike Yuan
d71f138156
basic/sigbus: use FOREACH_ELEMENT where appropriate, assert >= 0 for success
2024-08-22 20:14:25 +02:00
Mike Yuan
26f78eff69
logind-session: downgrade user@.service dep to Wants=
...
This partially reverts 52bcc872b5 .
We explicitly support running without user manager,
hence only user-runtime-dir@.service should be
required.
Fixes #33405
2024-08-22 20:07:47 +02:00
Mike Yuan
1aeea8a60a
logind: DesignatedMaintenanceTime is added in v257 and constant
...
Follow-up for 0e10c3d872
Addresses https://github.com/systemd/systemd/pull/25049#discussion_r1647513862
2024-08-22 20:06:31 +02:00
Lennart Poettering
103018eceb
main: make sure the ambient caps set is valid in case we fail to read it
...
We ignore failures when reading this after all. Hence we better leave
the memory properly initialized.
2024-08-22 18:36:59 +02:00
Lennart Poettering
88a26e1049
main: generate warning when we cannot reset caps
...
Follow-up for: #32937
2024-08-22 18:21:56 +02:00
Lennart Poettering
b004393d70
core: rename original_ambient_set → saved_ambient_set
...
We call similar other fields in main.c (notably: rlimit stuff, env vars) "saved",
rather than "original". Hence stick to that kind of naming here too.
Follow-up for: #32937
2024-08-22 18:21:56 +02:00
Yu Watanabe
80c9c81779
Merge pull request #34051 from rpigott/resolved-demote-fallback
...
resolved: demote only the fallback servers in the global scope
2024-08-22 20:21:33 +09:00
Lennart Poettering
a7a62c18cb
Merge pull request #34076 from yuwata/polkit-message
...
polkit: add missing period in polkit messages
2024-08-22 10:56:53 +02:00
Adrian Vovk
31fc2fb039
sysupdate: Simplify sysupdate_run_simple callsite
...
Allows the caller to optionally pass in a target, instead of making
everyone call target_get_argument at the call site.
2024-08-21 22:33:18 -04:00
Adrian Vovk
b1bcaa0eb1
sysupdated: Verify inputs more rigorously
...
Also return better errors
2024-08-21 22:33:17 -04:00
Adrian Vovk
e0081f18a0
sysupdated: Fixup redundant constant name
...
SD_ stands for systemd, so SD_SYSTEMD_* is SYSTEMD_SYSTEMD_*
2024-08-21 22:33:16 -04:00
Adrian Vovk
5256326261
sysupdated: Fixup minor formatting issues
2024-08-21 22:33:14 -04:00
Yu Watanabe
00ed8c6dfa
Merge pull request #34072 from yuwata/networkd-routing-policy-rule-follow-up
...
network/routing-policy-rule: follow up for recent change
2024-08-22 07:17:10 +09:00