summaryrefslogtreecommitdiffstats
path: root/src/sysv-generator (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-09-04core/namespace: make bind mounted journal sockets nosuid + noexec + nodevMike Yuan2-3/+9
Addresses https://github.com/systemd/systemd/pull/32487#discussion_r1743464797
2024-09-04core/exec-invoke: use bind_mount_add() where appropriateMike Yuan1-17/+3
2024-09-04core/namespace: use GREEDY_REALLOC at one more placeMike Yuan1-6/+2
2024-09-04core/unit: introduce unit_set_debug_invocation()Mike Yuan3-25/+29
Given that debug_invocation is a Unit thing, make service_set_debug_invocation() generic. Plus, don't say "Service failed", as it would be spurious when Restart=always.
2024-09-04core: add missing serialization for Unit.debug_invocationMike Yuan1-0/+5
Follow-up for 7d8bbfbe0852ec89590d1dc5e28afc95d6d44fa1
2024-09-04core/service: modernize service_load_pid_file() a bitMike Yuan1-19/+14
2024-09-04core/service: minor coding style tweakMike Yuan1-4/+2
2024-09-04network: Add support for mq qdiscDaan De Meyer10-0/+57
2024-09-04network: Add support for multiq qdiscDaan De Meyer10-0/+69
2024-09-04build(deps): bump softprops/action-gh-release from 2.0.5 to 2.0.8dependabot[bot]1-1/+1
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.5 to 2.0.8. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/69320dbe05506a9a39fc8ae11030b214ec2d1f87...c062e08bd532815e2082a85e87e3ef29c3e6d191) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-09-04build(deps): bump super-linter/super-linter from 6.6.0 to 7.1.0dependabot[bot]1-1/+1
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 6.6.0 to 7.1.0. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](https://github.com/super-linter/super-linter/compare/88ea3923a7e1f89dd485d079f6eb5f5e8f937589...b92721f792f381cedc002ecdbb9847a15ece5bb8) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03TEST-50-DISSECT: add explicit coverage for BindJournalSockets=Mike Yuan2-0/+8
2024-09-03test: drop unneeded journal socket bind mountsMike Yuan2-56/+3
(where BindJournalSockets=yes is implied)
2024-09-03portable/profile: use BindJournalSockets=Mike Yuan3-3/+3
2024-09-03core/namespace: create /dev/log only if journal socket is presentMike Yuan1-6/+11
2024-09-03core: introduce BindJournalSockets=Mike Yuan11-10/+110
Closes #32478
2024-09-03build(deps): bump systemd/mkosidependabot[bot]1-1/+1
Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 8c2f828701a1bdb3dc9b80d6f2ab979f0430a6b8 to 31b4e756c1484c302435653da5d3b9bdfae38518. - [Release notes](https://github.com/systemd/mkosi/releases) - [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md) - [Commits](https://github.com/systemd/mkosi/compare/8c2f828701a1bdb3dc9b80d6f2ab979f0430a6b8...31b4e756c1484c302435653da5d3b9bdfae38518) --- updated-dependencies: - dependency-name: systemd/mkosi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03mkosi: Use apt patterns to install dependencies on Debian/UbuntuDaan De Meyer1-7/+20
Instead of parsing the human readable output of apt-cache, let's use apt patterns to figure out the dependencies. We also filter out virtual packages as apt will fail and say we need to install an implementation of the virtual package even if a package that provides the virtual package is already installed.
2024-09-03mkosi: Make systemd package filtering more robustDaan De Meyer4-8/+13
Let's not just filter everything with systemd in the name, but instead use the same list of volatile packages that we install to do the filtering.
2024-09-03json-util: Add JSON_BUILD_PAIR_UNSIGNED_NOT_EQUAL()Daan De Meyer2-3/+7
2024-09-03json-util: Add JSON_BUILD_TRISTATE() and friendsDaan De Meyer2-0/+64
2024-09-03json-util: Add JSON_BUILD_PAIR_BASE64_NON_EMPTY() and friendsDaan De Meyer2-0/+44
2024-09-03json-util: Add JSON_BUILD_PAIR_BYTE_ARRAY_NON_EMPTY()Daan De Meyer2-0/+32
2024-09-03json-util: Add JSON_BUILD_PAIR_INTEGER_NON_NEGATIVE()Daan De Meyer2-2/+13
2024-09-03json-util: Add JSON_BUILD_PAIR_INTEGER_NON_ZERO()Daan De Meyer2-0/+30
2024-09-03json-util: Add JSON_BUILD_PAIR_CALLBACK_NON_NULL()Daan De Meyer3-0/+48
Like JSON_BUILD_PAIR_CALLBACK(), but doesn't add anything to the variant if the callback doesn't put anything in the return argument.
2024-09-03json-util: Add JSON_BUILD_PAIR_DUAL_TIMESTAMP_NON_NULL()Daan De Meyer2-0/+32
2024-09-03json-util: Add JSON_BUILD_PAIR_DUAL_TIMESTAMP()Daan De Meyer1-0/+1
2024-09-03json-util: Add JSON_BUILD_RATELIMIT()Daan De Meyer2-0/+69
2024-09-03json-util: Add JSON_BUILD_STRING_ORDERED_SET()Daan De Meyer3-0/+54
2024-09-03repart: Add compression supportDaan De Meyer8-38/+177
Now that mkfs.btrfs is adding support for compressing the generated filesystem (https://github.com/kdave/btrfs-progs/pull/882), let's add general support for specifying the compression algorithm and compression level to use. We opt to not parse the specified compression algorithm and instead pass it on as is to the mkfs tool. This has a few benefits: - We support every compression algorithm supported by every tool automatically. - Users don't need to modify systemd-repart if a mkfs tool learns a new compression algorithm in the future - We don't need to maintain a bunch of tables for filesystem to map from our generic compression algorithm enum to the filesystem specific names. We don't add support for btrfs just yet until the corresponding PR in btrfs-progs is merged.
2024-09-03TEST-58-REPART: Only skip part of testcase_minimize() that requires rootDaan De Meyer1-5/+5
2024-09-03TEST-58-REPART: Always run TEST-58-REPART in virtual machineDaan De Meyer1-0/+1
Required for various tests in TEST-58-REPART.
2024-09-03mkosi: Don't create sanitizer wrappers for every mkfs binaryDaan De Meyer1-5/+0
mksquashfs for some reason ends up in nss_systemd and mkfs.btrfs links against libudev. The others don't need a sanitizer wrapper script.
2024-09-03resolve: fix typoYu Watanabe1-1/+1
Follow-up for 67d0ce8843d612a2245d0966197d4f528b911b66.
2024-09-03resolved: include Varlink error on inconsistent DNS-SD services in ↵Lennart Poettering5-3/+11
introspection data Let's also rename the error slightly, since what happens here is that a a valid service RR name is CNAME'd onto an invalid one. That's an inconsistency on the server side, which we really should report as such. Follow-up for: b48ab08732a76b7337628e1e716f11c687000903
2024-09-03pretty-print: introduce WITH_BUFFERED_STDERR macro to enable bufferingYu Watanabe3-20/+32
Then, the buffer will be flushed and buffering will be disabled on exiting from the scope.
2024-09-03pretty-print: rename {draw,clear}_progress_bar_unbuffered() -> ↵Yu Watanabe3-13/+13
{draw,clear}_progress_bar_impl() Addresses https://github.com/systemd/systemd/pull/34205#discussion_r1739648525. Follow-ups for 5f9dd9c64d20e7cdf8b509421e28cfebf31b7c32.
2024-09-02test: don't install Python scripts from systemd-test RPMFrantisek Sumsal1-1/+1
The original regex didn't cover the `run-unit-tests.py` script that made the old framework pull in Python into the test image, which in turn allowed the new TEST-69-SHUTDOWN Python script to get executed in the old framework's image, causing unexpected fails with latest Python on Rawhide.
2024-09-02sysupdated: Improve logging about jobsAdrian Vovk1-10/+21
If someone runs `updatectl update`, sysupdate will be running multiple update jobs at the same time, which can make reasoning about the output in the journal quite difficult. Especially if things go wrong: the error messages didn't mention which job failed. Nor was there any link between job ID and the PID of the worker process logging to the journal. This is all fixed here!
2024-09-02sysupdated: Cleanup handling of notificationsAdrian Vovk1-32/+21
Cuts out some `strdup`s, and also avoids a rather weird case of donating memory to a function. Basically just duplicates the solution I just implemented for sysupdate's callout handler.
2024-09-02sysupdate: Don't ignore callout binary failureAdrian Vovk1-18/+40
Previously, if the callout binary (i.e. sd-pull, sd-import) failed gracefully, we'd return its exit status from the event loop and thus from run_callout(). Of course, exit status is a positive number in the event of failure. Which means that we completely ignore the callout binary failing, and instead continue using whatever it managed to download before failing. This is bad for obvious reasons, not the least of which is installing a half-downloaded OS. This also means that we would completely ignore failed signature checks 😬️
2024-09-02portable: ensure PORTABLE_FORCE_ATTACH works even when there is a leftover unitLuca Boccassi2-6/+59
Force means force, we skip checks with PID1 for existing units, but then bail out with EEXIST if the files are actually there. Overwrite everything instead.
2024-09-02efi: add file_handle_read() helper that reads from a file handleLennart Poettering2-10/+26
2024-09-02efi: return pointer to processed string in strtolower8()/strtolower16()Lennart Poettering2-8/+9
2024-09-02networkd: Replace existing objects instead of doing nothing if they existDaan De Meyer2-3/+14
Currently, if for example a traffic control object already exist, networkd will silently do nothing, even if the settings in the network file for the traffic control object have changed. Let's instead replace the object if it already exists so that new settings from the network file are applied as expected. Fixes #31226
2024-09-02network/tclass: do not save tclass to Link before it is configuredYu Watanabe3-48/+58
Otherwise, if the same kind of tclass is already assigned, parameters configured in .network file will not be used. So, let's first copy the tclass and put it on Request, then on success generate a new copy based on the netlink notification and store it to Link. This is the same as 0a0c2672dbd22dc85d660e5baa7e1bef701beb88, 65f5f581568448d6098358b704cae10a656d09f0, and friends, but for tclass.
2024-09-02network/qdisc: do not save qdisc to Link before it is configuredYu Watanabe3-54/+65
Otherwise, if the same kind of qdisc is already assigned, parameters configured in .network file will not be used. So, let's first copy the qdisc and put it on Request, then on success generate a new copy based on the netlink notification and store it to Link. This is the same as 0a0c2672dbd22dc85d660e5baa7e1bef701beb88, 65f5f581568448d6098358b704cae10a656d09f0, and friends, but for qdisc. Preparation for fixing #31226.
2024-09-02network/tclass: make tclass_drop() staticYu Watanabe2-5/+2
This also drops unused constant return value.
2024-09-02network/qdisc: make qdisc_drop() staticYu Watanabe2-4/+1
This also drops unused constant return value.