summaryrefslogtreecommitdiffstats
path: root/src/shared/rm-rf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-19Add support for systemd-fido2 libcryptsetup plugin.Ondrej Kozina9-21/+582
Add support for systemd-fido2 based LUKS2 device activation via libcryptsetup plugin. This make the feature (fido2 sealed LUKS2 keyslot passphrase) usable from both systemd utilities and cryptsetup cli. The feature is configured via -Dlibcryptsetup-plugins combo with default value set to 'auto'. It get's enabled automatically when cryptsetup 2.4.0 or later is installed in build system.
2021-08-19po: Translated using Weblate (Sinhala)Hela Basa1-4/+7
Currently translated at 0.5% (1 of 189 strings) Co-authored-by: Hela Basa <r45xveza@pm.me> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/si/ Translation: systemd/main
2021-08-19creds-util: fix possible divide-by-zeroYu Watanabe1-2/+2
input_size may be zero. Fixes #20469.
2021-08-18sd-boot: Use UEFI provided CRC32Jan Janssen4-170/+10
2021-08-18udev: make RxChannels= or friends also accept "max"Yu Watanabe4-181/+90
Follow-up for 406041b7de767316674eb6a2f98ad466577ce8a4. Also, this makes - the settings accept an empty string, - if the specified value is too large, also use the advertised maximum value. - mention the range of the value in the man page.
2021-08-18tree-wide: fix typoYu Watanabe6-10/+10
2021-08-18docs: portable services are no longer in previewLuca Boccassi1-11/+7
Reword the intro to the document, as portable services are a stable interface and no longer a preview.
2021-08-18fstab-generator: Respect nofail when orderingVladimir Panteleev1-1/+2
2021-08-18Fix typo in dbus property name ("OnSuccesJobMode")Vladimir Panteleev2-4/+5
2021-08-18udev: Support "max" string for BufferSize options (#20458)Daan De Meyer3-22/+40
"max" indicates the hardware advertised maximum queue buffer size should be used. The max sizes can be checked by running `ethtool -g <dev>` (Preset maximums). Since the buffer sizes can't be set to 0 by users, internally we use 0 to indicate that the hardware advertised maximum should be used.
2021-08-18network: do not assume the highest priority when Priority= is unspecifiedYu Watanabe4-17/+110
Previously, when Priority= is unspecified, networkd configured the rule with the highest (=0) priority. This commit makes networkd distinguish the case the setting is unspecified and one explicitly specified as Priority=0. Note. 1) If the priority is unspecified on configure, then kernel dynamically picks a priority for the rule. 2) The new behavior is consistent with 'ip rule' command. Replaces #15606.
2021-08-17udevadm: introduce -a|--action option for test-builtin commandYu Watanabe4-8/+44
As net_setup_link builtin requires that a device action is set for the sd_device object.
2021-08-17man: network: mention that RouteMetric= in [DHCPv4] is also applied to the ↵Tom Yan1-2/+3
prefix route
2021-08-17man: network: mention that Promiscuous= can be used to set nopromisc for ↵Tom Yan1-0/+2
passthru MACV{LAN,TAP}
2021-08-17shell-completion: add missing uevent actions for udevadmYu Watanabe1-2/+2
2021-08-17udevadm: introduce parse_device_action() helper functionYu Watanabe4-23/+31
2021-08-17udevadm: introduce find_device_with_action() helper functionYu Watanabe3-13/+26
2021-08-17docs: document layered images in PORTABLE_SERVICES.mdLuca Boccassi1-9/+44
2021-08-17man: further document extension-releaseLuca Boccassi3-2/+43
2021-08-17extension-release: search for other files if expected name not foundLuca Boccassi5-33/+138
In some cases image names are unpredictable - some orchestrators/deployment tools like to mangle names to suit their internal formats. In these cases, the requirement that the extension-release file matches exactly the image name where it's contained cannot work. Allow falling back to loading the first regular file which name starts with 'extension-release' located in /usr/lib/extension-release.d/ and tagged with a user.extension-release.strict extended attribute with a true value, if the one with the expected name cannot be found.
2021-08-17xattr-util: add fgetxattrat_fake_malloc variantLuca Boccassi3-8/+68
2021-08-17sd-boot: Draw custom edit cursorJan Janssen2-13/+17
Firmware likes to draw the EFI provided cursor in a weird way that makes it invisible sometimes. This is even more likely to happen if unusual colors are picked. It also fails to draw attention to the user by being very small and not blinking. Additionally, to make it more clear that we are in edit mode, we now default to inverting the general default color and use that for our line edit. Fixes: #19301
2021-08-17sd-boot: Add compile-time color supportJan Janssen3-13/+31
Fixes: #10139
2021-08-17sd-boot: Improve key bindingsJan Janssen2-17/+11
Making keys case insensitive should help if caps lock is on. We are not advertising them at runtime or in the manual to reduce the noise. This also hides the quit and version commands from the help string. They are mostly for devs and otherwise have little to no use to normal users. The latter overlaps with print status which is still advertised.
2021-08-17sd-boot: Render title entries centered and not to entire screen widthJan Janssen1-22/+18
2021-08-17sd-boot: Introduce print_at helper functionJan Janssen3-49/+33
2021-08-17sd-boot: Fix marking EFI var default entryJan Janssen1-7/+4
Fixes: #18072
2021-08-17env-util: add unsetenv_erase() helperLennart Poettering8-18/+77
Let's unify how we remove secrets from the env block.
2021-08-17import: drop some now unused functions from import-common.cLennart Poettering2-54/+0
2021-08-17docs: document how to turn off btrfs quota support in importdLennart Poettering1-0/+19
Fixes: #18421 #15903
2021-08-17import-fs: make various options controllable via cmdline/env varLennart Poettering1-97/+165
This basically does what the previous two commits did for systemd-import + systemd-pull but for systemd-import-fs. This commit is a bit simpler though, as a --direct mode doesn't change that much. It's mostly about not searching for existing, conflicting images and not much else.
2021-08-17pull: add --direct mode + make various eatures optional + explicit checksum ↵Lennart Poettering9-516/+1111
verification This does what the previous commit did for systemd-import the same way for systemd-pull. It also adds one more thing: the checksum validation is extended, in addition of doing SHA256SUMS/gpg verification it is now possible to immediately specify a hash value on the command line that the download needs to match. This is particularly useful in --direct mode as we can download/decompress/unpack arbitrary files and check the hash of the downloaded file on-the-fly.
2021-08-17import: add new "--direct" mode + add controls for turning certain features ↵Lennart Poettering6-200/+543
on/off This reworks/modernizes the tar/raw import logic and adds the following new features: - Adds the ability to control btrfs subvol and quota behaviour which was previously always on via an env var and cmdline arg - Adds control whether to sync() stuff after writing it, similar via env var + cmdline arg - Similar, the QCOW2 unpacking logic that was previously the implied default may now be controlled via env var + cmdline arg. - adds a "direct" mode. In this mode, the systemd-import tool can be used as a simple tool for decompressing/unpacking/installing arbitrary files, without all the additional meta data and auxiliary resources, i.e. outside of the immediate disk image context. Via the new --offset= and --size-max= switches the downloaded data can be written to specific locations of a file (which is particularly useful to use the tool to download fs images and write them to a partition location before actually creating the partition). We'll later use the latter feature for "sysupdate" concept, where images can be directly be written to partitions. That way the systemd-import binary will be used as backend for both "systemd-importd" and "systemd-sysupdate" and share most of the same code.
2021-08-17shared: add generic helper tools for installing files/dir treesLennart Poettering5-0/+359
This adds a bit of generic helper tools for installing files/dir trees. "installing" is supposed to mean the final step when preparing a disk image or directory tree, where the result is renamed to its final name. It has some bells and whistles, as it is able to replace existing files sanely, can fsync() things carefully and can mark things read-only in a nice way. This is supposed to be generic, unified code that can be used eventually for any of our tools that prepare disk images/directory trees, including importd, nspawn's --template= mechanism, the discover-image.c logic, and more.
2021-08-17po: Translated using Weblate (Portuguese (Brazil))Gustavo Costa1-5/+5
Currently translated at 100.0% (189 of 189 strings) Co-authored-by: Gustavo Costa <xfgusta@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pt_BR/ Translation: systemd/main
2021-08-16unit: coldplug both job and nop_job if possibleGeass-LL1-4/+7
Sometimes, both job and nop_job are deserialized. In this case, if we only cold plug the job, the nop_job will also stuck in the job list.
2021-08-16network: add address label on dhcpv4Maxime de Roucy9-0/+55
Fixes: #13967
2021-08-16network: allow users to forbid passthru MACVLAN from putting its link into ↵Tom Yan1-0/+9
promiscuous mode While we haven't implemented a key for users to set MACVLAN/MACVTAP flags, we can at least allow them to make use of the Promiscuous= key of the corresponding link to set the nopromisc flag.
2021-08-16ethtool: make ethtool_set_features() return earlier when nothing is requestedYu Watanabe1-3/+13
2021-08-16ethtool: make the size of 'features' array staticYu Watanabe2-2/+2
2021-08-16man: address label can be set only for IPv4 addressesYu Watanabe1-1/+2
2021-08-16sd-boot: Allow automatic entries to be defaultJan Janssen2-5/+39
2021-08-16sd-boot: Improve selection of initial entries to showJan Janssen1-17/+15
2021-08-16network: can: allow to specify bit-timing with TimeQuantaNSec= and friendsYu Watanabe6-1/+130
Closes #19424 and #20435.
2021-08-16network: SamplePoint= should be specified only when BitRate= is specifiedYu Watanabe2-3/+4
See can_get_bittiming() in drivers/net/can/dev/bittiming.c of kernel.
2021-08-16network: can: make Termination= optionally take a raw resistor valueYu Watanabe5-9/+58
Note that this slightly breaks backward compatibility when Termination=1. Previously, this is handled as boolean true, then 120 ohm was used. But now with this commit, it is handled as 1 ohm.
2021-08-16network: can: add missing control modesYu Watanabe3-0/+38
2021-08-16network: can: introduce config_parse_can_control_mode()Yu Watanabe5-46/+55
2021-08-16network: can: refuse too large restart sec earlierYu Watanabe3-6/+40
2021-08-16sd-boot: Detect windows boot loader title from BCDJan Janssen1-3/+51