mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
41 lines
972 B
Plaintext
41 lines
972 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-update-ns
|
|
profile snap-update-ns @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability dac_override,
|
|
capability sys_admin,
|
|
capability sys_chroot,
|
|
|
|
mount -> /snap/**/,
|
|
mount -> /usr/**/,
|
|
mount /snap/**/ -> /tmp/.snap/**,
|
|
umount /snap/**/,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/var/lib/snapd/mount/{,*} r,
|
|
|
|
/snap/{,**} rw,
|
|
/tmp/.snap/{,**} rwk,
|
|
|
|
@{run}/snapd/lock/*.lock rwk,
|
|
@{run}/snapd/ns/{,**} rw,
|
|
|
|
@{sys}/fs/cgroup/{,**/} r,
|
|
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/snap*.service/cgroup.freeze rw,
|
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
|
|
|
@{PROC}/@{pids}/cgroup r,
|
|
@{PROC}/cmdline r,
|
|
@{PROC}/version r,
|
|
|
|
include if exists <local/snap-update-ns>
|
|
} |