AppArmor profile per binary path with install hint; verified network examples

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 22:08:37 +02:00
co-authored by Claude Sonnet 5.5
parent 530582e826
commit c3ebf21e9c
11 changed files with 133 additions and 7 deletions
+5
View File
@@ -18,6 +18,11 @@ public:
int run();
// AppArmor profile (text) that lets this very binary use user namespaces on Ubuntu 24.04+.
static std::string apparmorProfile();
// Shell command that installs it; shown when a start fails because of AppArmor.
static std::string apparmorInstallHint();
private:
int start(FileLock& lock);
int watch(pid_t child, Cgroup* cgroup);