apparmor.d/apparmor.d/profiles-s-z/whereis

43 lines
887 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/whereis
profile whereis @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}{local/,}{s,}bin/{,*/} r,
/{usr/,}{local/,}games/ r,
@{lib}/go-*/bin/ r,
@{lib}/ r,
/usr/{local/,}{,etc/,lib/} r,
/usr/include/ r,
/usr/share/ r,
/usr/share/info/{**,} r,
/usr/share/man/{**,} r,
/usr/src/{**,} r,
/etc/ r,
/opt/ r,
/opt/cni/bin/ r,
/opt/containerd/bin/ r,
/snap/bin/ r,
/var/lib/flatpak/exports/bin/ r,
owner @{HOME}/.krew/bin/ r,
owner @{HOME}/{.,}go/bin/ r,
owner @{HOME}/{.local/,}{.,}bin/ r,
include if exists <local/whereis>
}