Add profiles for whoami, whereis, which, findmnt, users, sanoid and syncoid.

This commit is contained in:
Jeroen Rijken 2022-08-01 18:26:08 +02:00 committed by Alex
parent 6af5c76fb8
commit 7ee9644325
7 changed files with 198 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/findmnt
profile findmnt @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/etc/fstab r,
/etc/mtab r,
@{PROC}/@{pids}/mountinfo r,
include if exists <local/findmnt>
}