summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sd-mount: allow creating tmpfsLuca Boccassi2023-08-213-33/+107
| | | | | | 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.
* network: ndisc - Allow to use ICMP6 rate limit from received RASusant Sahani2023-08-218-0/+38
|
* sysext: support EXTENSION_RELOAD_MANAGER metadataMathieu Tortuyaux2023-08-214-1/+185
| | | | | | | | | | 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>
* generators: use generator_open_unit_file where appropriateMike Yuan2023-08-194-91/+60
|
* Merge pull request #28871 from ssahani/route-hoplimitLuca Boccassi2023-08-196-0/+75
|\ | | | | network: static route - Allow to configure per route hop liimt
| * CI: network - Add test for route hoplimitSusant Sahani2023-08-182-0/+5
| |
| * network: static route - Allow to configure per route hop liimtSusant Sahani2023-08-184-0/+70
| |
* | update TODOLennart Poettering2023-08-181-0/+8
| |
* | install: Drop install_info_may_process() from unit_file_get_default()Daan De Meyer2023-08-181-3/+0
| | | | | | | | | | | | 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.
* | homed: reuse openssl-util.h cleanup helpersLennart Poettering2023-08-182-6/+3
| |
* | Merge pull request #28884 from poettering/tpm2-pcr6-nameMike Yuan2023-08-182-4/+6
|\ \ | |/ |/| tpm2: give PCR 6 a name
| * tpm2-util: add _const_/_pure_ to a couple of to_string()/from_string() functionsLennart Poettering2023-08-181-4/+4
| |
| * tpm2-util: give PCR 6 a name tooLennart Poettering2023-08-182-0/+2
|/ | | | | | 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.
* core/socket: don't consider service active when in SERVICE_AUTO_RESTART_QUEUEDMike Yuan2023-08-181-4/+8
| | | | | | Follow-up for 09d04ad325473e05e23e6ba8382d7de1dd819bda Fixes #28856
* Merge pull request #28870 from ssahani/rto-min-networkLuca Boccassi2023-08-186-0/+73
|\ | | | | network: Route - allow to set TCP RTO
| * CI: network - Add test for route TCP RTOSusant Sahani2023-08-172-0/+3
| |
| * network: Route - allow to set TCP RTOSusant Sahani2023-08-174-0/+70
| |
* | Merge pull request #28846 from ssahani/custom-duid-dhcp4-26745Luca Boccassi2023-08-188-12/+81
|\ \ | | | | | | network: DHCP6 client- Allow to send manual DUID
| * | CI: network dhcp6 - Add test for custom client identifierSusant Sahani2023-08-172-0/+50
| | |
| * | network: DHCP6 client- Allow to send manual DUIDSusant Sahani2023-08-176-12/+31
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` [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) ```
* | Merge pull request #28697 from 1awesomeJ/new_bsodLuca Boccassi2023-08-185-16/+70
|\ \ | | | | | | systemd-bsod: Add "--continuous" option
| * | Make systemd-bsod not a public binaryOMOJOLA JOSHUA2023-08-171-8/+7
| | |
| * | systemd-bsod: Add "--continuous" optionOMOJOLA JOSHUA2023-08-174-8/+63
| | |
* | | dissect: Set SYSTEMD_DISSECT_DEVICE to path of loop deviceDaan De Meyer2023-08-172-1/+7
| |/ |/| | | | | | | | | 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.
* | test: Check that SELinux policy is available before running SELinux test ↵Johannes Segitz2023-08-171-3/+8
| | | | | | | | | | | | | | | | | | (#28868) * test: Check that SELinux policy is available before running SELinux test --------- Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
* | Merge pull request #28832 from dtardon/list-clearLuca Boccassi2023-08-1722-114/+72
|\ \ | | | | | | Add LIST_CLEAR() helper that empties the list
| * | open-file: add missing assertDavid Tardon2023-08-171-0/+2
| | |
| * | systemctl-show: rename cleanup functionDavid Tardon2023-08-171-2/+2
| | |
| * | tree-wide: use LIST_POP()David Tardon2023-08-179-39/+19
| | |
| * | tree-wide: use LIST_CLEAR()David Tardon2023-08-1711-74/+13
| | |
| * | list: add LIST_CLEAR() helper that empties the listDavid Tardon2023-08-172-0/+37
| | |
* | | Merge pull request #28869 from DaanDeMeyer/repart-trailingDaan De Meyer2023-08-176-28/+44
|\ \ \ | | | | | | | | repart: Make sure we keep trailing slashes in ExcludeFiles=
| * | | repart: Make sure we keep trailing slashes in ExcludeFiles=Daan De Meyer2023-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | We conditionalize behavior based on whether these paths have trailing slashes or not, so let's make sure we keep them intact.
| * | | parse-helpers: Add PATH_KEEP_TRAILING_SLASHDaan De Meyer2023-08-172-4/+5
| | | |
| * | | path-util: Add path_simplify_full()Daan De Meyer2023-08-173-23/+38
| |/ / | | | | | | | | | | | | Sometimes its useful to keep a trailing slash in the path so let's add path_simplify_full() and a flag to do just that.
* | | Merge pull request #28751 from yuwata/mount-revertLuca Boccassi2023-08-173-45/+5
|\ \ \ | | | | | | | | Revert "mount: check right before invoking /bin/umount if it makes sense"
| * | | core/mount: disable timer event source when USEC_INFINITYYu Watanabe2023-08-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting USEC_INFINITY to timer event source should not cause any problem. But, disabling timer event source should be preferable. [zjs: simplify the call to sd_event_source_set_enabled()]
| * | | Revert "mount: check right before invoking /bin/umount if it makes sense"Yu Watanabe2023-08-143-42/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1483892a421ca34bc841a8e8b1f385744c0407ed. As the commit says, it does not solve the race. Moreover, it introduces an regression #28410. Also, checking by `path_is_mount_point()` may trigger automount. From statx(2), > AT_NO_AUTOMOUNT > Don't automount the terminal ("basename") component of pathname > if it is a directory that is an automount point. Similar statements can be found in fstatat(2), which is used in the fallback call for statx() in glibc, and name_to_handle_at(2), which is used as the fallback when statx() failed. So, `path_is_mount_point()` may _do_ trigger automount for parent paths. That should be avoided especially on shutdown. The original issue #25527 that is 'fixed' by the commit is not serious, and should be fixed by making umount command handle path gracefully: https://github.com/util-linux/util-linux/issues/2132 Fixes #28410.
* | | | meson: Use rsync to copy test data directoriesDaan De Meyer2023-08-171-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | install_subdir() does not copy symlinks but copies the file they point to. We also get a very ugly warning in the meson install output: """ Warning: trying to copy a symlink that points to a file. This will copy the file, but this will be changed in a future version of Meson to copy the symlink as is. Please update your build definitions so that it will not break when the change happens. """ Let's fix both problems at once by using rsync which does the right thing. Verified by running systemd-dissect --mtree on both the install output before and after and all the symlinks are now correctly preserved.
* | | | bus-polkit: don't propagate error from polkitDavid Tardon2023-08-171-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An error reply from polkit is a valid case and should not be propagated as failure of async_polkit_callback(). It should only be saved here. It'll be returned by bus_verify_polkit_async() later, when it's called for the same method again. Follow-up for #26365.
* | | | systemd-stub: ignore EFI shell unauthenticated kernel command line if we are ↵Emanuele Giuseppe Esposito2023-08-171-2/+3
| |/ / |/| | | | | | | | in confidential vms
* | | Merge pull request #28862 from DaanDeMeyer/swapLuca Boccassi2023-08-163-5/+21
|\ \ \ | | | | | | | | mkosi: Add a swap partition
| * | | mkosi: Add a swap partitionDaan De Meyer2023-08-161-0/+6
| | | | | | | | | | | | | | | | | | | | systemd-oomd keeps complaining about the lack of swap partition, so let's add one.
| * | | repart: Default to swap format for swap partitionsDaan De Meyer2023-08-162-5/+15
| | | |
* | | | documentation: add man page data for confextMaanya Goenka2023-08-161-4/+8
| | | |
* | | | Merge pull request #28758 from keszybz/negative-errno-macroLuca Boccassi2023-08-1657-619/+615
|\ \ \ \ | | | | | | | | | | Use macros to reduce indentation in errno error handling
| * | | | manager: fix error handling after failure to set up childZbigniew Jędrzejewski-Szmek2023-08-161-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exec_child() is supposed to set *exit_status when returning failure. Unfortunately, we didn't do that in two cases. The result would be: - a bogus error message "Failed at step SUCCESS spawning foo: …", - a bogus success exit status. Bugs introduced in 390902012c5177b6b01bc634b2e9c704073d9e7d and ad21e542b20f0fb292d1958d3a759bf3403522c2. The code is reworked to add some asserts and not set exit_status in the caller so that it's clearer (also to the compiler) that it needs to be set.
| * | | | shared/barrier: remove parensZbigniew Jędrzejewski-Szmek2023-08-161-2/+2
| | | | |
| * | | | nspawn,shared: make ERRNO_IS_SECCOMP_FATAL an inline func with _NEG_ variantZbigniew Jędrzejewski-Szmek2023-08-164-108/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rebreak comments and lines. No functional change.
| * | | | shared/kbd-util: simplify error handling in keymap_exists()Zbigniew Jędrzejewski-Szmek2023-08-161-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Once we know the return value, we can just return it, no need to exit the loop.