summaryrefslogtreecommitdiffstats
path: root/test/units/TEST-62-RESTRICT-IFACES-2.service (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-09-11store the sysctls set by networkdMatteo Croce5-22/+45
networkd set several sysctl to set the network configuration. Save their value so we can check is other processes change them.
2024-09-11extend sysctl functions to shadow valuesMatteo Croce6-38/+76
Pass to all the sysctl_* functions a hashmap which can be used to optionally save the value written in the sysctl.
2024-09-11resolvectl: rework StatusMode handling into a switch/case statementLennart Poettering1-22/+31
2024-09-11resolvectl: rename shallow destructors …_done()Lennart Poettering1-4/+8
2024-09-11resolved: simplify dns_scope_get_n_dns_servers(), don't count each timeLennart Poettering1-10/+2
2024-09-11resolved: use dns_scope_ifindex() at more placesLennart Poettering2-3/+13
And add a mirroring dns_scope_ifname()
2024-09-11resolved: simplify initialization of DnsScopeLennart Poettering1-4/+3
2024-09-11pcrlock: remove empty components from our listLennart Poettering1-14/+30
This is a rework of e7a93e75219b22424bab95fe45982f5eef21d581: instead of handling components with n_variants being zero at every step of the way, we instead remove it from our list after loading all components, given that such a component simply makes not sense for the rest of our logic.
2024-09-11resolved: use unlinkat() where appropriateLennart Poettering1-8/+2
2024-09-11resolvectl: show DefaultRoute state in per-link DNS staus info tooLennart Poettering1-0/+6
2024-09-11pcrlock: correct --help text regarding recovery pinLennart Poettering1-1/+1
Fixes: #33917
2024-09-11cryptenroll: don't try to get PCR bank if we know the device keyLennart Poettering1-1/+2
If we operate in "offline" mode, i.e. know the device key, then we will not have a TPM2 connection, hence don't try to read the PCR bank to use form it. We don't need it anyway because we are not going to test unseal things. Fixes: #33855
2024-09-11repart: Add MakeSymlinks=Daan De Meyer3-5/+158
Similar to MakeDirectories=, but creates symlinks in the filesystem.
2024-09-11repart: Add missing parameter commentDaan De Meyer1-1/+1
2024-09-11repart: Fix memory corruptionDaan De Meyer1-2/+3
2024-09-11 hwdb.d/60-keyboard.hwdb: add Clevo mic mute quirk for V5x iGPU, NV41PZFilip Lewiński1-2/+4
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2024-09-11udev: allow persistent storage rules for zram devicesKarel Zak2-2/+2
The /dev/zramN devices can be used as regular block devices. They are typically used for swap areas, but it would be beneficial to have LABEL and UUID in the udev database to make it more user-friendly for tools such as lsblk or mount (if used with other filesystems).
2024-09-11resolved: move dnssd parsers to resolved-dnssd.cLennart Poettering4-225/+227
Let's keep only the parsers for the main config in resolved-conf.c
2024-09-11resolved: move resolved_dnssd_gperf_lookup() prototype definition to ↵Lennart Poettering3-2/+2
resolved-dnssd.h
2024-09-11repart: Reuse partition_needs_populate() moreDaan De Meyer1-14/+12
2024-09-11man: fix help text for systemd-creds tool's "list" verbLennart Poettering1-2/+2
I guess this was copy/pasted from sysupdate? Weird though. Fix it. And also reword "cat" help text to make it more precise.
2024-09-11pcrlock: log if we generate an "empty" policyLennart Poettering1-0/+3
Such a policy won't provide any protection, but it's still entirely fine to have it like this in various contexts, for example at OS install time, to allocate the nvindex and reference it in enrollments. However, it does deserve mention, hence log about it at LOG_NOTICE level. This is based on a similar patch by Arnaud Patard <arnaud.patard@collabora.com> proposed at #33663.
2024-09-11man: Correct flag description of systemd-catsinus-x1-1/+4
It is not true that "no string" is written to journal; the binary name is used when run via `systemd-cat command`, or `cat` is used when run via `command | systemd-cat`.
2024-09-11test: fix TEST_SKIP for test cases with subtestsLuca Boccassi1-3/+4
TEST-64-UDEV-STORAGE is invoked with the subtest appended, so TEST_SKIP=TEST-64-UDEV-STORAGE does not work. Fix it by using TEST_SKIP as a partial match. Follow-up for ddc91af4eaa32511f92c83b2c24d9cc0425fd5f5
2024-09-11tpm2-util: fix whitespaceLennart Poettering1-4/+4
2024-09-11Change OS X to macOS in BOOT.md (#34358)Skye Chappelle1-1/+1
2024-09-11stub: add StubDevicePartUUID/StubImageIdentifierLennart Poettering4-1/+28
These variables closely mirror the existing LoaderDevicePartUUID/LoaderImageIdentifier variables. But the Stub… variables indicate the location of the stub/UKI (i.e. of systemd-stub), while the Loader… variables indicate the location of the boot loader (i.e. of systemd-boot). (Except of course, there is no boot loader used, in which case both sets point to the stub/UKI, as a special case). This actually matters, as we support that sd-boot runs off the ESP, while a UKI then runs off XBOOTLDR, i.e. two distinct partitions.
2024-09-11stub: tweak setting of common Loader* EFI varsLennart Poettering1-3/+4
Let's always check if we have data to set *first*, and only then check if an EFI var is already set. Checking for the EFI var is more expensive after all.
2024-09-11man: fix documentation for LoaderDevicePathUUID + LoaderImageIdentifier, in ↵Lennart Poettering1-6/+13
systemd-stub man page too Let's fix the version here too, and also clarify that this is usually not necessarily the ESP.
2024-09-11man: fix LoaderDevicePathUUID + LoaderImageIdentifier descriptionsLennart Poettering1-11/+16
First of all, these were always set, i.e. since sd-boot was merged into our tree, i.e. v220. Let's say so explicitly. Also, let's be more accurate, regarding which partition this referes to: it's usually "the" ESP, but given that you can make firmware boot from arbitrary disks, it could be any other partition too. Hence, be explicit on this. Also, clarify tha sd-stub will set this too, if sd-boot never set it.
2024-09-11bootctl: show new sd-boot/sd-stub feature flagsLennart Poettering1-0/+2
2024-09-11src/sysext: Use versioned names when logging extensions used for merge operationMaanya Goenka1-3/+15
If this is not done, and there are two images, image_1.raw and image_2.raw under an image.raw.v folder, then the log will say "Using extensions image" instead of using "Using extensions image_2.raw" which is the desired behavior for v-picked extensions.
2024-09-10tmpfiles: add separate fragment for stuff we copy from .extra/ into /run/systemdLennart Poettering3-15/+30
Let's move copying out the PCR signature/key into its own tmpfiles snippet. And then let's add support for copying out the profile + os-release information systemd-stub now places in the invoked initrd. That way these four pieces of information are available even after the initrd→host transition.
2024-09-10meson: increase default number of available sections for the stubLennart Poettering2-2/+14
Now that we have multi-profile UKIs people likely want to stick more PE sections into them than before. Hence, bump the number of available PE section slots to 30 (up from 15). Also, make this configurable at build time since some folks probably want even more, and others don't want this at all. (pre-allocating too many shouldn't matter too much btw, I'd advise everyone to overshoot, except maybe on the tiniest of embedded boards)
2024-09-10man: add basic documents for org.freedesktop.timesync1Yu Watanabe3-0/+170
Closes #34352.
2024-09-10timesync: add support of basic command line optionsYu Watanabe1-0/+9
2024-09-10timesync: use BusObjectImplementationYu Watanabe2-2/+11
2024-09-10doc-sync: strip point release from version before uploadingLuca Boccassi1-0/+2
We create subdirectories for each major release, but not for point releases so strip the suffix if it is present
2024-09-10cryptsetup: use the new crypt_token_set_external_path() API if availableLennart Poettering3-36/+23
Let's make use of libcryptsetup's new crypt_token_set_external_path() API in place of the interposition stuff we have been doing before. Let's kill it entirely, given that this was a developer feature only anyway (and guarded by an appropriate ifdef). Fixes: #30098
2024-09-10homectl: when chainloading a shell, prefix "-" rather than overriding first charLennart Poettering1-2/+7
Login shells are supposed to marked via a dash as first char. We follow that logic, but right now we simply overwrite the first char of the shell. That might not be the right choice, given that this turns "zsh" into "-sh", which suggests some bourne shell process. Hence, let's correct things, and instead prefix a dash, which should be safer. Inspired by findings on https://github.com/systemd/systemd/issues/34153#issuecomment-2338104907
2024-09-10hwdb: death to tabs!Lennart Poettering1-15/+15
Some tabs snuck in here, but we don't like tabs in our codebase. Fix them.
2024-09-10udev/ata_id: export read look-ahead valuesTomas Bzatek1-0/+4
Indicates whether the ATA read look-ahead feature is supported and enabled. Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
2024-09-10boot: don't hardcode drop-in paths at multiple placesLennart Poettering1-6/+12
Instead, let's define them once, and pass them through as parameters everywhere.
2024-09-10boot: synthesize a separate menu entry from each .profile sectionLennart Poettering3-93/+201
This iterates through the .profile sections a UKI provides and uses it to generate multiple menu entries from them, one for each .profile section.
2024-09-10test-network: add test more cases for assigned units for each interfaceYu Watanabe1-0/+135
2024-09-10network/state-file: save assigned .netdev file even if the interface is ↵Yu Watanabe1-6/+6
unmanaged Follow-up for 2cf9b1a0eed7bcd85543e19ba6f0d26767fe1163.
2024-09-10network/vxcan: also manage peer interface name by managerYu Watanabe2-0/+66
Then, the Link object for the peer interface can have a reference to the corresponding NetDev object.
2024-09-10network/vxcan: refuse when peer and the main interface names are equivalentYu Watanabe1-0/+4
2024-09-10network/l2tp: manage l2tp session name by ManagerYu Watanabe2-0/+80
Then, Link object for an L2TP session can have reference to the corresponding NetDev object.
2024-09-10network/l2tp: refuse duplicated session nameYu Watanabe1-2/+15