mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 09:21:00 +01:00

This matches what we use in the profiles for local abstractions. Also adjust the check in the Makefile to expect the variant without '#'.
16 lines
516 B
Text
16 lines
516 B
Text
# vim:syntax=apparmor
|
|
|
|
abi <abi/3.0>,
|
|
|
|
# implementation-independent OpenCL access requirements
|
|
|
|
# System files
|
|
|
|
/etc/OpenCL/** r,
|
|
@{sys}/bus/pci/devices/ r, # libpocl.so -> libhwlock.so, libnvidia-opencl.so, beignet/libcl.so -> libdrm_intel.so
|
|
@{sys}/devices/system/node/ r, # for clGetPlatformIDs() from libOpenCL.so
|
|
@{sys}/devices/system/node/node[0-9]*/meminfo r, # for clGetPlatformIDs() from libOpenCL.so
|
|
|
|
|
|
# Include additions to the abstraction
|
|
include if exists <abstractions/opencl-common.d>
|