feat(profiles): initial snap support.

This commit is contained in:
Alexandre Pujol 2022-07-21 22:40:06 +01:00
parent 177d27d94c
commit 7aca29b244
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
8 changed files with 297 additions and 0 deletions

View file

@ -1,22 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/snapd/snap-device-helper
profile snap-device-helper @{exec_path} {
include <abstractions/base>
capability bpf,
capability setgid,
capability sys_resource,
@{exec_path} mr,
@{sys}/fs/bpf/snap/ w,
include if exists <local/snap-device-helper>
}