feat(profiles): apply guideline on some profile. Update flags list.

This commit is contained in:
Alexandre Pujol 2023-08-27 15:30:18 +01:00
parent 7a5096e7d8
commit 22e57b3620
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 74 additions and 83 deletions

View file

@ -1,16 +1,17 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{,usr/}bin/host
@{exec_path} = @{bin}/host
profile host @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/openssl>
include <abstractions/nameservice-strict>
include <abstractions/openssl>
network inet dgram,
network inet6 dgram,
@ -21,5 +22,7 @@ profile host @{exec_path} {
owner @{PROC}/@{pids}/task/@{tid}/comm rw,
@{sys}/kernel/mm/transparent_hugepage/enabled r,
include if exists <local/host>
}