Skip to content

Commit

Permalink
feat(profile): add snapd-apparmor
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Nov 22, 2023
1 parent c62b459 commit a49d839
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions apparmor.d/profiles-s-z/snapd-apparmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/3.0>,

include <tunables/global>

@{lib_dirs} = @{lib}/ /snap/snapd/@{int}@{lib}

@{exec_path} = @{lib_dirs}/snapd/snapd-apparmor
profile snapd-apparmor @{exec_path} {
include <abstractions/base>

@{exec_path} mrix,

@{bin}/systemd-detect-virt rPx,
@{lib_dirs}/snapd/apparmor_parser rPx,

@{lib_dirs}/snapd/info r,

/var/lib/snapd/apparmor/profiles/ r,


@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,

include if exists <local/snapd-apparmor>
}
4 changes: 4 additions & 0 deletions dists/flags/main.flags
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,16 @@ sddm attach_disconnected,mediate_deleted,complain
sftp-server complain
slirp4netns attach_disconnected,complain
snap complain
snap-bootstrap complain
snap-device-helper complain
snap-discard-ns complain
snap-failure complain
snap-repair complain
snap-seccomp complain
snap-update-ns complain
snapd complain
snapd-apparmor complain
snapd-core-fixup complain
spice-vdagent complain
spice-vdagentd attach_disconnected,complain
ssh complain
Expand Down

0 comments on commit a49d839

Please sign in to comment.