feat(profiles): add ubuntu specific profiles.

This commit is contained in:
Alexandre Pujol 2022-05-21 17:07:37 +01:00
parent 4c7ebb3a39
commit 59ba69a167
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 287 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# 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/,}bin/ubuntu-report
profile ubuntu-report @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/{usr/,}bin/dpkg rPx,
owner @{user_cache_dirs}/ubuntu-report/{,*} r,
@{run}/systemd/resolve/stub-resolv.conf r,
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
include if exists <local/ubuntu-report>
}