systemd-generator: some more exceptions #950
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
this pull-request is a work in progress. Feel free to comment, and overtake it or discard it after a week without activity.
It adds some more systemd exceptions in the
lxc.generatorscript for the program nullmailer in Debian 13 Trixie.I think I tested with a pretty standard configuration, both in privileged and unprivileged containers , except for
lxc.apparmor.profilewhere thegeneratedsetting fails with unprivileged containers (even with/usr/sbin/apparmor_parserin the$PATH):I am still studying the reason of the
if is_lxc_privileged_container...at line 102-104 because unprivileged containers also need those configurations and I tend to replace it with aif true; then(hoping it doesn't decrease security too much...)And, for reference, here is the (heavily sandboxed) nullmailer's systemd service file on Debian 13: