summaryrefslogtreecommitdiffstats
path: root/docs/AUTOPKGTEST.md (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-09core/exec-invoke: Fix missing arguments for PR_SET_MEMORY_MERGE callVasiliy Stelmachenok1-1/+1
Without it prctl will always fail, even if using a kernel version that supports the PR_SET_MEMORY_MERGE call.
2024-03-08extract-word: increase test-extract-word coverage for unicode inputsChandra Pratap1-0/+24
In the current testing scheme in test-extract-word, we only have two test cases covering unicode strings. Improve upon this by adding more cases for the same. Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
2024-03-08add unittest cases for argv_looks_like_helpAbraham Samuel Adekunle1-0/+5
2024-03-08Added a new test to cover login-util.cUnique-Usman2-0/+23
2024-03-08man/kernel-install: add `add-all` command to synopsisAntonio Alvarez Feijoo1-0/+5
2024-03-08mkosi: Add BuildSourcesEphemeral=yesDaan De Meyer1-0/+1
Required to make sure that any changes packaging specs make to the source files are thrown away after the build so they don't mess with the source tree.
2024-03-08mkosi: fix typoYu Watanabe1-1/+1
Follow-up for 4d0f1451b58dbd4b94da579b800adef4f4e42c34.
2024-03-08resolve: fix typoYu Watanabe1-1/+1
Follow-up for d08566fad7c97df153d38e314670aea3822106e1.
2024-03-08bootctl: additional fixes for local/global UKI PE addonsEmanuele Giuseppe Esposito2-57/+108
Fix various memory leaks and names used in https://github.com/systemd/systemd/pull/28761.
2024-03-08resolved: don't cache NXDOMAIN for SUDN resolver.arpaRonan Pigott4-1/+49
The name resolver.arpa is reserved for RFC9462 "Discovery of Designated Resolvers" (DDR). This relies on regular dns queries for SVCB records at the special use domain name _dns.resolver.arpa. Unfortunately, older nameservers (or broken ones) won't know about this SUDN and will likely return NXDOMAIN. If this is cached, the cache entry will become an impediment for any clients trying to discover designated resolvers through the stub-resolver, or potentially even sd-resolved itself, were it to implement DDR. The RFC recommendation is that "clients MUST NOT perform A or AAAA queries for resolver.arpa", and "resolvers SHOULD respond to queries of any type other than SVCB for _dns.resolver.arpa. with NODATA and queries of any type for any domain name under resolver.arpa with NODATA." which should help avoid potential compatibility issues. This enforces that condition within sd-resolved, and avoids caching any such erroneous NXDOMAIN. The RFC also recommends requests for this domain should never be forwarded, to prevent authentication failures. Since there isn't much point in establishing secure communication to the local stub, we still allow SVCB to be forwarded from the stub, in case the client cares to implement some other authentication method and understands the consequences of skipping the local stub. Normal clients are not expected to implement DDR, but this change will protect sd-resolved's own caches in case they try. Although A and AAAA are prohibited, I think validating resolvers might reasonably query for dnssec records, even though the resolver.arpa zone does not exist (it is declared to be a locally served zone). For this reason, I have also added resolver.arpa to the builtin dnssec NTA.
2024-03-07Add more unit test to cover the uid_range_covers inside the uid-range.c ↵Unique-Usman1-0/+2
file (#31666) * Add more unit test to cover the uid_range_covers inside the uid-range.c file
2024-03-07Added a unit test to cover af_to_name in af-list.cUnique-Usman1-0/+1
2024-03-07logind-dbus: count user-early sessions in verify_shutdown_creds tooMike Yuan1-1/+1
Follow-up for 59afe07c217c73e3c7c19fb06aef2ff7bf609fd2
2024-03-07shared/conf-parser: add two more annotationsZbigniew Jędrzejewski-Szmek1-2/+2
2024-03-07bootctl: use the full parser tooZbigniew Jędrzejewski-Szmek1-30/+38
2024-03-07kernel-install: support full set of config files and drop-insZbigniew Jędrzejewski-Szmek3-53/+64
This brings the handling of config for kernel-install in line with most of systemd, i.e. we search the set of paths for the main config file, and the full set of drop-in paths for drop-ins. This mirrors what 07f5e35fe7967c824a87f18a3a1d3c22e5be70f5 did for udev.conf. That change worked out fine, so I hope this one will too. The update in the man page is minimal. I think we should split out a separate page for the config file later on. One motivating use case is to allow a drop-in to be created for temporary config overrides and then removed after the operation is done.
2024-03-07man: document all the new pathsZbigniew Jędrzejewski-Szmek13-14/+49
2024-03-07various: use new config loader instead of config_parse_config_file()Zbigniew Jędrzejewski-Szmek16-103/+97
This means the main config file is loaded also from /run and /usr. We should load the main config file from all the places where we load drop-ins. I realize I had a giant blind spot: I always assumed that we load config files from /etc, /run, /usr/local/lib, /usr/lib. But it turns out that we only used those paths for drop-ins. For the main config file, we only looked in /etc. The docs actually partially described this behaviour, i.e. most SYNOPSIS sections and some parts of the text, but not others. This is strange, because 6495361c7d5e8bf640841d1292ef6cfe1ea244cf was completely bogus with the behaviour before this patch. We had a huge discussion before it was merged, and clearly nobody noticed this. Similarly, in the previous version of the current pull request, we had a long discussion about the appropriate order of directories, and apparently nobody noticed that there was no order, because only looked in one directory. So the blind spot seems to have been shared. Also, systemd-analyze cat-config behaved incorrectly, i.e. its behaviour matches the new behaviour. Possibly, in the future it'll make it easier to add support for --root.
2024-03-07shared/conf-parser: add function which implements the standard config file setZbigniew Jędrzejewski-Szmek3-1/+155
Also allow config_parse_many() to be called for config files without sections. The test uses such a file.
2024-03-07shared/conf-parser: use chase() in config_parse_many_files()Zbigniew Jędrzejewski-Szmek2-21/+18
The function was partially implementing chroot lookups. It would be given file names that were prefixed with the chroot, so it would mostly work. But if any of those files were symlinks, fopen() would do the wrong thing. Also we don't need locking. So give 'root' as the argument and use chase_and_fopen_unlocked() to get proper chroot-aware lookups. The only place where config_parse_many() is called with root is is repart.c. So this is a follow-up for e594a3b154bd06c535a934a1cc7231b1ef76df73 and 34f2fd5096cdb26ef57998740b1b876332d968fc.
2024-03-07strv: add helper to extend strv from both sidesZbigniew Jędrzejewski-Szmek7-10/+29
Also, use the more correct type of 'const char* const*' for the input strv. This requires adding the cast in a few places, but also allows to remove some casts in others.
2024-03-07udevd: inline iterator variableZbigniew Jędrzejewski-Szmek1-3/+2
2024-03-07udev,backlight,kernel-install: reword sentences starting with "Skipping to"Zbigniew Jędrzejewski-Szmek4-7/+7
That's not gramatically correct. In backlight, change "assocation" to "deduplication". Without the context, it's probably not clear at all that we "associate" them to ignore them.
2024-03-07shared/pretty-print: rename output parametersZbigniew Jędrzejewski-Szmek1-4/+4
2024-03-07shared/conf-parser: collapse pkgdir and conf_file args into oneZbigniew Jędrzejewski-Szmek16-36/+24
This essentially reverts 5656cdfeeabc16b5489f5ec7a0a36025a2ec1f23. I find it much easier to understand what is going on when the path-relative-to-the-search-path is passed in full, instead of being constructed from two parts, with one of the parts being implicit in some places. Also, we call 'systemd-analyze cat-config <path>' with <path> with the same meaning, so this makes the internal and external APIs more consistent.
2024-03-07constants: drop duplicated CONF_PATHS definesZbigniew Jędrzejewski-Szmek5-26/+9
Follow-up for b0d3095fd6cc1791a38f57a1982116b4475244ba.
2024-03-07sleep: fix typo (sysupend -> suspend)Mike Yuan1-1/+1
2024-03-07bus-unit-util: trivial follow-up for UnitFreezerMike Yuan2-21/+23
Follow-up for 7483708131b474d92c9207c8c6340b450b58cb94 Make sure that function param names match between source and header. Also, place UnitFreezer params in front.
2024-03-07bus-unit-util: define FREEZE_BUS_CALL_TIMEOUT locallyMike Yuan2-5/+4
Follow-up for f274f8bf256702c5fd0c68d3f7bd6aeba74dfcf0 We define *_SLOW_BUS_CALL_TIMEOUT in each component's own file too. This one is no different and doesn't need to be in constants.h IMO.
2024-03-07man/resolve: update DNSSEC descriptionRonan Pigott1-3/+1
This behavior was changed. Fixes: 9c47b334445a ("resolved: enable DNS proxy mode if client wants DNSSEC")
2024-03-07loongarch64: disable simd when build efiXiaotian Wu1-4/+6
LoongArch does not yet support the `-mgeneral-regs-only` option, so when compiling for EFI, we need to use the `-mno-lsx` and `-mno-lasx` options to disable SIMD instructions.
2024-03-07Build distribution packages in mkosiDaan De Meyer60-807/+755
Instead of running meson install and hoping for the best, let's build distribution packages from the downstream packaging specs. This gets us the following: - Vastly simplified mkosi scripts since we don't need a separate initrd image anymore but can just reuse the default mkosi initrd. - Almost everything can move to the base image as its not the basis anymore for the initrd and as such we don't need to care about the size anymore. - The systemd packages that get pulled in as dependencies of other packages get properly uninstalled and replaced with our packages that we built instead of just installing on top of an existing systemd installation with no guarantee that everything from that previous installation was removed. - Much better testing coverage as what we're testing is much closer to what will actually be deployed in distributions. - Immediate feedback if something we change breaks distribution packaging - We get integration with the distribution for free as we'll automatically use the proper directories and such instead of having to hack this into a mkosi build script. - ...
2024-03-07mkosi: Update to v21Daan De Meyer1-1/+1
2024-03-07Update catalog.c - Removing sanity check as there is no need of checking non ↵SidhuRupinder1-2/+1
null pointer (#31653) There is no need to check the pointer as the pointer will never be NULL. Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
2024-03-07resolve: disambiguate return statementLuca Boccassi1-1/+1
This works as expected, but coverity warns that it could be ambiguous and context suggests the other way around. Add brackets to disambiguate. CID#1535101 Follow-up for 6399be223b73ce520654242ad08de387b08b738a
2024-03-07escape: fix operator precedence in overflow checkLuca Boccassi1-1/+1
CID#1535100 Follow-up for c6342e35b07f750771f0fdb3c80a27d3272e8001
2024-03-06man: fix systemd-timedated man page wrt ntp-units.dMichael Biebl1-2/+2
The service parsing/using this directory is systemd-timedated, not systemd-timesyncd.
2024-03-06tmpfiles.d/systemd: use ACL 'X' bit where appropriateMike Yuan1-6/+3
2024-03-06tmpfiles: do 'X' bit check in an ACL-aware mannerMike Yuan1-18/+28
Follow-up for 26d98cdd78cb5283f5771bd5866997acc494b067 I.e. stat() cannot be used here. Also, before this commit, the 'X' is only applied if the owner has execute bit set. Now it takes group and other into consideration too. setfacl(1) also has the same behavior.
2024-03-06tmpfiles: remove one more use of goto and modernizationMike Yuan1-66/+47
2024-03-06core,install: generalize install error handlingMike Yuan3-182/+181
2024-03-06shared/install: use FOREACH_ARRAY at one more placeMike Yuan1-3/+3
2024-03-06shared/install: use RET_GATHER moreMike Yuan1-32/+22
2024-03-06path-lookup: rename lookup_paths_free -> _doneMike Yuan15-37/+36
This is stack-allocated, so update to match our usual rules.
2024-03-06resolved: expose raw RR resolver via Varlink tooLennart Poettering3-4/+187
Now that we have an address, hostname, and service resolve, at the last kind of resovler we expose over D-Bus also to Varlink.
2024-03-06resolved: move ResourceKey/ResourceRecord varlink types to generic Resolve ↵Lennart Poettering3-66/+75
interface Let's define this in the generic interface and then import it into the Monitor interface too. This is preparation for adding an interface to resolve arbitrary RRs via Varlink, which means we want the type in both interfaces.
2024-03-06resolved: decrease mdns/llmnr priority for the reverse mapping domainsRonan Pigott2-2/+4
Previously all queries to the reverse mapping domains (in-addr.arpa and ip6.arpa) were considered to be in-scope for mdns and llmnr at the same priority as DNS. This caused sd-resolved to ignore NXDOMAIN responses from dns in favor of lengthy timeouts. This narrows the scope of mdns and llmnr so they are not invariably considered as fallbacks for these domains. Now, mdns/llmnr on a link will only be used as a fallback when there is no suitable DNS scope, and when that link is DefaultRoute.
2024-03-06meson: add missing dependency to libdlYu Watanabe1-0/+1
Follow-up for 1c20c9f4fce3b2eb501a776fb6025d6b5567fc00. Fixes https://github.com/systemd/systemd/pull/31550#issuecomment-1980458377.
2024-03-06ci: explicitly change oom-{score}-adj before running testsFrantisek Sumsal1-0/+6
For some reason root in GH actions is able to _decrease_ its oom score even after dropping all capabilities (including CAP_SYS_RESOURCE), until the oom score is changed explicitly after sudo: $ systemd-detect-virt microsoft $ sudo su - ~# capsh --drop=all -- -c 'capsh --print; grep -H . /proc/self/oom*; choom -p $$ -n -101' Current: = Bounding set = Ambient set = Current IAB: !cap_chown,!cap_dac_override,!cap_dac_read_search,...,!cap_sys_resource,...,!cap_checkpoint_restore Securebits: 00/0x0/1'b0 secure-noroot: no (unlocked) secure-no-suid-fixup: no (unlocked) secure-keep-caps: no (unlocked) secure-no-ambient-raise: no (unlocked) uid=0(root) euid=0(root) gid=0(root) groups=0(root) Guessed mode: UNCERTAIN (0) /proc/self/oom_adj:8 /proc/self/oom_score:1000 /proc/self/oom_score_adj:500 pid 22180's OOM score adjust value changed from 500 to -101 ~# choom -p $$ -n 500 pid 22027's OOM score adjust value changed from 500 to 500 ~# capsh --drop=all -- -c 'capsh --print; grep -H . /proc/self/oom*; choom -p $$ -n -101' Current: = Bounding set = Ambient set = ... uid=0(root) euid=0(root) gid=0(root) groups=0(root) Guessed mode: UNCERTAIN (0) /proc/self/oom_adj:8 /proc/self/oom_score:1000 /proc/self/oom_score_adj:500 choom: failed to set score adjust value: Permission denied I have no idea what's going on, but it breaks exec-oomscoreadjust-negative.service from test-execute when running unprivileged.
2024-03-06ci: make the build dir accessible when running w/o privilegesFrantisek Sumsal1-0/+5
Otherwise the unprivileged part of test-execute gets silently skipped: /* test_run_tests_unprivileged */ Successfully forked off '(test-execute-unprivileged)' as PID 20998. ... pin_callout_binary: build dir binary: /home/runner/work/systemd/systemd/build/systemd-executor pin_callout_binary: open(/home/runner/work/systemd/systemd/build/systemd-executor)=-13 Failed to pin executor binary: No such file or directory (test-execute-unprivileged): manager_new, skipping tests: No such file or directory (test-execute-unprivileged) succeeded.