summaryrefslogtreecommitdiffstats
path: root/src/basic/memstream-util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-11-23namespace-util: add generic namespace_is_init() callLennart Poettering4-8/+60
2024-11-22link README.logs from tmpfiles.d/legacy.conf only if availableChristian Hesse1-1/+2
The file README.logs is installed only if SysVInit support is enabled. Thus the link should depend on it as well.
2024-11-22varlink: apparently on old kernels SO_PEERPIDFD returns EINVALLennart Poettering1-1/+1
2024-11-22hwdb: add support for PineTab2 to 60-sensor.hwdb (#35304)Marco Tomaschett1-0/+9
Add accelerometer support for PineTab2
2024-11-22tpm2-util: fix parameter nameAntonio Alvarez Feijoo1-1/+1
2024-11-22userdbctl: respect selected disposition also when showing gid boundariesLennart Poettering1-0/+3
Follow-up for: ad5de3222f7
2024-11-22userdbctl: fix countingLennart Poettering1-4/+8
Fixes: #35294
2024-11-22userbdctl: show 'mapped' user range only inside of usernsLennart Poettering1-0/+14
Outside of userns the concept makes no sense, there cannot be users mapped from further outside.
2024-11-22cryptenroll: it's called PKCS#11, not PKCS11Lennart Poettering1-1/+1
In the --help text we really should use the official spelling, just like in the man page.
2024-11-22man: add enrollment type sections to cryptenroll man pageLennart Poettering1-23/+64
We have the same sections in the --help text, hence we even more so should have them in the man page.
2024-11-22bash-completion: add --list-devices to systemd-cryptenrollAntonio Alvarez Feijoo1-9/+2
And also use it to list suitable block devices.
2024-11-22core/service: service_add_fd_store() consumes passed fdYu Watanabe1-3/+1
Without this change, the fd is closed twice on failure. Fixes a bug introduced by dff9808a628c31b7ecb1f1aba8fdc3be06ce8372. Fixes #35288.
2024-11-21hwdb: Add quirk for Logitech MX Keys for MacTobias Zimmermann1-0/+5
The KEY_102ND and KEY_GRAVE keys are switched on the Logitech MX Keys for Mac, so switch them back
2024-11-21po: Translated using Weblate (Ukrainian)Yuri Chornoivan1-5/+5
Currently translated at 100.0% (257 of 257 strings) Co-authored-by: Yuri Chornoivan <yurchor@ukr.net> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/uk/ Translation: systemd/main
2024-11-21tmpfiles: add period at end of the sentenceZbigniew Jędrzejewski-Szmek19-19/+19
The license that is immediately above is properly punctuated and it looks sloppy when our line below isn't.
2024-11-21tmpfiles: narrow scope of HAVE_SYSV_COMPAT condition for legacy.confZbigniew Jędrzejewski-Szmek2-5/+6
That file contains a bunch of entries of which only some are related to SysV. The rest are just "traditional APIs" that need to stay. In particular, /var/lock a.k.a. /run/lock is used by many programs (LVM, iscsi, alsactl). Similarly, the README about /var/log is something that should stay as long as we have people migrating from older systems or using the copiuos documentation that mentions /var/log/messages.txt on the Internet. /var/lock/subsys is only used by sysvinit, and our code to support /forcefsck, /fastboot, and /forcequotacheck is conditionalized on HAVE_SYSV_COMPAT, so conditionalize those here on HAVE_SYSV_COMPAT too.
2024-11-21cgroup-util: fix memory leak on errorLuca Boccassi1-2/+2
CID#1565824 Follow-up for f6793bbcf0e3f0a6daa77add96183b88d5ec2117
2024-11-20po: Translated using Weblate (Slovenian)Martin Srebotnjak1-10/+5
Currently translated at 100.0% (257 of 257 strings) Co-authored-by: Martin Srebotnjak <miles@filmsi.net> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sl/ Translation: systemd/main
2024-11-20po: Translated using Weblate (Finnish)Jiri Grönroos1-11/+7
Currently translated at 100.0% (257 of 257 strings) Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fi/ Translation: systemd/main
2024-11-20po: Translated using Weblate (Ukrainian)Dmytro Markevych1-12/+8
Currently translated at 100.0% (257 of 257 strings) Co-authored-by: Dmytro Markevych <hotr1pak@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/uk/ Translation: systemd/main
2024-11-20po: Translated using Weblate (French)Léane GRASSER1-3/+3
Currently translated at 100.0% (257 of 257 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-11-20test-network: actually check metric and preferenceYu Watanabe1-2/+2
Otherwise, nexthop ID may contain e.g. 300, then === AssertionError: '300' unexpectedly found in 'default nhid 3860882700 via fe80::1034:56ff:fe78:9a99 proto ra metric 512 expires 1798sec pref high\n default nhid 2639230080 via fe80::1034:56ff:fe78:9a98 proto ra metric 2048 expires 1798sec pref low' ===
2024-11-20network: update state files before replying bus methodYu Watanabe1-0/+8
Follow-up for 2b07a3211ba8b1b81d6cebb9650d5cb24554b08a.
2024-11-20killall: gracefully handle processes inserted into containers via nsenter -aLennart Poettering2-2/+10
"nsenter -a" doesn't migrate the specified process into the target cgroup (it really should). Thus the cgroup will remain in a cgroup that is (due to cgroup ns) outside our visibility. The kernel will report the cgroup path of such cgroups as starting with "/../". Detect that and print a reasonably error message instead of trying to resolve that.
2024-11-20process-util: refuse to operate on remote PidRefMike Yuan1-1/+28
Follow-up for 7e3e540b88db5546d0c63103619d96b033871b7b
2024-11-20cryptenroll: fix typoAntonio Alvarez Feijoo1-1/+1
2024-11-20test-audit-util: Migrate to new assertion macrosDaan De Meyer1-6/+8
2024-11-20units: add initrd directory to list of conditions for systemd-confextLuca Boccassi1-0/+1
systemd-sysext has the same check, but it was forgotten for confexts. Needed to activate confexts from the ESP in the initrd.
2024-11-19hwdb: add new Cube Mix Plus (i18D) rotation info Xuanjun Wen1-1/+2
Added rotation information for the new version of Cube Mix Plus (i18D).
2024-11-19sd-varlink: mark sd_varlink_server_{ref,unref} as _public_ (#35241)Mike Yuan2-1/+3
Co-authored-by: Thorsten Kukuk <kukuk@suse.com>
2024-11-19man/kernel-command-line: fix typoAntonio Alvarez Feijoo1-1/+1
2024-11-19cryptenroll: show better log message if slot to wipe does not existAntonio Alvarez Feijoo1-1/+4
``` $ systemd-cryptenroll /dev/vda3 SLOT TYPE 0 password $ systemd-cryptenroll --wipe-slot 1 /dev/vda3 Failed to wipe slot 1, continuing: No such file or directory ```
2024-11-19update TODOLennart Poettering1-0/+4
2024-11-19po: Translated using Weblate (Hebrew)Yaron Shahrabani1-45/+29
Currently translated at 100.0% (257 of 257 strings) Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/he/ Translation: systemd/main
2024-11-19ssh-generator: silence "Binding to socket" messagesMantas Mikulėnas1-8/+8
2024-11-19user-record: distinguish explicit and implicit empty modifiable lists caseLennart Poettering1-6/+13
We now distinguish two cases: where the list of self modifiable fields is explicitly set to empty, and where the default is empty. Let's display them differently in the output. When set explicitly to empty let's mention the admin, otherwise just say "none".
2024-11-19user-record: only synthesize default list of self-modifiable fields for ↵Lennart Poettering2-4/+17
*regular* users For system users we should lock things down, hence generate an empty list. This is mostly a safety precaution, but also hides really confusing output of "userdbctl user" for an system user. Follow-up for: a192250eda1e5cc1f8fc799cf9b85d37e7fa0519
2024-11-19vmspawn: enable memory pressure logic for vmspawnLennart Poettering1-0/+4
2024-11-19systemctl: grey out tasks limit the same way we grey out the fd store limit ↵Lennart Poettering1-1/+1
in the output "systemctl status systemd-logind" otherwise looks a bit weird, since the tasks and the fdstore lines are so close to each other but formatted quite differently when it comes to coloring.
2024-11-19style: Fix formattingFederico Giovanardi1-2/+2
2024-11-19core/exec-invoke: suppress placeholder home only in build_environment()Mike Yuan2-8/+28
Currently, get_fixed_user() employs USER_CREDS_SUPPRESS_PLACEHOLDER, meaning home path is set to NULL if it's empty or root. However, the path is also used for applying WorkingDirectory=~, and we'd spuriously use the invoking user's home as fallback even if User= is changed in that case. Let's instead delegate such suppression to build_environment(), so that home is proper initialized for usage at other steps. shell doesn't actually suffer from such problem, but it's changed too for consistency. Alternative to #34789
2024-11-19core/exec-invoke: minor cleanup for apply_working_directory() error handlingMike Yuan1-15/+7
Assign exit_status at the same site where error log is emitted, for readability.
2024-11-19basic/user-util: split out placeholder suppression from USER_CREDS_CLEAN ↵Mike Yuan4-15/+16
into its own flag No functional change, preparation for later commits.
2024-11-19basic/user-util: introduce shell_is_placeholder() helperMike Yuan2-7/+13
2024-11-19mkosi: Enable clangd execution for all distributionsDaan De Meyer2-4/+7
2024-11-18update TODOLennart Poettering1-0/+10
2024-11-18test-network: add test case for IPv6 Core Conformance test v6LC.2.2.23Yu Watanabe1-0/+18
2024-11-18test-network: split out check_router_preference() from test_router_preference()Yu Watanabe3-90/+32
This also drop high2.network and low2.network, and edit high.network and low.network during the test.
2024-11-18network/ndisc: first process options with zero lifetimeYu Watanabe1-20/+50
Fixes IPv6 Core Conformance test failures reported at #33468. https://www.ipv6ready.org/docs/Core_Conformance.pdf Test v6LC.2.2.23 h and j: Processing Router Advertisement with Route Information Option (Host Only) When a RA contains route option with ::/0 prefix, then previously that may contradict with the default route requested with the RA header. If the route option has zero lifetime, the existing default route should be removed, and a new route based on the RA header should be configured. If the route option has non-zero lifetime, the RA header should be ignored. So, we first need to process options with zero lifetime (not only route option, as the similar reasons), then configure the default route based on the RA, finally process options with non-zero lifetime.
2024-11-18network/ndisc: sd_ndisc_router_route_get_preference() does not return ↵Yu Watanabe1-4/+0
-EOPNOTSUPP anymore