summaryrefslogtreecommitdiffstats
path: root/src/basic/tmpfile-util.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-11-25core/device: ignore ID_PROCESSING udev property on enumerateYu Watanabe1-3/+0
This partially reverts the commit 405be62f05d76f1845f347737b5972158c79dd3e "tree-wide: refuse enumerated device with ID_PROCESSING=1". Otherwise, when systemd-udev-trigger.service is (re)started just before daemon-reexec, which can be easily happen on systemd package update, then udev database files for many devices may have ID_PROCESSING=1 property, thus devices may not be enumerated on daemon-reexec. That causes many units especially mount units being deactivated after daemon-reexec. Fixes #35329.
2024-11-25test: mask tmpfiles.d file shipped by selinux policy package in containersLuca Boccassi1-0/+8
This tmpfiles.d wants to write to sysfs, which is read-only in containers, so systemd-tmpfiles --create fails in TEST-22-TMPFILES when ran in nspawn if the selinux policy package is instealled. Mask it, as it's not our config file, we don't need it in the test.
2024-11-25mkosi: Use shared extra tree between initrd and main imageDaan De Meyer8-5/+2
Let's share more between initrd and main system and use a shared extra tree to achieve that.
2024-11-25mkosi: Make sure mkosi.clangd always runs on the hostDaan De Meyer1-2/+8
If the editor that invokes mkosi.clangd is a flatpak, let's make sure that mkosi is run on the host and not in the flatpak sandbox since it won't be installed there.
2024-11-24test: Lint integration-test-wrapper.pyDaan De Meyer1-4/+4
2024-11-24test: Fix typing errors in integration-test-wrapper.pyDaan De Meyer1-2/+3
2024-11-24test: Format integration-test-wrapper.pyDaan De Meyer1-63/+77
2024-11-24ukify: Fix typing errorDaan De Meyer1-1/+1
2024-11-24Move mypy.ini and ruff.toml to top levelDaan De Meyer2-0/+0
This allows reusing them for integration-test-wrapper.py as well.
2024-11-24integration-test-wrapper: Remove unneeded format stringsDaan De Meyer1-2/+2
2024-11-24mkosi: Add github CLI to toolsDaan De Meyer4-0/+4
2024-11-24mkosi: Add dnf and dnf5 to sanitizer workaround listDaan De Meyer1-0/+2
2024-11-24mkosi: Install clangd everywhereDaan De Meyer3-0/+3
2024-11-24mkosi: Use bash to execute command -vDaan De Meyer1-2/+2
command is only an executable on Fedora due to a downstream patch, on Arch for example it's only a builtin so we have to use bash to execute command -v to get proper results on Arch.
2024-11-24mkosi: Add shellcheck to toolsDaan De Meyer4-0/+4
2024-11-24mkosi: update to latestDaan De Meyer1-1/+1
2024-11-24NEWS: add blurb thanking Nick OwensVito Caputo1-0/+3
Nick's largely responsible for nerd-sniping me into fixing #34516 and did most of the testing.
2024-11-24hwdb: add entry for Chuwi Hi10 X1 (#35331)白一百1-0/+4
https://www.chuwi.com/product/items/chuwi-hi10-x1.html Rotated -90 degrees in the Z axis.
2024-11-23curl-util: do not configure new io event source when the event loop is ↵Yu Watanabe1-0/+4
already dead Similar to c5ecf0949460dd0bf3211db128a385ce6375252e, but for io event source. Fixes #35322.
2024-11-23measure: add 'dtbauto' option in help messageAni Sinha1-12/+13
'dtbauto' command line was missing from the help string. Add it.
2024-11-23po: Translated using Weblate (French)Léane GRASSER1-2/+2
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-23networkd-test.py: fix interface state checkerYu Watanabe1-2/+5
After 259125d53d98541623b69e83000b5543f2352f5e, network interfaces declared by .netdev files are created after systemd-networkd sends READY notification. So, even when networkd is started, the netdevs may not be created yet, and 'ip' command may fail. Let's also check the return code of the command. This also - drops never worked stdout checks, - makes the test fail if the interface is not created within the timeout.
2024-11-23nspawn: improve log message on bad incoming sd_notify() messageLennart Poettering1-1/+1
It's the PID that is wrong, not the UID/GID, be precise.
2024-11-23nspawn: fix userns_mkdir() invocationLennart Poettering1-4/+3
The wrong error code was logged. But actually given that userns_mkdir() is fine with existing dirs, let's drop the redundant conditionalization. Follow-up for: a1fcaa1549d86098d0ba75254b6afc96c786b3b6
2024-11-23shutdown: propagate one more error from sync_making_progress()Yu Watanabe1-4/+2
No functional change, just refactoring, as anyway all errors will be ignored by the caller.
2024-11-23shutdown: close DM block device before issuing DM_DEV_REMOVE ioctlYu Watanabe1-7/+9
Otherwise, the ioctl() may fail with EBUSY. Follow-up for b4b66b26620bfaf5818c95d5cffafd85207694e7. Hopefully fixes #35243.
2024-11-23basic/linux: update kernel headers from v6.12Yu Watanabe10-57/+75
2024-11-23Undeprecate commandline params forcequotacheck, fastboot, and forcefsckZbigniew Jędrzejewski-Szmek2-13/+3
Those are historical names, but there is nothing wrong with them. The files on / (/fastboot, /forcefsck, and /forcequotacheck) are problematic because they require a modification of the root file system. But the commandline params work fine. They have the obvious advantage compared to our "modern" option that they are much easier to type without looking up the spelling in the docs. Undeprecate them to avoid unnecessary churn.
2024-11-22namespace-util: update log messagesYu Watanabe1-4/+4
2024-11-22namespace-util: handle -ENOSPC by userns_acquire() gracefully in ↵Yu Watanabe1-0/+4
is_idmapping_supported() Follow-up for edae62120f13b24d51812d1d7c0ab24acb420305. Fixes #35311.
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