mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
43 lines
841 B
Plaintext
43 lines
841 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# Copyright (C) 2022-2024 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} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/{,*/} r,
|
|
@{lib}/ r,
|
|
@{lib}/go-*/bin/ r,
|
|
/usr/{local/,}games/ r,
|
|
/usr/include/ r,
|
|
/usr/local/{,etc/,lib/} r,
|
|
/usr/local/{s,}bin/{,*/} r,
|
|
/usr/share/ r,
|
|
/usr/share/info/{**,} r,
|
|
/usr/share/man/{**,} r,
|
|
/usr/src/{**,} r,
|
|
|
|
/opt/ r,
|
|
/opt/cni/bin/ r,
|
|
/opt/containerd/bin/ r,
|
|
|
|
/etc/ r,
|
|
|
|
/snap/bin/ r,
|
|
/var/lib/flatpak/exports/bin/ r,
|
|
|
|
owner @{HOME}/{.,}go/bin/ r,
|
|
owner @{user_bin_dirs}/ r,
|
|
|
|
include if exists <local/whereis>
|
|
}
|