summaryrefslogtreecommitdiffstats
path: root/mkosi.build (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-01-08alloc-util: Disallow inlining of expand_to_usableSiddhesh Poyarekar2-3/+5
Explicitly set __attribute__ ((noinline)) so that the compiler does not attempt to inline expand_to_usable, even with LTO.
2023-01-07oss-fuzz: include generated corpora in the final zip fileFrantisek Sumsal1-1/+4
Since the files with generated directives are now automatically generated during build, they're now under the respective build directory which the current oss-fuzz CI script didn't account for. Follow-up to: #24958 Resolves: #25859
2023-01-06man: improve docs about systemd-notify invocations and NotifyAccess= settingsLennart Poettering1-22/+37
Fixes: #24516
2023-01-06build(deps): bump stefanbuck/github-issue-parser from 2.0.4 to 3.0.1dependabot[bot]1-1/+1
Bumps [stefanbuck/github-issue-parser](https://github.com/stefanbuck/github-issue-parser) from 2.0.4 to 3.0.1. - [Release notes](https://github.com/stefanbuck/github-issue-parser/releases) - [Commits](https://github.com/stefanbuck/github-issue-parser/compare/f80b14f78892a66d7a35bba44f0a7d63bee03602...c1a559d78bfb8dd05216dab9ffd2b91082ff5324) --- updated-dependencies: - dependency-name: stefanbuck/github-issue-parser dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06build(deps): bump ossf/scorecard-action from 2.0.6 to 2.1.2dependabot[bot]1-1/+1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.0.6 to 2.1.2. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/99c53751e09b9529366343771cc321ec74e9bd3d...e38b1902ae4f44df626f11ba0734b14fb91f8f86) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06build(deps): bump github/super-linter from 4.9.6 to 4.9.7dependabot[bot]1-1/+1
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.9.6 to 4.9.7. - [Release notes](https://github.com/github/super-linter/releases) - [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md) - [Commits](https://github.com/github/super-linter/compare/01d3218744765b55c3b5ffbb27e50961e50c33c5...bb2d833b08b6c288608686672b93a8a4589cdc49) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06build(deps): bump actions/checkout from 3.0.2 to 3.2.0dependabot[bot]10-10/+10
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.0.2...755da8c3cf115ac066823e79a1e1788f8940201b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06build(deps): bump meson from 0.64.1 to 1.0.0 in /.github/workflowsdependabot[bot]1-3/+3
Bumps [meson](https://github.com/mesonbuild/meson) from 0.64.1 to 1.0.0. - [Release notes](https://github.com/mesonbuild/meson/releases) - [Commits](https://github.com/mesonbuild/meson/compare/0.64.1...1.0.0) --- updated-dependencies: - dependency-name: meson dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06load-fragment: config_parse_emergency_action() doesn't ever get a Manager ↵Lennart Poettering2-6/+7
pointer passed in In 'data' we get the location passed in we write stuff, and that's not the Manager object. And we neither get the Manager passed in via 'userdata', because at the time we parse the emergency action for the manager the Manager is not actually allocated yet. hence, let's fix this differently, and pass in the user/system mode descriptor via the 'ltype' argument. Fixes: #25933
2023-01-06load-fragment: remove EmergencyAction compat we were supposed to remove back ↵Lennart Poettering1-10/+0
in v241
2023-01-06update TODOLennart Poettering1-0/+3
2023-01-06update TODOLennart Poettering1-0/+5
2023-01-06journald: fix followup comments on regex featureQuentin Deslandes4-10/+10
Fix followup comments on PR #24058: - Use `mempcpy_safe()`. - Remove unused `pcre2_code` variable. - Use `static const` when relevant.
2023-01-06nspawn: guard acl_free() with a NULL checkLennart Poettering1-1/+3
Inspired by #25957 there's one other place where we don't guard acl_free() calls with a NULL check. Fix that.
2023-01-06tmpfiles: avoid null free() for acl attributesSam James1-2/+5
When built with ACL support, we might be processing a tmpfiles entry where there's no cause for us to call parse_acls_from_arg, then we get to the end of parse_line without having ever populated i.{acl_access, acl_default}. Then we pass a null pointer into acl_free(). From UBSAN w/ GCC 13.0.0_pre20230101: ``` $ systemd-tmpfiles --clean /var/tmp/portage/sys-apps/acl-2.3.1-r1/work/acl-2.3.1/libacl/acl_free.c:44:14: runtime error: applying non-zero offset 18446744073709551608 to null pointer #0 0x7f65d868b482 in acl_free /var/tmp/portage/sys-apps/acl-2.3.1-r1/work/acl-2.3.1/libacl/acl_free.c:44 #1 0x55fe7e592249 in item_free_contents ../systemd-9999/src/tmpfiles/tmpfiles.c:2855 #2 0x55fe7e5a347a in parse_line ../systemd-9999/src/tmpfiles/tmpfiles.c:3158 #3 0x55fe7e5a347a in read_config_file ../systemd-9999/src/tmpfiles/tmpfiles.c:3897 #4 0x55fe7e590c61 in read_config_files ../systemd-9999/src/tmpfiles/tmpfiles.c:3985 #5 0x55fe7e590c61 in run ../systemd-9999/src/tmpfiles/tmpfiles.c:4157 #6 0x55fe7e590c61 in main ../systemd-9999/src/tmpfiles/tmpfiles.c:4218 #7 0x7f65d7ebe289 (/usr/lib64/libc.so.6+0x23289) #8 0x7f65d7ebe344 in __libc_start_main (/usr/lib64/libc.so.6+0x23344) #9 0x55fe7e591900 in _start (/usr/bin/systemd-tmpfiles+0x11900) ```
2023-01-06man: document explicitly that LogRateLimit= has no effect on ↵Lennart Poettering1-10/+15
StandardOutput=file:… Fixes: #25951
2023-01-06gpt-auto-generator: improve log messages a bitLennart Poettering1-2/+2
Fixes: #20331
2023-01-06CODING_STYLE: fix 'better' typoSam James1-1/+1
2023-01-06pid1: rework service_arm_timer() to optionally take a relative time valueLennart Poettering1-12/+12
In most cases this is actually what we want, hence simplify this case.
2023-01-06sd-event: don't mistake USEC_INFINITY passed in for overflowLennart Poettering1-0/+3
Let's pass USEC_INFINITY from sd_event_source_set_time_relative() to sd_event_source_set_time() instead of raising EOVERFLOW. We should raise EOVERFLOW only if your addition fails, but not if the input already is USEC_INFINITY, since it's an entirely valid operation to have an infinite time-out, and we should support that.
2023-01-06bootctl: Fix NULL pointer dereferenceJan Janssen1-3/+5
Fixes: #25952
2023-01-06bootspec: show default/selected entry info in JSON outputLennart Poettering1-1/+4
Fixes: #25889
2023-01-06resolved: disable SO_BINDTOIFINDEX hack for localhost IP addressesLennart Poettering1-1/+2
Fixes: #23010
2023-01-05Update TODOLuca Boccassi1-11/+1
2023-01-05creds: import 'vmm.notify_socket' and use it to setLuca Boccassi3-1/+55
This is intended to be used with VSOCK, to notify the hypervisor/VMM, eg on the host: qemu <...> -smbios type=11,value=io.systemd.credential:vmm.notify_socket=vsock:2:1234 -device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=42 (vsock:2:1234 -> send to host on vsock port 1234, default is to send to 0 which is the hypervisor itself) Also on the host: $ socat - VSOCK-LISTEN:1234,socktype=5 READY=1 STATUS=Ready.
2023-01-05sd_notify: support AF_VSOCKLuca Boccassi2-14/+80
Allow sending notifications via AF_VSOCK, so that VMs can communicate to the hypervisor/VMM that they are finished booting. Note that if the hypervisor does not support SOCK_DGRAM over AF_VSOCK (ie: qemu at the time of writing), SOCK_SEQPACKET will be used instead.
2023-01-05hwdb: Add Dell models that require ACCEL_LOCATION=baseDirk Su1-0/+2
2023-01-05kernel-install: run depmod only if writeableLudwig Nussel1-0/+2
2023-01-05virt: fix container detectionBenjamin Tissoires1-1/+1
Commit 1b86c7c59ecc ("virt: make virtualization enum a named type") made the conversion from `if (!r)` to `if (v != VIRTUALIZATION_NONE)`. However, the initial test was meaning "if r is null", IOW "if r IS `VIRTUALIZATION_NONE`). The test is wrong and this can lead to false detection of the container environment (when calling `systemctl exit`). For example, https://gitlab.freedesktop.org/whot/libevdev/-/jobs/34207974 is calling `systemctl exit 0`, and systemd terminates with the exit code `130`. Fixing that typo makes `systemctl exit 0` returns `0`. Fixes: 1b86c7c59ecc26efdf278f5c1c4430346021cd38.
2023-01-05bootctl: print entry token as wellLudwig Nussel4-92/+98
2023-01-05units: condition systemd-networkd-wait-online.service like ↵Lennart Poettering1-0/+1
systemd-networkd.service This adds the same condition that systemd-networkd.service already carries also to systemd-networkd-wait-online.service. Otherwise we'll potentially see some logs we'd rather not see about a service we BindTo= not running. Or in other words, if service X binds to Y then X should be at least as conditioned as Y.
2023-01-05dns-domain: dns_name_is_empty() is redundantLennart Poettering4-8/+3
dns_name_is_empty() was added later, but does the same thing as the more accurately called dns_name_is_root(), hence drop the former.
2023-01-05resolvectl: remove duplicate ':' from outputLennart Poettering1-3/+3
The second argument to dump_list() actually ends up in a TABLE_FIELD cell now, where we implicitly append a ":". Hence drop it from the strings. Follow-up for: 37a50123fac050c7ccde4afcf3f37ee77aad012c
2023-01-05update TODOLennart Poettering1-1/+0
2023-01-05resolved: read DNS conf also from creds and kernel cmdlineLennart Poettering5-4/+164
Note that this drops ProtectProc=invisible from systemd-resolved.service. This is done because othewise access to the booted "kernel" command line is not necessarily available. That's because in containers we want to read /proc/1/cmdline for that. Fixes: #24103
2023-01-05src/shared/: split AF_UNIX/AF_VSOCK address parsing into src/basic/Luca Boccassi3-102/+130
We'll use it from libsystemd0 later, but AF_INET/6 requires some netlink calls and thus the additional library dependency
2023-01-05vconsole: permit configuration of vconsole settings via credentialsLennart Poettering9-4/+210
2023-01-05update TODOLennart Poettering1-0/+3
2023-01-05systemctl: enable: overwrite broken alias symlinksMike Yuan1-1/+9
When switching to an alternative alias provider, the previous one might have been uninstalled or so. It should be fine for us to overwrite them directly. Closes #23694
2023-01-05systemctl: edit: rephrase edit markers to avoid misunderstandingMike Yuan1-2/+2
Closes #25856
2023-01-04udev: Fix some tablet pads being classified as mouse or joysticksJoshua Goins1-1/+15
2023-01-04man: note that DynamicUser=yes is incompatible with D-BusLuca Boccassi1-1/+3
Due to policy checks against system users this cannot currently work, and it is non-obvious. In the future it might be implemented if support is added to dbus-broker/dbus-daemon, e.g.: https://github.com/bus1/dbus-broker/issues/259
2023-01-04resolvectl: don't filter loopback DNS server from global DNS server listLennart Poettering1-15/+15
"resolvectl status" shows per-link DNS servers separately from global ones. When querying the global list, it will contain both per-link and global servers however. Thus, to not show duplicate info we filter all entries that actually have a non-zero ifindex set (under the assumption that that's a per-link server). This doesn't work if people configured 127.0.0.1 as global server though, as we'll add ifindex 1 to it since 6e32414a66ff8dbcef233981a7066684d903ee9f unconditionally even for global servers. Let's address that by excluding entries with ifindex 1 from suppression. This is safe as resolved ignores loopback ifaces, hence never will have per-link servers on ifindex 1. Note that this splits up the "with_ifindex" parameter into a second parameter "only_global", since they semantically do two different things. One controls whether we shall expect/parse an ifindex dbus field. The other controls whether we shall filter all ifindex values set != 0. These are effectively always used in conjunction hence making them the same actually worked. However this is utterly confusing I think, which as I guess is resulting in the confusion around #25796 (which removes the whole check) Replaces: #25796
2023-01-04resolved: add some line-breaks/commentsLennart Poettering2-7/+25
Let's make this a bit more readable.
2023-01-04resolvectl: fix type of ifindex D-Bus field, and make sure to initialize to ↵Lennart Poettering1-1/+2
zero in all code paths
2023-01-04bootctl: split out setting of system token into function of its ownLennart Poettering1-62/+69
Let's break a huge function in two. No code change, just some refactoring.
2023-01-04units: rename/rework systemd-boot-system-token.service → ↵Lennart Poettering10-93/+120
systemd-boot-random-seed.service This renames systemd-boot-system-token.service to systemd-boot-random-seed.service and conditions it less strictly. Previously, the job of the service was to write a "system token" EFI variable if it was missing. It called "bootctl --graceful random-seed" for that. With this change we condition it more liberally: instead of calling it only when the "system token" EFI variable isn't set, we call it whenever a boot loader interface compatible boot loader is used. This means, previously it was invoked on the first boot only: now it is invoked at every boot. This doesn#t change the command that is invoked. That's because previously already the "bootctl --graceful random-seed" did two things: set the system token if not set yet *and* refresh the random seed in the ESP. Previousy we put the focus on the former, now we shift the focus to the latter. With this simple change we can replace the logic f913c784ad4c93894fd6cb2590738113dff5a694 added, but from a service that can run much later and doesn't keep the ESP pinned.
2023-01-04bootctl: downgrade graceful messages to LOG_NOTICELennart Poettering2-2/+2
2023-01-04random-seed: don't refresh EFI random seed from random-seed.c anymoreLennart Poettering1-109/+2
The ESP is simply not mounted early enough for this. We want that the regular random seed handling runs as early as we possibly could, but we don't want to delay this until the ESP is actually mounted. Hence, let's remove this from random-seed.c here. A follow-up commit will then add this back in, in a separate service which just calls "bootctl random-seed". Effectively reverts: f913c784ad4c93894fd6cb2590738113dff5a694 Fixes: #25769
2023-01-04sha256: add helper than hashes a buffer *and* its sizeLennart Poettering3-12/+11
We use this pattern all the time in order to thward extension attacks, add a helper to make it shorter.