Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | udev: fix memleak | Yu Watanabe | 2020-12-21 | 1 | -1/+2 |
| | | | | Fixes #18039. | ||||
* | journal-importer: ignore invalid field at one more place | Yu Watanabe | 2020-12-21 | 1 | -0/+10 |
| | | | | | Fixes oss-fuzz#28817. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28817 | ||||
* | cryptenroll: drop an unused variable | Frantisek Sumsal | 2020-12-20 | 1 | -1/+1 |
| | | | | | | | | Fixes following warning/error w/ clang: ../src/cryptenroll/cryptenroll-tpm2.c:64:64: error: unused variable 'a' [-Werror,-Wunused-variable] _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *a = NULL; ^ 1 error generated. | ||||
* | tmpfiles: fix typo | Yu Watanabe | 2020-12-18 | 1 | -1/+1 |
| | | | | Follow-up for 94566540e3863032df3a8a89f948b94d764ca2b4. | ||||
* | Merge pull request #18019 from yuwata/hostname-drop-libudev | Yu Watanabe | 2020-12-18 | 1 | -1/+0 |
|\ | | | | | hostname: fix build failure | ||||
| * | hostname: fix build failure | Yu Watanabe | 2020-12-18 | 1 | -1/+0 |
| | | | | | | | | | | | | Follow-up for b9d8069832425b34211a6812e06537e0c50d46b6. libudev.h was dropped from most of our binaries. | ||||
* | | memory-id: fix never hit condition | Yu Watanabe | 2020-12-18 | 1 | -2/+5 |
|/ | | | | As sizeof(int64_t) is always 8. | ||||
* | Merge pull request #15531 from felipeborges/add-device-model-field-to-hostnamed | Lennart Poettering | 2020-12-18 | 2 | -0/+64 |
|\ | | | | | hostnamed: Add "Model" field | ||||
| * | hostnamed: Expose dmi "Vendor" and "Model" fields | Felipe Borges | 2020-12-04 | 2 | -0/+64 |
| | | | | | | | | See #15493 | ||||
* | | networkd: add RouteDenyList | Devon Pringle | 2020-12-18 | 4 | -13/+32 |
| | | | | | | | | | | | | | | Allow configuration for IPv6 discovered routes to be ignored instead of adding them as a route. This can be used to block unwanted routes, for example, you may wish to not receive some set of routes on an interface if they are causing issues. | ||||
* | | Merge pull request #18015 from keszybz/dmi-test-mesonification2 | Yu Watanabe | 2020-12-18 | 1 | -9/+17 |
|\ \ | | | | | | | Dmi test mesonification2 | ||||
| * | | meson: make each dmidecode a separate test | Zbigniew Jędrzejewski-Szmek | 2020-12-17 | 1 | -9/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | This allows them to be executed in parallel and also gives us better reporting. The dump files are renamed to avoid repeating "dmidecode-dump", since that string is already present in the subdirectory name. | ||||
* | | | Merge pull request #18011 from yuwata/trivial-fixes | Yu Watanabe | 2020-12-18 | 17 | -39/+45 |
|\ \ \ | | | | | | | | | Trivial fixes for recently merged PRs | ||||
| * | | | netlink: fix size of fib rule messages | Yu Watanabe | 2020-12-18 | 1 | -3/+3 |
| | | | | |||||
| * | | | meson: sort files | Yu Watanabe | 2020-12-18 | 1 | -2/+2 |
| | | | | |||||
| * | | | nspawn: sort headers | Yu Watanabe | 2020-12-18 | 1 | -2/+1 |
| | | | | |||||
| * | | | netlink: fix indentation | Yu Watanabe | 2020-12-18 | 1 | -4/+5 |
| | | | | |||||
| * | | | netlink: drop unnecessary error handling | Yu Watanabe | 2020-12-18 | 1 | -6/+3 |
| | | | | |||||
| * | | | netlink: use whitespace instead of tab | Yu Watanabe | 2020-12-18 | 1 | -1/+1 |
| | | | | |||||
| * | | | sd-netlink: add several assertions | Yu Watanabe | 2020-12-18 | 2 | -1/+3 |
| | | | | |||||
| * | | | sd-netlink: replace *messages[] -> **messages | Yu Watanabe | 2020-12-18 | 4 | -4/+4 |
| | | | | |||||
| * | | | meson: add missing headers | Yu Watanabe | 2020-12-18 | 1 | -0/+4 |
| | | | | |||||
| * | | | network: move variable declaration | Yu Watanabe | 2020-12-18 | 1 | -2/+2 |
| | | | | |||||
| * | | | tree-wide: fix typo | Yu Watanabe | 2020-12-18 | 7 | -14/+17 |
| | | | | |||||
* | | | | Merge pull request #17693 from yuwata/tmpfiles-compress-nocow-on-btrfs | Yu Watanabe | 2020-12-18 | 3 | -31/+70 |
|\ \ \ \ | | | | | | | | | | | tmpfiles: try to set file attributes one by one | ||||
| * | | | | tmpfiles: try to set file attributes one by one | Yu Watanabe | 2020-12-18 | 1 | -5/+9 |
| | | | | | | | | | | | | | | | | | | | | Closes #17690. | ||||
| * | | | | chattr-util: introduce fallback mode to set file attributes one by one | Yu Watanabe | 2020-12-18 | 2 | -26/+61 |
| |/ / / | |||||
* | | | | Merge pull request #18009 from poettering/time-set-sync-target | Yu Watanabe | 2020-12-18 | 2 | -4/+12 |
|\ \ \ \ | |/ / / |/| | | | tweaks for time-sync.target and time-set.target | ||||
| * | | | core: order timer units after both time-sync.target and time-set.target | Lennart Poettering | 2020-12-17 | 2 | -4/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If users do not enable a service like systemd-time-wait-sync.target (because they don't want to delay boot for external events, such as an NTP sync), then timers should still take the the weaker time-set.target feature into account, so that the clock is at least monotonic. Hence, order timer units after both of the targets: time-sync.target *and* time-set.target. That way, the right thing will happen regardless if people have no NTP server (and thus also no systemd-time-wait-sync.service or equivalent) or, only have an NTP server (and no systemd-time-wait-sync.service), or have both. Ordering after time-set.target is basically "free". The logic it is backed by should be instant, without communication with the outside going on. It's useful still so that time servers that implement the timestamp from /var/ logic can run in later boot. | ||||
* | | | | network: Allow to configure unreachable/blackhole RoutingPolicyRule (#17984) | Susant Sahani | 2020-12-18 | 4 | -13/+97 |
| | | | | |||||
* | | | | fido2: when listing fido2/hmac-secret devices, actually validate feature set | Lennart Poettering | 2020-12-17 | 1 | -4/+45 |
| | | | | |||||
* | | | | test: add tpm2 and fido2 libs to dlopen test | Lennart Poettering | 2020-12-17 | 1 | -0/+10 |
| | | | | |||||
* | | | | repart: optionally lock encrypted partitions to TPM2 | Lennart Poettering | 2020-12-17 | 1 | -20/+141 |
| | | | | | | | | | | | | | | | | | | | | This useful for bootstrapping encrypted systems: on first boot let's create a /var/ partition that is locked to the local TPM2. | ||||
* | | | | string-table: add private version of lookup macro with boolean fallback | Lennart Poettering | 2020-12-17 | 1 | -0/+1 |
| | | | | |||||
* | | | | cryptsetup: add support for TPM2 unlocking of volumes | Lennart Poettering | 2020-12-17 | 3 | -4/+470 |
| | | | | |||||
* | | | | cryptenroll: support listing and wiping tokens | Lennart Poettering | 2020-12-17 | 6 | -22/+735 |
| | | | | |||||
* | | | | cryptenroll: add support for TPM2 enrolling | Lennart Poettering | 2020-12-17 | 6 | -0/+1259 |
| | | | | |||||
* | | | | json: add APIs for quickly inserting hex blobs into as JSON strings | Lennart Poettering | 2020-12-17 | 2 | -0/+55 |
| | | | | | | | | | | | | | | | | | | | | | | | | This is similar to the base64 support, but fixed-size hash values are typically preferably presented as series of hex values, hence store them here like that too. | ||||
* | | | | sort-util: make cmp_int() generic, so that we can reuse it elsewhere | Lennart Poettering | 2020-12-17 | 3 | -4/+6 |
| | | | | |||||
* | | | | cryptenroll: add new "systemd-cryptenroll" tool for enrolling FIDO2+PKCS#11 ↵ | Lennart Poettering | 2020-12-17 | 9 | -0/+799 |
| | | | | | | | | | | | | | | | | security tokens | ||||
* | | | | cryptsetup: add fido2 support | Lennart Poettering | 2020-12-17 | 3 | -4/+454 |
| | | | | |||||
* | | | | fido2: don't use up/uv/rk when device doesn't support it | Lennart Poettering | 2020-12-17 | 2 | -74/+137 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently devices are supposed to generate failures if we try to turn off features they don't have. Thus don't. Prompted-by: https://github.com/systemd/systemd/issues/17784#issuecomment-737730395 | ||||
* | | | | homed: split out HMAC-HASH fido2 decode code into src/shared/ | Lennart Poettering | 2020-12-17 | 3 | -180/+265 |
| | | | | | | | | | | | | | | | | | | | | That way we can use it later on in systemd-cryptsetup to unlock devices with FIDO2 tokens. | ||||
* | | | | homed: move fido2 setup code to src/shared/ | Lennart Poettering | 2020-12-17 | 3 | -245/+331 |
| | | | | | | | | | | | | | | | | That way we can reuse it from systemd-cryptenroll | ||||
* | | | | homed: move fido2 device enumeration logic to shared code | Lennart Poettering | 2020-12-17 | 5 | -141/+143 |
| | | | | |||||
* | | | | homed: turn libfido2 into a dlopen() type dependency | Lennart Poettering | 2020-12-17 | 5 | -103/+312 |
| | | | | |||||
* | | | | cryptsetup: split up attach_luks_or_plain_or_bitlk() into smaller functions | Lennart Poettering | 2020-12-17 | 1 | -180/+250 |
| | | | | | | | | | | | | | | | | Just some refactoring. | ||||
* | | | | cryptsetup: read PKCS#11 key and token info from LUKS2 metadata | Lennart Poettering | 2020-12-17 | 4 | -13/+142 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optionally, embedd PKCS#11 token URI and encrypted key in LUKS2 JSON metadata header. That way it becomes very easy to unlock properly set up PKCS#11-enabled LUKS2 volumes, a simple /etc/crypttab line like the following suffices: mytest /dev/disk/by-partuuid/41c1df55-e628-4dbb-8492-bc69d81e172e - pkcs11-uri=auto Such a line declares that unlocking via PKCS#11 shall be attempted, and the token URI and the encrypted key shall be read from the LUKS2 header. An external key file for the encrypted PKCS#11 key is hence no longer necessary, nor is specifying the precise URI to use. | ||||
* | | | | cryptsetup: be more careful with erasing key material from memory | Lennart Poettering | 2020-12-17 | 1 | -4/+5 |
| | | | | |||||
* | | | | cryptsetup: split code that allocates udev security device monitor into its ↵ | Lennart Poettering | 2020-12-17 | 1 | -14/+28 |
| | | | | | | | | | | | | | | | | own function |