mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-28 12:44:44 +01:00
45 lines
1 KiB
Text
45 lines
1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/lspci
|
|
profile lspci @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability sys_admin,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/app/lib/libzypak-preload-host*.so rm,
|
|
|
|
/usr/share/hwdata/pci.ids r,
|
|
/usr/share/misc/pci.ids r,
|
|
/usr/share/misc/pci.ids.gz r,
|
|
/usr/share/pci.ids r,
|
|
|
|
/etc/modprobe.d/{,*.conf} r,
|
|
/etc/udev/hwdb.bin r,
|
|
|
|
owner @{HOME}/.pciids-cache.tmp-*-@{pid} rw,
|
|
owner @{HOME}/.pciids-cache rw,
|
|
|
|
@{sys}/bus/pci/devices/ r,
|
|
@{sys}/bus/pci/slots/ r,
|
|
@{sys}/bus/pci/slots/@{int}/address r,
|
|
@{sys}/devices/@{pci}/** r,
|
|
@{sys}/module/compression r,
|
|
|
|
@{PROC}/cmdline r,
|
|
@{PROC}/ioports r,
|
|
|
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
|
|
|
include if exists <local/lspci>
|
|
}
|