summaryrefslogtreecommitdiffstats
path: root/man/sysusers.d.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-22test: adapt test-functions for SUSEElisei Roca1-1/+5
2020-07-22verity: re-use already open devices if the hashes matchLuca Boccassi5-25/+174
Opening a verity device is an expensive operation. The kernelspace operations are mostly sequential with a global lock held regardless of which device is being opened. In userspace jumps in and out of multiple libraries are required. When signatures are used, there's the additional cryptographic checks. We know when two devices are identical: they have the same root hash. If libcrypsetup returns EEXIST, double check that the hashes are really the same, and that either both or none have a signature, and if everything matches simply remount the already open device. The kernel will do reference counting for us. In order to quickly and reliably discover if a device is already open, change the node naming scheme from '/dev/mapper/major:minor-verity' to '/dev/mapper/$roothash-verity'. Unfortunately libdevmapper is not 100% reliable, so in some case it will say that the device already exists and it is active, but in reality it is not usable. Fallback to an individually-activated unique device name in those cases for robustness.
2020-07-22dm-util: use CRYPT_DEACTIVATE_DEFERRED instead of ioctlLuca Boccassi4-38/+2
2020-07-21coredump: port to use common add_acls_for_user()Lennart Poettering1-24/+4
It's line-by-line the same logic, hence use the common implementation.
2020-07-21acl-util: fix error handling in add_acls_for_user()Lennart Poettering1-4/+10
2020-07-21offline-passwd: use chase_symlinks()Lennart Poettering1-4/+10
In case the passwd/group file is symlinked, follow things correctly. Follow-up for: #16512 Addresses: https://github.com/systemd/systemd/pull/16512#discussion_r458073677
2020-07-21update TODOLennart Poettering1-0/+3
2020-07-21man: update docs with the new functions and other enhancementsZbigniew Jędrzejewski-Szmek2-77/+171
2020-07-21homectl: fix warning about unused functionZbigniew Jędrzejewski-Szmek1-1/+1
../src/home/homectl-pkcs11.c:19:13: warning: ‘pkcs11_callback_data_release’ defined but not used [-Wunused-function] 19 | static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-07-21TODO: add entry for XZZbigniew Jędrzejewski-Szmek1-1/+2
The docs for XZ don't seem to answer this at first blush, or maybe I'm looking in the wrong place... This might make XZ less terribly slow, but on the other hand, almost nobody uses it, so it doesn't matter that much.
2020-07-21journal/compress: remove loop in decompress_startswith_zstd()Zbigniew Jędrzejewski-Szmek2-26/+19
This should be more efficient with no downsides. Same considerations as in the previous commit hold.
2020-07-21journal/compress: fix zstd decompression with capped output sizeZbigniew Jędrzejewski-Szmek1-28/+30
decompress_blob_zstd() would allocate ever bigger buffers in a loop trying to get a buffer big enough to decompress the input data. This is wasteful, since we can just query the size of the decompressed data from the compressed header. Worse, it doesn't work when the output size is capped, i.e. when dst_max != 0. If the decompressed blob happened to be bigger than dst_max, decompression would fail with -ENOBUFS. We need to use "stream decompression" instead, and only get min(uncompressed size, dst_max) bytes of output. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1856037 in a second way.
2020-07-21journal: use -EPROTONOSUPPORT for unknown compressionZbigniew Jędrzejewski-Szmek1-1/+1
We might add more compression types in the future, and we should treat that as unsupported, and not a format error.
2020-07-21sd-journal: when enumerating, continue even after an inaccessible fieldZbigniew Jędrzejewski-Szmek4-4/+45
SD_JOURNAL_FOREACH_DATA() and SD_JOURNAL_FOREACH_UNIQUE() would immediately terminate when a field couldn't be accessed. This can happen for example when a field is compressed with an unavailable compression format. But it's likely that this is the wrong thing to do: the caller for example might want to iterate over the fields but isn't interested in all of them. coredumpctl is like this: it uses SD_JOURNAL_FOREACH_DATA() but only uses a subset of the fields. Add two new functions sd_journal_enumerate_good_data() and sd_journal_enumerate_good_unique() that retry sd_journal_enumerate_data() and sd_journal_enumerate_unique() if the return value is something that applies to a single field: ENOBUS, E2BIG, EOPNOTSUPP. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1856037. An alternative would be to make the macros themselves smarter instead of adding new symbols, and do the looping internally in the macro. I don't like that approach for two reasons. First, it would embed the logic in the macro, so recompilation would be required if we decide to update the logic. With the current version of the patch, recompilation is required to use the new symbols, but after that, library upgrades are enough. So the current approach is safer in case further updates are needed. Second, our headers use primitive C, and it is hard to do the macros without using newer features.
2020-07-21user-util: indentation fixLennart Poettering1-1/+1
2020-07-21core: don't acquire dual timestamp needlessly if we don't need it in .timer ↵Lennart Poettering1-8/+9
handling Follow-up for: 26698337f3842842af51cd007485f1dcd7c43cf2
2020-07-21test: add basic test for clock mappingLennart Poettering1-0/+33
2020-07-21time-util: rework clock conversion logicLennart Poettering2-22/+66
Let's split this out into its own helper function we can reuse at various places. Also, let's avoid signed values where we can so that we can cover more of the available time range.
2020-07-21update NEWSLennart Poettering1-0/+12
2020-07-21import: always prefer GNU tar, to avoid cmdline incompatibilitiesLennart Poettering1-4/+34
Fixes: #16506
2020-07-21fileio: add brief explanations for flagsLennart Poettering1-5/+5
2020-07-21tree-wide: use READ_FULL_FILE_CONNECT_SOCKET at various placesLennart Poettering8-47/+52
Let's use the new flag wherever we read key material/passphrases/hashes off disk, so that people can plug in their own IPC service as backend if they like, easily. (My main goal was actually to support this for crypttab key files — i.e. that you can specify AF_UNIX sockets as third column in crypttab — but that's harder to implement, since the keys are read via libcryptsetup's API, not ours.)
2020-07-21fileio: allow to read base64/hex data as stringsLennart Poettering1-6/+14
There's really no reason to prohibit this, hence don't.
2020-07-21fileio: add support for read_full_file() on AF_UNIX stream socketsLennart Poettering3-9/+104
Optionally, teach read_full_file() the ability to connect to an AF_UNIX socket if the specified path points to one.
2020-07-21fileio: add explicit flag for generating world executable warning when ↵Lennart Poettering4-6/+7
reading file
2020-07-21udev: drop unnecessary checksYu Watanabe1-7/+3
Also, drop one unnecessary sd_device_unref(), as dev_db_clone will be unref()ed in udev_event_free().
2020-07-21udev: save ID_RENAMING= property to database before renaming network interfaceYu Watanabe1-5/+16
2020-07-21network: update one log messageYu Watanabe1-1/+1
2020-07-21test: run systemd-dissect and systemd-run with log level debug in ↵Luca Boccassi1-0/+5
TEST-50-DISSECT
2020-07-21logind: Fix org.freedesktop.login1.set-reboot-to-boot-loader-menu saving to ↵Hans de Goede1-2/+2
the wrong file in the non EFI case According to the docs, and to the org.freedesktop.login1.get-reboot-to-boot-loader-menu code, the (oneshot) boot-loader-menu timeout should be stored in /run/systemd/reboot-to-boot-loader-menu, but the set method was storing it in /run/systemd/reboot-to-loader-menu. This commit fixes this. Note that the fixed name also is a better match for the dbus call names and matches the related /run/systemd/reboot-to-boot-loader-entry structure, so fixing the set code, rather then the get code + docs seems like the right thing to do here.
2020-07-21bus: use bus_log_connect_error to print error messagefangxiuning11-21/+24
2020-07-20man: update explanation about the format to specify DNS serversYu Watanabe3-14/+32
2020-07-20resolvectl: use bus_message_read_in_addr_auto()Yu Watanabe1-50/+30
2020-07-20network, resolve: use bus_message_read_ifindex() or friendsYu Watanabe2-29/+14
2020-07-20util: introduce bus_message_read_ifindex()Yu Watanabe2-0/+21
2020-07-20util: introduce bus_mesage_read_dns_servers()Yu Watanabe4-149/+128
2020-07-20util: introduce helper functions to read in_addr from bus messageYu Watanabe3-0/+61
2020-07-20util: drop duplicated inclusion of sd-bus.hYu Watanabe1-2/+0
2020-07-20test-network: add tests for DNS= with port number and SNIYu Watanabe2-6/+6
2020-07-20resolvectl: show DNS servers with port and SNIYu Watanabe1-39/+96
2020-07-20resolvectl: make DNS servers can be specified with port number and SNIYu Watanabe1-8/+27
2020-07-20resolve: add DBus properties which support DNS SNI and port numberYu Watanabe3-23/+160
2020-07-20resolve: add DBus method to set DNS server with port number and SNIYu Watanabe3-32/+88
2020-07-20network: add DBus method to set DNS server with port number and SNIYu Watanabe3-5/+35
2020-07-20network: save DNS servers specified by DBus interfaceYu Watanabe1-4/+10
Also, filter out DNS servers which do not match link ifindex.
2020-07-20network: do not save DNS= entries not match link ifindexYu Watanabe1-3/+6
2020-07-20network: support port number and SNI in [Network] DNS=Yu Watanabe8-54/+83
2020-07-20resolve: read/save port number and SNI from/into link state fileYu Watanabe4-19/+48
2020-07-20resolve: compare port and SNI in dns_server_hash_opsYu Watanabe1-1/+8
2020-07-20resolve: also compare port and SNI in dns_server_find()Yu Watanabe5-6/+13