mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
31 lines
637 B
Plaintext
31 lines
637 B
Plaintext
# 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} = /{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-discard-ns
|
|
profile snap-discard-ns @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability setgid,
|
|
capability sys_admin,
|
|
|
|
network netlink raw,
|
|
|
|
umount @{run}/snapd/ns/*.mnt,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/ r,
|
|
@{run}/ r,
|
|
@{run}/snapd/ r,
|
|
@{run}/snapd/lock/ r,
|
|
@{run}/snapd/lock/*.lock rwk,
|
|
@{run}/snapd/ns/ r,
|
|
@{run}/snapd/ns/* rw,
|
|
|
|
include if exists <local/snap-discard-ns>
|
|
} |