summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* catalog: update Polish translationPiotr Drąg2024-04-301-4/+18
| | | | Includes changes up to 844863c61e7b501097da84a1e4d1e4a6aa6d9f0d
* network-generator: add missing return on error after the logging refactorAntonio Alvarez Feijoo2024-04-301-1/+1
| | | | Fixes 3cb618084a1bd5c7cb42822b4ce3dbd048e6bd24
* Merge pull request #32523 from cgzones/inaccessible_labelLuca Boccassi2024-04-305-13/+21
|\ | | | | shared: create inaccessible files with correct security label
| * shared: create inaccessible files with correct security labelChristian Göttsche2024-04-291-2/+2
| |
| * basic: add open_mkdir_at_full()Christian Göttsche2024-04-292-6/+9
| | | | | | | | | | Add helper for open_mkdir_at() which accepts xopen flags, e.g. to pass XO_LABEL to create the target with the correct security context.
| * basic: add mknodat_label()Christian Göttsche2024-04-292-5/+10
| | | | | | | | | | Add helper for mknodat(2) which creates the destination with the correct security label.
* | po: add a false positive to POTFILES.skipPiotr Drąg2024-04-301-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.
* | docs: autopkgtest: refresh the docs with up-to-date informationSkia2024-04-301-8/+8
| | | | | | | | @iainlane doesn't work on Ubuntu infrastructure anymore, and `bionic` is still ESM, but not really supported anymore either. `noble`, which is the latest Ubuntu, probably is better for testing `systemd` in 2024, and pinging `qa-help` on IRC is the current official way to contact the team behind Ubuntu's infrastructure.
* | test: exclude gperf files from captured coverageFrantisek Sumsal2024-04-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent lcov started complaining loudly about unknown lines in gperf files: ... Found gcov version: 13.2.1 Using intermediate gcov format Recording 'internal' directories: ... Finished processing 1634 GCNO files Apply filtering.. Message summary: 1 error message: range: 1 28 warning messages: gcov: 27 usage: 1 geninfo: ERROR: (range) unknown line '33' in /build/src/home/homed-gperf.gperf: there are only 22 lines in the file. Use 'geninfo --filter range' to remove out-of-range lines. (use "geninfo --ignore-errors range ..." to bypass this error) Since we drop the coverage of built files from the final report anyway, let's do it also when capturing both initial and real coverage to avoid this error.
* | test: Don't persist journal in mkosi image if we're not debugging testsDaan De Meyer2024-04-303-8/+2
| | | | | | | | | | | | | | | | | | If we're not debugging tests, there's no point in persisting the journal, so let's use the volatile journal storage mode in that case to avoid doing unnecessary work. We don't disable journal storage alltogether since various tests check that stuff is written to the journal.
* | journal: Add journal.storage credentialDaan De Meyer2024-04-305-9/+68
| | | | | | | | | | | | In mkosi CI, we want persistent journals when running interactively and runtime journals when running in CI, so let's add a credential that allows us to configure which one to use.
* | build(deps): bump pkg/debian from `640ff73` to `9a5adf2`dependabot[bot]2024-04-301-0/+0
| | | | | | | | | | | | | | | | | | | | | | Bumps pkg/debian from `640ff73` to `9a5adf2`. --- updated-dependencies: - dependency-name: pkg/debian dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #32575 from DaanDeMeyer/fixDaan De Meyer2024-04-303-12/+11
|\ \ | | | | | | Various mkosi fixes
| * | mkosi: Make sure we create an image without /var/log/journalDaan De Meyer2024-04-301-0/+4
| | | | | | | | | | | | | | | This allows journald to create the directory itself with the right chattr settings on first boot.
| * | mkosi: Simplify rpm build scriptsDaan De Meyer2024-04-302-12/+7
|/ /
* | Merge pull request #32567 from DaanDeMeyer/profileDaan De Meyer2024-04-3023-74/+73
|\ \ | | | | | | mkosi: Introduce particle profile
| * | mkosi: Introduce particle profileDaan De Meyer2024-04-3022-66/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately the current mkosi partitioning setup is a bit too avant-garde for the integration tests. Both in that distributions aren't ready for it yet (some more than others), and that software which we depend on in the integration tests isn't ready for it yet (e.g. libselinux does not read its configuration from /usr). Let's switch back to a more boring partioning setup by default but keep the fancy stuff around as a mkosi profile. This means that it can still be used for manually testing stuff by running "mkosi --profile particle -f qemu".
| * | TEST-81-GENERATORS: Use SYSTEMD_PROC_CMDLINE moreDaan De Meyer2024-04-301-8/+2
| | | | | | | | | | | | | | | Makes the test more robust as the command line the image is booted won't influence the test result.
* | | test-journal-flush: use archived journal if possibleYu Watanabe2024-04-301-2/+84
| | | | | | | | | | | | | | | | | | | | | Workaround for #32436. The test may fail if the journal is vacuumed or rotated during the test is running. Let's use the newest archive file for safety.
* | | meson: bump libbpf dependency to 1.4.0 when using gccLuca Boccassi2024-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bpf_core_type_id_kernel() needs libbpf 1.4.0 when building with gcc rather than clang, so bump the dependency accordingly. More precisely, the following change is needed: https://github.com/libbpf/libbpf/commit/b19fdbf1be21a28f88740375a575ebd9dfbea68f Related to: https://github.com/systemd/systemd/issues/31869 Follow-up for 8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec
* | | machine: Add PIDFDs= fallbackDaan De Meyer2024-04-291-5/+14
|/ / | | | | | | | | | | In some environments, systemd-machined might not be restarted on downgrade. For safety, let's add the usual PIDFDs= fallback here as well.
* | resolved: always progress DS queriesRonan Pigott2024-04-291-0/+4
| | | | | | | | | | | | | | | | | | If we request a DS and the resolver offers an unsigned SOA, a new auxiliary transaction for the DS will be rejected as a loop, and we might not make any progress toward finding the DS we need. Let's ensure that we at least always check the parent in this case. Fixes: 47690634f157 ("resolved: don't request the SOA for every dns label")
* | meson: copy prefix mapping CFLAGS when building BPF objectsLuca Boccassi2024-04-291-0/+18
|/ | | | Otherwise the filenames will contain variable paths and break reproducibility
* meson: define 's390' for 's390x' when building BPF objectsLuca Boccassi2024-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | The kernel headers match on __s390__ so the build fails ../src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:159:6: error: Must specify a BPF target arch via __TARGET_ARCH_xxx void BPF_KPROBE(userns_restrict_free_user_ns, struct work_struct *work) { ^ /usr/include/bpf/bpf_tracing.h:817:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ /usr/include/bpf/bpf_tracing.h:797:41: note: expanded from macro '___bpf_kprobe_args' ^ /usr/include/bpf/bpf_helpers.h:195:29: note: expanded from macro '___bpf_apply' ^ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) /usr/include/bpf/bpf_tracing.h:789:72: note: expanded from macro '___bpf_kprobe_args1' ^ /usr/include/bpf/bpf_tracing.h:563:29: note: expanded from macro 'PT_REGS_PARM1' ^ <scratch space>:125:6: note: expanded from here GCC error "Must specify a BPF target arch via __TARGET_ARCH_xxx"
* Merge pull request #32547 from YHNdnzj/minor-cleanupMike Yuan2024-04-293-16/+20
|\ | | | | Some cleanups prompted during review
| * fs-util: modernize touch_file a bitMike Yuan2024-04-291-8/+5
| |
| * fs-util: try AT_EMPTY_PATH first for futimens_opathMike Yuan2024-04-291-2/+12
| |
| * efivars: drop unneeded UTIME_NOWMike Yuan2024-04-291-4/+1
| | | | | | | | futimens(2) defaults to current time if 'times' is NULL.
| * pam_systemd_loadkey: add missing PAM_EXTERNMike Yuan2024-04-291-2/+2
| |
* | boot: fix argument name mismatch in two functionsAntonio Alvarez Feijoo2024-04-292-2/+2
| |
* | core: Add systemd.crash_action= kernel command line argumentDaan De Meyer2024-04-2910-23/+115
| | | | | | | | | | | | Required for integration tests to power off on PID 1 crashes. We deprecate systemd.crash_reboot and related options by removing them from the documentation but still parsing them.
* | journalctl: also check arg_file_stdin with other journal locationMike Yuan2024-04-291-1/+1
| | | | | | | | | | | | options Prompted by #32491
* | docs/DEBUGGING.md: use an underscore in the kernel command line optionnl67202024-04-291-1/+1
| | | | | | | | | | | | | | systemd-debug-generator(8) lists it as `systemd.debug_shell`. According to 1d84ad944520fc3e062ef518c4db4e1d3a1866af, kernel command line options should use an underscore instead of a dash.
* | core: Pass NULL error in dump_impl()Daan De Meyer2024-04-294-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | If mac_selinux_access_check() or bus_verify_bypass_dump_ratelimit_async() fail, we goto "ratelimited" where we set a custom D-BUS error. In "ratelimited", we call sd_bus_error_setf() which eventually hits an assert_return(!bus_error_is_dirty()). Avoid hitting this assertion by passing NULL as the error to mac_selinux_access_check() and bus_verify_bypass_dump_ratelimit_async() since we will override the error immediately anyway if either fails. We modify both functions as well to allow passing a NULL error and fix the argument name as well while we're at it.
* | Merge pull request #32556 from YHNdnzj/development-freezeFrantisek Sumsal2024-04-292-0/+5
|\ \ | | | | | | development-freeze: suppress warning for some labels
| * | development-freeze: suppress warning for some labelsMike Yuan2024-04-291-0/+2
| | |
| * | labeler: add l10n 🌍Mike Yuan2024-04-291-0/+3
| | |
* | | build(deps): bump pkg/debian from `4b1f868` to `640ff73`dependabot[bot]2024-04-291-0/+0
|/ / | | | | | | | | | | | | | | | | | | | | Bumps pkg/debian from `4b1f868` to `640ff73`. --- updated-dependencies: - dependency-name: pkg/debian dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* | pam: Setup logging to syslogDaan De Meyer2024-04-295-0/+26
| | | | | | | | | | | | | | We already log to syslog using pam_syslog() for logs generated directly within our pam plugins. However, any logs generated by our generic logging macros that are invoked within a pam plugin will log to the console. Let's make sure our generic logging macros are set up to log to syslog as well.
* | po: Translated using Weblate (French)Pierre GRASSER2024-04-291-2/+6
| | | | | | | | | | | | | | | | Currently translated at 100.0% (233 of 233 strings) Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/ Translation: systemd/main
* | NEWS: fix minimum dracut version required for systemd v256Antonio Alvarez Feijoo2024-04-291-3/+3
|/ | | | Follow-up for d4e9be97a3
* mkosi: Ignore version from versioned dependencies in .SRCINFODaan De Meyer2024-04-282-1/+1
| | | | | | Dependencies in .SRCINFO can be versioned. Let's make sure we ignore any specified versions when grepping it for dependencies. Also update the arch submodule to the latest to make sure the change works.
* various: drop unnecessary DISABLE_WARNING_FORMAT_NONLITERALMike Yuan2024-04-282-5/+1
| | | | | We use _printf_ for these functions, so there shouldn't be a warning in the first place.
* hwdb: Add a common Logitech M185/M225 mouse variantMaciej S. Szmigiero2024-04-281-0/+1
| | | | | Measured/tested on a Logitech N1901 mouse that apparently identifies as one.
* docs: update link for SUSE whitepaperspdfnet2024-04-281-1/+1
| | | | Signed-off-by: spdfnet <32593931+spdfnet@users.noreply.github.com>
* network: DHCP version logging typosSebastian Pucilowski2024-04-284-18/+18
| | | | | | Some DHCP client log messages report "DHCP4" or "DHCP6" instead of "DHCPv4" or "DHCPv6" as used within the rest of the codebase. Typos fixed.
* NEWS: add warnings about read-only fs and libkmod being dlopen'edZbigniew Jędrzejewski-Szmek2024-04-271-0/+10
| | | | Closes https://github.com/systemd/systemd/issues/32511.
* Merge pull request #32520 from YHNdnzj/sd-daemon-followupLuca Boccassi2024-04-271-17/+15
|\ | | | | sd-daemon: minor cleanup and follow-up
| * sd-daemon: downgrade log level for library code, use correct errnoMike Yuan2024-04-271-6/+6
| | | | | | | | Follow-up for 13b67b61b3b4a5356f5d1b29b51137b8e336aa55
| * sd-daemon: minor modernization, use assert_returnMike Yuan2024-04-271-11/+9
| |