Susant Sahani
f44eebd1ba
network: ndisc - Also fill router preference
2023-08-22 18:41:09 +05:30
Frantisek Sumsal
465ba1236c
sysext: fix a memory leak
...
Introduced by 41712cd1c0 .
=================================================================
==2194==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 359856 byte(s) in 459 object(s) allocated from:
#0 0x7ffff7511df4 (/usr/lib64/clang/16/lib/linux/libclang_rt.asan-powerpc64le.so+0x191df4) (BuildId: 47e1dd371a2b8525b6cb737760a4dc535f30ea10)
#1 0x7ffff6bb5fb0 in message_from_header /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/bus-message.c:372:13
#2 0x7ffff6bb5fb0 in bus_message_from_malloc /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/bus-message.c:421:13
#3 0x7ffff6c23f54 in bus_socket_make_message /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/bus-socket.c:1222:13
#4 0x7ffff6c22d10 in bus_socket_read_message /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/bus-socket.c
#5 0x7ffff6c4d414 in bus_read_message /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/sd-bus.c:2082:16
#6 0x7ffff6c4d414 in sd_bus_call /systemd-meson-build/../root/systemd/src/libsystemd/sd-bus/sd-bus.c:2480:21
#7 0x7ffff6682904 in bus_service_manager_reload /systemd-meson-build/../root/systemd/src/shared/bus-unit-util.c:2823:13
#8 0x1000d570 in daemon_reload /systemd-meson-build/../root/systemd/src/sysext/sysext.c:233:16
#9 0x100090f8 in merge /systemd-meson-build/../root/systemd/src/sysext/sysext.c:895:21
#10 0x10006ff4 in verb_merge /systemd-meson-build/../root/systemd/src/sysext/sysext.c:964:16
#11 0x7ffff69ae894 in dispatch_verb /systemd-meson-build/../root/systemd/src/shared/verbs.c:103:24
#12 0x10004570 in sysext_main /systemd-meson-build/../root/systemd/src/sysext/sysext.c:1194:16
#13 0x10004570 in run /systemd-meson-build/../root/systemd/src/sysext/sysext.c:1214:16
#14 0x10004570 in main /systemd-meson-build/../root/systemd/src/sysext/sysext.c:1217:1
#15 0x7ffff5f5a968 in generic_start_main.isra.0 (/lib64/libc.so.6+0x2a968) (BuildId: c218e04818632a05c23f6fdcca16f93e95ea7de2)
#16 0x7ffff5f5ab00 in __libc_start_main (/lib64/libc.so.6+0x2ab00) (BuildId: c218e04818632a05c23f6fdcca16f93e95ea7de2)
Indirect leak of 124984 byte(s) in 459 object(s) allocated from:
...
#11 0x7ffff5f5a968 in generic_start_main.isra.0 (/lib64/libc.so.6+0x2a968) (BuildId: c218e04818632a05c23f6fdcca16f93e95ea7de2)
#12 0x7ffff5f5ab00 in __libc_start_main (/lib64/libc.so.6+0x2ab00) (BuildId: c218e04818632a05c23f6fdcca16f93e95ea7de2)
SUMMARY: AddressSanitizer: 493766 byte(s) leaked in 1383 allocation(s).
2023-08-22 15:04:49 +02:00
Yu Watanabe
9475e23c90
network: several follow-ups for TCP-RTO setting
...
- rename TCPRetransmissionTimeOutSec= -> TCPRetransmissionTimeoutSec,
- refuse infinity,
- fix the input value verifier (USEC_PER_SEC -> USEC_PER_MSEC),
- use DIV_ROUND_UP() when assigning the value.
Follow-ups for 1412d4a4fe .
Closes #28898 .
2023-08-22 15:02:59 +02:00
Zbigniew Jędrzejewski-Szmek
b0edf3a303
Merge pull request #28914 from poettering/boot-poweroff
...
sd-boot: add quick hotkeys for poweroff/reboot
2023-08-22 14:55:24 +02:00
Lennart Poettering
41beeb3e30
core: simplify get_process_umask() invocation
2023-08-22 12:33:17 +02:00
Yu Watanabe
08801318e8
network: fix log message and man page for HopLimit=
...
Follow-up for 88c0642358 .
Closes #28899 .
2023-08-22 12:10:39 +02:00
Lennart Poettering
321261c7d9
update TODO
2023-08-22 11:29:36 +02:00
Lennart Poettering
1b9af63f55
boot: add control-less alias for Ctrl-l hotkey
...
I couldn't get ctrl work properly over serial line/qemu. Hence, let's
add an alias for Ctrl-l: a simple Shift-l (i.e. uppercase L)
(Note that lowercase L will result in selection of the first Linux
entry, hence we stay away from that)
2023-08-22 11:29:36 +02:00
Lennart Poettering
f6531b11d2
boot: add hotkeys for rebooting/powering off the system from the boot menu
...
In a an environment with a serial console it's just too useful to
directly reboot/power off the machine without any further tooling.
2023-08-22 11:29:36 +02:00
Lennart Poettering
90dab2b01e
boot: modernize mangle_stub_cmdline() a bit + drop leading whitespace
...
Let's modernize the function a bit, and make it return the string passed
in, as we usually do.
Most importanly though: also drop leading whitespace, not just trailing
whitespace.
2023-08-22 10:53:25 +02:00
Lennart Poettering
c4d281fa1a
boot: explain why we refuse to edit kernel cmdline when we do so
2023-08-22 10:46:34 +02:00
Lennart Poettering
b91497f8cf
Merge pull request #28903 from poettering/verbs-levenshtein
...
verbs: give helpful hint when people mistype command verbs on the cmdline of our tools
2023-08-22 10:15:00 +02:00
Lennart Poettering
ea803614fc
verbs: make a helpful suggestion when user types unrecognized verb
...
I have been mistyping commands too often myself, and I think the tools
could simply be more helpful, by suggesting to me what I probably wanted
to write. Copy/Paste FTW, after all!
2023-08-21 23:19:49 +02:00
Lennart Poettering
7ef5b0a4d8
string-util: add a function to determine levenshtein distance of two strings
2023-08-21 23:19:49 +02:00
Lennart Poettering
b022ea0476
efi: add comment clarifying we should not use EV_IPL anymore
2023-08-21 23:18:28 +02:00
Lennart Poettering
1126841553
man: mention two more things logind does
...
Prompted by: #28902
2023-08-21 23:15:57 +02:00
Lennart Poettering
afa303254d
Merge pull request #28907 from poettering/have-seccomp-tweaks
...
reduce HAVE_SECCOMP ifdeffery
2023-08-21 23:15:39 +02:00
Lennart Poettering
cf1ab844a9
tree-wide: drop "static inline" use in .c files
...
"static inline" makes sense in .h files. But in .c files it's useless
decoration, the compiler should just make its own decisions there, and
it can do that.
hence, replace all remaining uses of "static line" by a simple" static"
in all .c files (but keep them in .h files, where they make sense)
2023-08-21 23:15:12 +02:00
Frantisek Sumsal
252adedaaf
Merge pull request #28911 from weblate/weblate-systemd-master
...
Translations update from Fedora Weblate
2023-08-21 17:57:40 +00:00
Jan Kuparinen
e86ecf931d
po: Translated using Weblate (Finnish)
...
Currently translated at 100.0% (227 of 227 strings)
Co-authored-by: Jan Kuparinen <copper_fin@hotmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fi/
Translation: systemd/main
2023-08-21 19:21:12 +02:00
Maarten
74fb028878
po: Translated using Weblate (Dutch)
...
Currently translated at 100.0% (227 of 227 strings)
Co-authored-by: Maarten <maarten@posteo.de >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/nl/
Translation: systemd/main
2023-08-21 19:21:12 +02:00
Lennart Poettering
e2fc0a7222
tree-wide: don't ifdef seccomp-util.h, drop seccomp.h inclusion everywhere
...
seccomp-util.h doesn't need ifdeffing, hence don't. It has worked since
quite a while with HAVE_SECCOMP is off, hence use it everywhere.
Also drop explicit seccomp.h inclusion everywhere (which needs
HAVE_SECCOMP ifdeffery everywhere). seccomp-util.h includes it anyway,
automatically, which we can just rely on, and it deals with HAVE_SECCOMP
at one central place.
2023-08-21 18:50:29 +02:00
Lennart Poettering
65a57927ad
seccomp: move seccomp_parse_errno_or_action() into common definitions
...
Let's remove some HAVE_SECCOMP ifdeffery by simply defining the funcion
in question (seccomp_parse_errno_or_action() + related calls) into
common code that is also compiled if HAVE_SECCOMP is off.
This is generally the better approach anyway, since we want as much as
possible and easily feasible parsers work even if the code implementing
them is disabled. THis is easy to achieve here, hence do.
2023-08-21 18:50:29 +02:00
Luca Boccassi
2322c6c735
sd-mount: allow creating tmpfs
...
Mount units can do it, but the command line tool cannot, as it needs a
valid 'what'. If --tmpfs/-T if passed, parse the argument as 'where'
and send a literal 'tmpfs' as the 'what' if not specified.
2023-08-21 11:45:15 +02:00
Susant Sahani
9175002864
network: ndisc - Allow to use ICMP6 rate limit from received RA
2023-08-21 11:14:42 +02:00
Mathieu Tortuyaux
41712cd1c0
sysext: support EXTENSION_RELOAD_MANAGER metadata
...
This metadata (EXTENSION_RELOAD_MANAGER) can be set to "1" to reload the manager
when merging/refreshing/unmerging a system extension image. This can be useful in case the sysext
image provides systemd units that need to be loaded.
With `--no-reload`, one can deactivate the EXTENSION_RELOAD_MANAGER metadata interpretation.
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com >
2023-08-21 11:13:54 +02:00
Mike Yuan
121ce4a687
generators: use generator_open_unit_file where appropriate
2023-08-19 01:15:01 +01:00
Luca Boccassi
2c29591c7e
Merge pull request #28871 from ssahani/route-hoplimit
...
network: static route - Allow to configure per route hop liimt
2023-08-19 01:12:01 +01:00
Lennart Poettering
5227b72db3
update TODO
2023-08-18 19:24:01 +02:00
Daan De Meyer
3c1c52f2c9
install: Drop install_info_may_process() from unit_file_get_default()
...
This currently makes unit_file_get_default() fail if the default
target is transient which shouldn't make us fail to get the default
unit.
2023-08-18 20:48:47 +08:00
Lennart Poettering
8fc798a9ad
homed: reuse openssl-util.h cleanup helpers
2023-08-18 13:44:19 +01:00
Mike Yuan
d7686126ea
Merge pull request #28884 from poettering/tpm2-pcr6-name
...
tpm2: give PCR 6 a name
2023-08-18 20:19:51 +08:00
Susant Sahani
288f58c0b4
CI: network - Add test for route hoplimit
2023-08-18 15:52:14 +05:30
Lennart Poettering
f51ed26b38
tpm2-util: add _const_/_pure_ to a couple of to_string()/from_string() functions
2023-08-18 11:54:25 +02:00
Lennart Poettering
b060b9a492
tpm2-util: give PCR 6 a name too
...
The specs call this TCG PC Client Platform Firmware Profile
Specification says this PCR is owned by the Host Platform Manufacturer,
at various places. Hence let's give it that name.
2023-08-18 11:54:19 +02:00
Susant Sahani
88c0642358
network: static route - Allow to configure per route hop liimt
2023-08-18 14:46:37 +05:30
Mike Yuan
c068650fcf
core/socket: don't consider service active when in SERVICE_AUTO_RESTART_QUEUED
...
Follow-up for 09d04ad325
Fixes #28856
2023-08-18 09:24:27 +01:00
Luca Boccassi
f9e653cfb7
Merge pull request #28870 from ssahani/rto-min-network
...
network: Route - allow to set TCP RTO
2023-08-18 09:23:45 +01:00
Luca Boccassi
eb2f0b2b3a
Merge pull request #28846 from ssahani/custom-duid-dhcp4-26745
...
network: DHCP6 client- Allow to send manual DUID
2023-08-18 09:23:30 +01:00
Luca Boccassi
b24d10e35a
Merge pull request #28697 from 1awesomeJ/new_bsod
...
systemd-bsod: Add "--continuous" option
2023-08-18 00:20:04 +01:00
OMOJOLA JOSHUA
5ae58e8fca
Make systemd-bsod not a public binary
2023-08-17 22:07:16 +01:00
Daan De Meyer
47838b55c8
dissect: Set SYSTEMD_DISSECT_DEVICE to path of loop device
...
For some use cases we want to operate on the loop device that
systemd-dissect has attached the loop device to, so let's make that
easily accessible.
2023-08-17 20:36:51 +02:00
Susant Sahani
543d2a4d45
CI: network dhcp6 - Add test for custom client identifier
2023-08-17 23:52:33 +05:30
Susant Sahani
89e73ce86f
network: DHCP6 client- Allow to send manual DUID
...
```
[DHCPv6]
DUIDType=custom
DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00
```
```
Client Identifier
Option: Client Identifier (1)
Length: 12
DUID: 0000ab11f92ac27729f95c00
DUID Type: Unknown (0)
```
2023-08-17 23:52:22 +05:30
Susant Sahani
1791956e9c
CI: network - Add test for route TCP RTO
2023-08-17 23:49:32 +05:30
Susant Sahani
1412d4a4fe
network: Route - allow to set TCP RTO
2023-08-17 23:47:13 +05:30
Johannes Segitz and Frantisek Sumsal
5f22d16bb3
test: Check that SELinux policy is available before running SELinux test ( #28868 )
...
* test: Check that SELinux policy is available before running SELinux test
---------
Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz >
2023-08-17 18:04:53 +01:00
Luca Boccassi
f1a621b09b
Merge pull request #28832 from dtardon/list-clear
...
Add LIST_CLEAR() helper that empties the list
2023-08-17 16:27:43 +01:00
Daan De Meyer
be7d808c1c
Merge pull request #28869 from DaanDeMeyer/repart-trailing
...
repart: Make sure we keep trailing slashes in ExcludeFiles=
2023-08-17 14:55:03 +02:00
OMOJOLA JOSHUA
77d0917ea3
systemd-bsod: Add "--continuous" option
2023-08-17 13:13:54 +01:00