Mike Yuan
daa78907af
core: honor FileDescriptorName= too for Accept=yes sockets
...
So far we manually hardcoded $LISTEN_FDNAMES to "varlink" in various
varlink service units we ship, even though FileDescriptorName=varlink
is specified in associated socket units already, because
FileDescriptorName= is currently silently ignored when combined with
Accept=yes. Let's step away from this, which seems saner.
Note that this is technically a compat break, but a mostly negligible
one as there shall be few users setting FileDescriptorName= but
still expecting LISTEN_FDNAMES=connection in the actual executable.
Preparation for #34080
2024-08-26 15:40:15 +02:00
Mike Yuan
2234032c47
core: move check for combination of PAMName= + KillMode= to unit_verify_contexts()
...
While at it, allow "mixed" for all unit types too, i.e.
also apply ebc2259da1d1579347b86fc2ebca9f96334b6f22 to
socket/mount/swap units.
2024-08-26 14:52:25 +02:00
Mike Yuan
bca5505839
core/socket: refuse MaxConnection=0 for Accept=no sockets too
...
This makes no sense at all, and we already refuse such setting
for Accept=yes sockets. I see no reason not to extend this to
Accept=no ones.
2024-08-26 14:52:25 +02:00
Mike Yuan
f220d98945
core/socket: use UNIT_ISSET rather than _DEREF where suitable
2024-08-26 14:52:25 +02:00
Luca Boccassi
2e8e32e6d5
Merge pull request #34117 from yuwata/network-routing-policy-rule
...
network: introduce generic conf parser for [RoutingPolicyRule] section
2024-08-26 12:08:26 +01:00
Yu Watanabe
36f6e87dd3
man: reword about default route for DNS traffic
...
DefaultRoute is a D-Bus property, not a valid setting name in .network
files nor resolved.conf.
Whether a link is the default route or not is configured with
DNSDefaultRoute= setting in .network files.
2024-08-26 11:14:26 +01:00
Yu Watanabe
b1fc342cdd
Merge pull request #34120 from weblate/weblate-systemd-main
...
Translations update from Fedora Weblate
2024-08-25 21:28:53 +09:00
Oğuz Ersen
8eaceb3814
po: Translated using Weblate (Turkish)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main
2024-08-25 13:38:32 +02:00
Sergey A
5bac779ca0
po: Translated using Weblate (Russian)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Sergey A <Ser82-png@yandex.ru>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ru/
Translation: systemd/main
2024-08-25 13:38:32 +02:00
Léane GRASSER
feef5a773f
po: Translated using Weblate (French)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main
2024-08-25 13:38:32 +02:00
Weblate Translation Memory
a68c2f5f76
po: Translated using Weblate (French)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main
2024-08-25 13:38:31 +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
Sam James
dde6f1d745
meson: search for 'bpf-unknown-none' too
...
We currently search for 'bpf-gcc' and 'bpf-none-gcc'. Gentoo's
sys-devel/bpf-toolchain package uses 'bpf-unknown-none-gcc', as does Fedora's
cross-binutils. Search for this name too.
2024-08-25 02:31:59 +09:00
Yu Watanabe
07561ff414
Merge pull request #34115 from weblate/weblate-systemd-main
...
Translations update from Fedora Weblate
2024-08-25 02:14:37 +09:00
Temuri Doghonadze
cf4dbc97ce
po: Translated using Weblate (Georgian)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ka/
Translation: systemd/main
2024-08-24 12:36:53 +02:00
Yuri Chornoivan
3982d2f960
po: Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/uk/
Translation: systemd/main
2024-08-24 12:36:53 +02:00
Piotr Drąg
542165f94d
po: Translated using Weblate (Polish)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pl/
Translation: systemd/main
2024-08-24 12:36:52 +02:00
김인수
dffe2e4e80
po: Translated using Weblate (Korean)
...
Currently translated at 100.0% (253 of 253 strings)
Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ko/
Translation: systemd/main
2024-08-24 12:36:52 +02: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
b0e6c3261c
Merge pull request #34110 from yuwata/network-routing-policy-cleanups
...
network/routing-policy-rule: assorted trivial cleanups
2024-08-24 08:30:48 +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
5dc74c6667
test-network: check one more rule we configure
2024-08-23 23:57:17 +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
Yu Watanabe
407d91d872
labeler: support varlink tag
2024-08-23 16:46:16 +02: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 ec15bb71c2ccd57702325a6e6626053a343f3511 (#32363 ).
2024-08-23 23:10:24 +09:00
Yu Watanabe
a4db21c856
Merge pull request #34108 from mrc0mmand/update-translation-files
...
po: update translation files
2024-08-23 23:07:57 +09:00
Frantisek Sumsal
fe82469a82
po: drop placeholders and re-add SPDX line
...
Follow-up for ecce45cd3f1b4d1fd7f6a6d893f7c12c47c70455.
2024-08-23 15:37:23 +02:00
Frantisek Sumsal
8516c2eeba
po: update translation files
2024-08-23 15:36:10 +02: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
aa976d87889ae22b7347787a1ebd03a31dcc0a9e.
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 0a4ecc54cb9f2d3418b970c51bfadb69c34ae9eb.
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 0a4ecc54cb9f2d3418b970c51bfadb69c34ae9eb
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