Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to disable NoNewPrivileges & co. overrides #873

Open
WRMSRwasTaken opened this issue Jul 21, 2024 · 0 comments
Open

Ability to disable NoNewPrivileges & co. overrides #873

WRMSRwasTaken opened this issue Jul 21, 2024 · 0 comments

Comments

@WRMSRwasTaken
Copy link

WRMSRwasTaken commented Jul 21, 2024

I've noticed due to #561 and previous commits in this discussion, my systems set NoNewPrivileges=no.

However, running Arch Linux with the hardened kernel 6.8.9-hardened1-1-hardened(linux-hardened) with Incus 6.3, modifying the generator still works for me with unprivileged containers:

# /run/systemd/system/service.d/zzz-lxc-service.conf
[Service]
ProtectControlGroups=yes
ProtectKernelTunables=yes
NoNewPrivileges=yes

The only problem option I can't set to true due to the hardened kernel is PrivateUsers which will result in the following error:

Failed to set up user namespacing: Operation not permitted
Failed at step USER spawning /foo: Operation not permitted

So the question is: Is there a way to disable the drop in for those security options and allow users to opt-in (possibly requiring trial-and-error) without having to delete the /etc/systemd/system-generators/lxc file on every new container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant