Skip to content

Add note about AppArmor restricting unprivileged namespaces in Ubuntu 24.04 to README #198

@BolunThompson

Description

@BolunThompson

Commit 18a365c addressed this in CI, but it took a couple minutes to find the (arguably insecure) fix myself, so it would be convenient to mention this in the docs. Here’s the original bug report I wrote on this:

Starting in Ubuntu 23.10, AppArmor prevents unprivileged applications without a profile from creating namespaces.

This causes ./configure to fail with “try needs unshare to work, but could not run unshare.”

The easy solution is to run sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 to disable the apparmor restriction. Another solution would be to provide a PPA or a .deb installable that sets up the apparmor profile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions