summaryrefslogtreecommitdiffstats
path: root/src/basic/random-util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-06kernel-install: allow overriding the path to config filesZbigniew Jędrzejewski-Szmek3-16/+35
It's pretty hard to write tests without this. I started out by adding separate variables for each of the files we read, but there's a bunch, and in practice it's good enough to just override the directory.
2022-07-06kernel-install: do not silently ignore files we can't readZbigniew Jędrzejewski-Szmek2-11/+15
'test -r' is changed to 'test -f' everywhere. If the file exists but we cannot read it, it would be better if we fail with a permission error. E.g. if /etc/kernel/cmdline is unreadable, and we're running something as non-root, we shouldn't fall back to /usr/lib/kernel/cmdline. This commit doesn't resolve this fully, because we're not running with 'set -e', but this is a preparator step.
2022-07-06man: rework documentation of kernel-install configZbigniew Jędrzejewski-Szmek1-70/+95
Variables read by kernel-install and those exported by it were described without any clear separation. So in particular it was pretty hard to answer a question like "what variables can be set in install.conf". The in- and out-variables are now split into two separate subsections.
2022-07-06kernel-install: do not let config file override variablesZbigniew Jędrzejewski-Szmek1-6/+21
This implementation is pretty ugly, but POSIX sh doesn't allow indirect variable expansion, so I couldn't figure out a way to make it less verbose.
2022-07-06kernel-install: fix invocation as installkernelZbigniew Jędrzejewski-Szmek1-1/+1
Fixes #23681.
2022-06-29journal: Fix missing parenthesisDaan De Meyer1-1/+1
2022-06-29virt: fix detection of Parallels virtualizationYu Watanabe1-7/+11
If Parallels virtualization is detected from DMI, then trust that over CPUID. Fixes issue caused by 28b1a3eac252d471de4fbb6f317353af30d68878. Fixes #23856.
2022-06-28sd-journal: data object may be invalid after data_object_in_hash_table()Yu Watanabe1-0/+5
Fixes a bug introduced by 578cd1855b73d2710ae14a8d77c4fac1d8ea7f48. The function `data_object_in_hash_table()` calls `journal_file_move_to_object()` with `OBJECT_DATA`. Hence, previously obtained pointer to a data object may be now invalid. Fixes #23794.
2022-06-28sd-journal: also check object header before verifying object dataYu Watanabe1-51/+44
Otherwise, the check by journal_file_check_object() may be meaning less when the header is broken.
2022-06-28sd-journal: drop unused argument from journal_file_check_object()Yu Watanabe1-4/+3
And rename the function.
2022-06-28sd-journal: shorten code a bitYu Watanabe1-9/+3
2022-06-28sd-journal: align tableYu Watanabe1-6/+6
2022-06-28Use https for gnu.orgMichael Biebl65-65/+65
2022-06-28Use https for man7.orgMichael Biebl10-25/+25
2022-06-28Use https for freedesktop.orgMichael Biebl52-75/+75
grep -l -r http:// | xargs sed -E -i s'#http://(.*).freedesktop.org#https://\1.freedesktop.org#'
2022-06-28tree-wide: allow ASCII fallback for … in logsDavid Tardon18-45/+77
2022-06-28tree-wide: allow ASCII fallback for → in logsDavid Tardon22-61/+116
2022-06-28gpt: add PARISC UUIDsSam James3-0/+13
Not doing PARISC64 for now as no userland exists for it yet.
2022-06-28seccomp: add PARISC (HPPA support)Sam James2-2/+35
We have to skip the W^X protections as we need executable memory on PARISC for now. Kernel work is in progress (started w/ 5.18). Closes: https://github.com/systemd/systemd/issues/23180
2022-06-28basic/missing-syscalls: add PARISC (HPPA support)Sam James7-4/+643
Bug: https://github.com/systemd/systemd/issues/23180
2022-06-27github: add more components to RFE issue templateJan Macku1-3/+44
Follow-up to: #23838
2022-06-27test: add another test for inotify event sourceYu Watanabe1-0/+52
The test case is for issue #23826.
2022-06-27sd-event: make sd_event_prepare() return positive when buffered inotify data ↵Yu Watanabe1-1/+1
exists Previously, even if there is buffered inotify data, sd_event_prepare() did not process the data when there is no pending event source. Fixes #23826.
2022-06-27sd-event: use LIST_IS_EMPTY()Yu Watanabe1-3/+3
2022-06-27po: add a false positive to POTFILES.skipPiotr Drąg1-0/+1
Scripts used to detect files that should be in POTFILES.in, like intltool-update -m used on https://l10n.gnome.org/module/systemd/, falsely detect this file as containing translations. Avoid this behavior by putting the file in POTFILES.skip.
2022-06-27network: grouping elements in network_free()Yu Watanabe1-33/+46
2022-06-27test-sd-hwdb: adjust the test to actually do anythingZbigniew Jędrzejewski-Szmek1-1/+1
Without the terminating colon we wouldn't match anything, so the loop over properties was skipped.
2022-06-27boot: Use stdboolJan Janssen18-134/+137
The way the UEFI spec defines BOOLEAN is fully compatible to stdbool, so it is perfectly safe to switch to it. Although any other values than 0/1 are undefined by the spec, we could theoretically have cases where a sloppy firmware hands us a bad BOOLEAN (since gnu-efi/edk2 declare it as uint8_t). So any uses where we pass a pointer to BOOLEAN are left untouched.
2022-06-27boot: Use charJan Janssen15-182/+171
This also switches to _cleanup_free_. Otherwise no code changes.
2022-06-27boot: Use char16_tJan Janssen21-199/+217
This also switches to _cleanup_free_. Otherwise no code changes.
2022-06-27boot: Use stdint typesJan Janssen23-402/+391
2022-06-27boot: Remove use of EFI_ERRORJan Janssen18-187/+183
The macro is ugly and annoying to use and provides no real benefit. The only reason to use it would be to allow warnings to go through. But any EFI APIs we call do not return warning status codes or we do not check the return value anyway. The only other case would be BS->StartImage, where we already treat anything other than EFI_SUCCESS as an error anyway. This also helps the compiler and code analyzers to better reason about the code. In particular, this can help reduce use of uninitialized variable warnings.
2022-06-27boot: Rename remaining EFI_STATUS vars to err for consistencyJan Janssen2-29/+29
2022-06-27fundamental: Remove types-fundamental.hJan Janssen9-83/+30
This removes the fundamental typedefs in favor of just using standard C types. These are all used internally anyway and also do not do anything special to warrant any redefinition to EFI types. Even for BOOLEAN we can safely use stdbool. The defition from the EFI specification is fully compatible, including making any other values than 0/1 as undefined. The exception is sd_char as those need to be char16_t. The typedef is moved to string-util-fundamental.h instead.
2022-06-27github: add more components to issue templateYu Watanabe2-11/+52
2022-06-27meson: show default nspawn locale in summaryYu Watanabe1-0/+1
Follow-up for a22f5186761a437d8845397bbbfeaf9a7d590ec2.
2022-06-27emacs: ignore .dir-locals-2.el (personal customization) versioningJacek Migacz1-0/+1
2022-06-27hwdb: Add Lenovo ThinkPad C13 YogaAkihiko Odaki1-0/+4
2022-06-26test: drop unnecessary `|| :`Frantisek Sumsal1-1/+1
since we use `set +e` in the cleanup handler.
2022-06-26test: run TEST-21 in nspawn only if $TEST_PREFER_NSPAWN is setFrantisek Sumsal1-1/+7
so we can run it under nspawn in CIs which don't support nested KVM, but avoid running it twice (both under nspawn and qemu) in CIs which support both methods.
2022-06-26test: make TEST-21-DFUZZER work in containersFrantisek Sumsal1-3/+17
by avoiding fuzzing networkd and timesyncd when running in a container.
2022-06-24sha256: Use stdbool and uintptr_tJan Janssen2-19/+6
This also syncs the copyright blurb with current glibc sources. The written by line does not appear in upstream, so it should be okay to remove.
2022-06-24mkosi: Pull in fix that solves action mirror issueDaan De Meyer1-1/+1
2022-06-24udev: allow to execute longer command lineYu Watanabe1-4/+4
Fixes #23607.
2022-06-24ci: set top-level permissions as wellEvgeny Vereshchagin1-0/+3
It should turn on the "restricted" mode by default regardless of whether the global setting is on or not. New jobs in this action should have to overwrite it explicitly to gain write access in any way. It should also make the action consistent with the other actions writing various stuff like 'labeler' and 'codeql'.
2022-06-23ci: remove links to "codeless contribution" actionsEvgeny Vereshchagin1-2/+0
They refer to actions with script injections running with full access to repositories.
2022-06-23boot: Fix calls to ResetSystemJan Janssen1-3/+4
gnu-efi falsely declares a return type for ResetSystem when it should be void. The spec also says that it never returns, so just assert.
2022-06-23logind: simplify codeZbigniew Jędrzejewski-Szmek1-10/+4
Follow-up for 4885d7490b23e08d8444e5a68927ce9ce8727e5a.
2022-06-23github: Issue forms - fix GA `SHA1` refJan Macku1-1/+1
Fix `SHA1` reference for github action `stefanbuck/github-issue-parser` to point to correct commit. Follow-up to: #23811
2022-06-23github: Issue forms templates follow-upJan Macku1-5/+8
- Use `SHA1` for actions versioning - Fix typo: `github-issue-praser` -> `github-issue-parser` - Define exact permissions Follow-up to: #23693