Skip to content

Instantly share code, notes, and snippets.

@Faugus
Last active October 1, 2024 00:33
Show Gist options
  • Save Faugus/8d3caa3ce93eb1ff90409f3c3dbabe0f to your computer and use it in GitHub Desktop.
Save Faugus/8d3caa3ce93eb1ff90409f3c3dbabe0f to your computer and use it in GitHub Desktop.

Create the bwrap file:

sudo tee /etc/apparmor.d/bwrap > /dev/null <<EOF
abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}
EOF

Restart the AppArmor service:

sudo systemctl reload apparmor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment