apparmor.d/apparmor.d/abstractions/nvidia-strict
REmerald c1d531525a
fix(abstractions, tunables): move vim modeline
Move vim syntax comment to the end of the file, separated by newline, as requested in #380.
2024-06-15 22:01:25 +01:00

38 lines
1.1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
@{bin}/nvidia-modprobe Px -> child-modprobe-nvidia,
/usr/share/nvidia/nvidia-application-profiles-* r,
/etc/nvidia/nvidia-application-profiles-* r,
/etc/vdpau_wrapper.cfg r,
owner @{HOME}/.cache/nvidia/ w,
owner @{HOME}/.cache/nvidia/GLCache/ rw,
owner @{HOME}/.cache/nvidia/GLCache/** rwk,
owner @{HOME}/.nv/ComputeCache/ w,
owner @{HOME}/.nv/ComputeCache/** rw,
owner @{HOME}/.nv/ComputeCache/index rwk,
owner @{HOME}/.nv/nvidia-application-profiles-* r,
@{sys}/devices/system/memory/block_size_bytes r,
@{sys}/module/nvidia/version r,
@{PROC}/driver/nvidia/params r,
@{PROC}/sys/vm/max_map_count r,
@{PROC}/sys/vm/mmap_min_addr r,
@{PROC}/modules r,
owner @{PROC}/@{pid}/comm r,
/dev/char/195:@{int} w, # Nvidia graphics devices
/dev/nvidia-modeset rw,
/dev/nvidia@{int} rw,
/dev/nvidiactl rw,
deny owner @{HOME}/.nv/.local/share/gvfs-metadata/* r,
include if exists <abstractions/nvidia-strict.d>
# vim:syntax=apparmor