feat(profiles): initial snap support.
This commit is contained in:
parent
177d27d94c
commit
7aca29b244
8 changed files with 297 additions and 0 deletions
|
|
@ -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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue