mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 08:23:47 +01:00
28 lines
613 B
Plaintext
28 lines
613 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# Copyright (C) 2022-2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/findmnt
|
|
profile findmnt @{exec_path} flags=(attach_disconnected,complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/disks-read>
|
|
|
|
capability dac_read_search,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/etc/fstab r,
|
|
/etc/mtab r,
|
|
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
|
|
deny /apparmor/.null rw,
|
|
|
|
include if exists <local/findmnt>
|
|
} |