summaryrefslogtreecommitdiffstats
path: root/units/systemd-oomd.service.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-02-21mkosi: Drop opensuse workaroundDaan De Meyer1-10/+0
2023-02-21mkosi: Drop bootctl workaround in postinst scriptDaan De Meyer1-4/+0
2023-02-21mkosi: Drop locale workaroundDaan De Meyer1-23/+0
mkosi will always run all commands with the C.UTF-8 locale so we don't need a workaround in the build script anymore.
2023-02-21mkosi: Drop ld workaroundDaan De Meyer1-12/+0
Build scripts will always run in an environment with /etc/ available now, so we don't need this workaround anymore.
2023-02-21mkosi: Update to latestDaan De Meyer1-1/+1
2023-02-21core/manager: falling back to execute generators without sandboxingYu Watanabe1-1/+14
When running in a container, like podman, docker or so, creating new mount namespace may be disabled. Fixes #26474. Fixes RHBZ#2165004 (https://bugzilla.redhat.com/show_bug.cgi?id=2165004).
2023-02-21update TODOLennart Poettering1-0/+11
2023-02-20man: add DefaultStartupMemoryLow= as term in term listSteve Ramage1-1/+1
2023-02-20meson: adjust whitespace handling in jinja2 renderingZbigniew Jędrzejewski-Szmek1-2/+5
In 6abe882bae1bb12827ef395c60f21ab8bb1bc61b the renderer was made to unconditionally append a newline to output. This works, but is ugly. A nicer solution is to tell jinja2 to not strip the newline in the first place, via keep_trailing_newline=True. It seems that the result is unchanged because all our source files have exactly one trailing newline. Also, enable lstrip_blocks=True. This would cause whitespace on the line before an {%if block to be automatically stripped. It seems reasonable to enable that if trim_blocks=True. Overall, no change is expected, though I didn't test combinations of configurations, so there might be a change in some cases. But now the rules of rendering are more logical, e.g. we should be able to indent nested conditional statements without getting unexpected whitespace in the output.
2023-02-20ukify: Set fast_load option when parsing PE filesDaan De Meyer1-2/+2
Let's skip parsing of some irrelevant information that we don't use to speed up building UKIs with large initrds from +-15s to less than 1s.
2023-02-20capability-util: use UINT32_MAX as shortcut where appropriateaLennart Poettering1-2/+2
2023-02-20capability-util: add macro for largest cap we're willing to acceptLennart Poettering3-10/+16
Let's hide the hard to grasp 62 behind a name.
2023-02-20capability-util: add CAP_MASK_ALL + CAP_MASK_UNSET macrosLennart Poettering5-23/+29
We should be more careful with distinguishing the cases "all bits set in caps mask" from "cap mask invalid". We so far mostly used UINT64_MAX for both, which is not correct though (as it would mean AmbientCapabilities=~0 followed by AmbientCapabilities=0) would result in capability 63 to be set (which we don't really allow, since that means unset).
2023-02-20cap-list: make sure never to accidentally return more than 63 capsLennart Poettering1-5/+7
The rest of our codebase stores caps masks in a uint64_t, and also assumes UINT64_MAX was a suitable value for "unset mask". Hence refuse any caps outside of 0…62. (right now the kernel knows 40 caps, hence 22 more to go before we have to reconsider our life's choices.)
2023-02-20cap-list: rework capability_set_to_string()Lennart Poettering1-22/+15
Let's use strextend_with_separator() and CAPABILITY_TO_STRING().
2023-02-20cap-list: add CAPABILITY_TO_STRING() macro using compound initialization to ↵Lennart Poettering3-1/+33
allocate fallback buffer Let's add a helper that can return a numeric string in case we don't recognize a name for a capability.
2023-02-20cap-list: refuse parsing numeric capability 63Lennart Poettering3-10/+11
We refuse it otherwise currently, simply because we cannot store it in a uint64_t caps mask value anymore while retaining the ability to use UINT64_MAX as "unset" marker. The check actually was in place already, just one off.
2023-02-20cap-list: modernize capability_set_from_string() a bitLennart Poettering3-19/+20
Make return parameter optional. And return whether there were any caps we didn't recognize via 0/1 return value.
2023-02-20cap-list: rename capability_set_to_string_alloc() → capability_set_to_string()Lennart Poettering6-10/+9
We typically don't use the _alloc() suffix anymore for anything, hence drop it here too.
2023-02-20TODO: add entry for time-based glob cleanupZbigniew Jędrzejewski-Szmek1-4/+3
2023-02-20man/tmpfiles.d: adjust the table in synopsis, improve spellingZbigniew Jędrzejewski-Szmek1-8/+8
r and R take globs, so let's name the argument appropriately in the tl;dr listing. Also, use 'clean-up' in the file name where it represents the verb "clean up", and other minor spelling adjustments.
2023-02-20shared/hwdb-util: drop "variable" with a single useZbigniew Jędrzejewski-Szmek1-3/+2
In 6a34639e76b8b59233a97533b13836d5a44e8d4a arg_hwdb_bin_dir was replaced by default_hwdb_bin_dir, which is constant. Generally we'd use a #define instead, but since there's just one use, let's just avoid the indirection altogether.
2023-02-20man: document DefaultStartupMemoryLow=Luca Boccassi1-1/+2
Fixes https://github.com/systemd/systemd/issues/26493
2023-02-20repart: Add ExcludeFiles= optionDaan De Meyer3-39/+126
2023-02-20efi/measure: adjust formattingZbigniew Jędrzejewski-Szmek1-2/+2
2023-02-20measure: wrap long lines and avoid one castZbigniew Jędrzejewski-Szmek1-11/+19
2023-02-20sleep: use shared constant for freeze timeoutZbigniew Jędrzejewski-Szmek2-2/+4
Let's keep all the timeout definitions in one place.
2023-02-20smack-util: Add renameat_and_apply_smack_floor_label()Daan De Meyer2-13/+19
Also add mac_smack_apply_at() as its a requirement for renameat_and_apply_smack_floor_label().
2023-02-20tmpfile-util-label: Add fopen_temporary_at_label()Daan De Meyer2-4/+10
2023-02-20copy: Add copy_file_at()Daan De Meyer2-8/+18
2023-02-20env-file: Add write_env_file_at()Daan De Meyer2-5/+10
2023-02-20udev-node: make stack_directory_read_one() accept NULL for devnodeYu Watanabe1-2/+11
No functional change, as currently the function is always called with non-NULL argument. Just a preparation for #26048 or #25839.
2023-02-20udev-node: drop unnecessary initializationYu Watanabe1-1/+1
The priority of device node symlink can be negative. So the initialization is confusing. Fortunately, this changes no functionality, as we only compare the priorities of symlinks only when we parsed at least one device node and its priority.
2023-02-20test: ignore missing coverage in TEST-78Frantisek Sumsal1-0/+2
gcov is incompatible with DynamicUser=true without additional tweaks, so let's ignore its complaints in this test, as working around it is not worth it (in this case).
2023-02-20test: disable pipefail when testing interactive firstbootFrantisek Sumsal1-0/+4
Otherwise we might get unexpected test fails due to SIGPIPE: ``` [ 14.334917] testsuite-74.sh[565]: + grep -q '^root:.*:0:0:.*:/bin/fooshell$' test-root/etc/passwd [ 14.335670] testsuite-74.sh[681]: + systemd-firstboot --root=test-root --prompt-root-shell [ 14.336382] testsuite-74.sh[680]: + echo -ne '\n/bin/barshell\n' [ 14.336980] testsuite-74.sh[680]: .//usr/lib/systemd/tests/testdata/units/testsuite-74.firstboot.sh: line 166: echo: write error: Broken pipe ```
2023-02-20core: permit sending augmented enable/disable methodsRonan Pigott1-0/+12
systemctl disable some.service fails to acquire interactive permission because the DisableUnitFilesWithFlagsAndInstallInto method isn't permitted
2023-02-19exec-util: use TAKE_FD()Yu Watanabe1-4/+2
2023-02-19exec-util: propagate error in wait_for_terminate_and_check()Yu Watanabe1-4/+5
Then, the two error handlings becomes consistent with the one in execute_directories().
2023-02-19process-util: show requested process name in the logYu Watanabe1-1/+1
This is useful for debugging issues like #26474.
2023-02-18systemctl: edit: fix double free of instanced nameRonan Pigott1-3/+3
There is a double free of unit_name when an instance is used, causing systemctl --user edit service@instance to abort.
2023-02-18journalctl: fix output when --lines is used with --grepMike Yuan2-2/+11
Previously, we skip the entries before arg_lines unconditionally, which doesn't behave correctly when used with --grep. After this commit, when a pattern is specified, we don't skip the entries early, but rely on the count of the lines shown to tell us when to stop. To achieve that we would have to search backwards instead. Fixes #25147
2023-02-18loop-util: fix error condition and return valueYu Watanabe1-2/+2
Fixes a bug introduced by da4fd28871227d23d4719e30da03af5a71f47e5a.
2023-02-18shared: move psi-util.[ch] to basic/ so that we can use it in sd-eventLennart Poettering4-1/+1
2023-02-18util: move mallinfo compat glue from selinux code into generic codeLennart Poettering2-21/+25
2023-02-17hashmap: fix build with valgrindYu Watanabe1-1/+1
Follow-up for a2b052b29f8bc141e94a4af95d1653a38a57eaeb.
2023-02-17Correct journal misspellWinterhuman1-1/+1
2023-02-17tests: add test for mempool logicLennart Poettering2-0/+94
2023-02-17mempool: rework mempool_cleanup() to only release freed tilesLennart Poettering4-12/+92
This substantially reworks mempool_cleanup() so that it releases pools with all freed tiles only, but keeps all pools with still-allocated tiles around. This is more correct, as the previous implementation just released all pools regardless if anything was still used or not. This would make valgrind shut up but would just hide memory leaks altogether. Moreover if called during regular runtime of a program would result in bad memory accesses all over. Hence, let's add a proper implementation and only trim pools we really know are empty. This way we can safely call these functions later, when under memory pressure, at any time.
2023-02-17mempool: make mempool_free_tile() return NULLLennart Poettering2-3/+10
To match how we usually do this current allocation code. (Also, make it accept a NULL pointer, also in order to match behaviour in the rest of our codebase)
2023-02-17mempool: introduce new helper pool_ptr()Lennart Poettering1-1/+5
This new helper returns the beginning of the usable area of the pool object. For now this is only used once, a later commit will use it more.