Documentation
¶
Overview ¶
Package apparmor exposes the shipped AppArmor profile as an embedded byte slice so the `by admin install-apparmor` CLI subcommand can drop it on operators' disks without requiring network access.
The profile grants the `userns` permission narrowly to blockyard and its subprocesses so rootless bwrap can create its sandbox user namespace on hosts where `kernel.apparmor_restrict_unprivileged_userns=1` (Ubuntu 23.10+ default). Operators load it with `sudo apparmor_parser -r /etc/apparmor.d/blockyard`.
Index ¶
Constants ¶
const DefaultInstallPath = "/etc/apparmor.d/blockyard"
DefaultInstallPath is where `apparmor_parser -r` expects the profile on Ubuntu/Debian systems.
Variables ¶
var Profile []byte
Profile is the shipped AppArmor profile source. Embedded as bytes so the CLI can write it to disk; operators load it with `apparmor_parser -r`.
Functions ¶
This section is empty.
Types ¶
This section is empty.