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

deb: Apparmor profile for Ubuntu 23.10+ restricted unpriv userns #2275

Closed
dtrudg opened this issue Oct 19, 2023 · 3 comments · Fixed by #2852
Closed

deb: Apparmor profile for Ubuntu 23.10+ restricted unpriv userns #2275

dtrudg opened this issue Oct 19, 2023 · 3 comments · Fixed by #2852
Assignees
Labels
enhancement New feature or request

Comments

@dtrudg
Copy link
Member

dtrudg commented Oct 19, 2023

https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces

As detailed in the article above, Ubuntu 23.10 introduces restrictions on unpriv userns creation, via apparmor. The restrictions are off by default for now. However, they will be on by default at a later date via updates. This will probably apply to the next LTS - 24.04.

We need to ensure that we ship / document an apparmor profile suitable for the different execution modes of SingularityCE. Some of which rely on unpriv userns creation.

@dtrudg dtrudg added the enhancement New feature or request label Oct 19, 2023
@dtrudg dtrudg added this to the SingularityCE 4.1.0 milestone Oct 19, 2023
@dtrudg dtrudg self-assigned this Oct 19, 2023
@dtrudg
Copy link
Member Author

dtrudg commented Jan 10, 2024

Still disabled by default in 23.10, and I can't find anything definitive about 24.04.

Let's deal with this in final packaging tweakes during the RC period, or a patch release, since it is not related to Singularity's code.

@dtrudg
Copy link
Member Author

dtrudg commented Jan 23, 2024

It's being tracked here...

https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2046477

Will have a look today / tomorrow... but if anything non-obvious is met we'll defer to a patch release.

A lilttle bit challenging as it needs to have Ubuntu & version specific addition of a profile from our deb package, so we aren't installing the profile on apparmor systems that don't support it.

@dtrudg
Copy link
Member Author

dtrudg commented Jan 23, 2024

This is going to move to the 4.1.1 milestone.

Needs a bit more thought... do we add the apparmor profile install to make install (which would then ignore --prefix)? Do we add it just to Deb packages built on specific distros?

I haven't seen any guidance for what packages that aren't in Ubuntu core repos should do. Those that are have had their profiles added into the apparmor package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant