mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
Merge branch 'refactor-and-update-dri' into 'master'
Refactor and update dri-specific rules See merge request apparmor/apparmor!66 Acked-by: Jamie Strandboge <jamie.strandboge@canonical.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#
|
#
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <abstractions/dri-common>
|
||||||
|
|
||||||
|
|
||||||
# .ICEauthority files required for X authentication, per user
|
# .ICEauthority files required for X authentication, per user
|
||||||
@@ -45,14 +46,6 @@
|
|||||||
# EGL
|
# EGL
|
||||||
/usr/lib/@{multiarch}/egl/*.so* mr,
|
/usr/lib/@{multiarch}/egl/*.so* mr,
|
||||||
|
|
||||||
# DRI
|
|
||||||
/usr/lib{,32,64}/dri/** mr,
|
|
||||||
/usr/lib/@{multiarch}/dri/** mr,
|
|
||||||
/usr/lib/fglrx/dri/** mr,
|
|
||||||
/dev/dri/** rw,
|
|
||||||
/etc/drirc r,
|
|
||||||
owner @{HOME}/.drirc r,
|
|
||||||
|
|
||||||
# Xcompose
|
# Xcompose
|
||||||
owner @{HOME}/.XCompose r,
|
owner @{HOME}/.XCompose r,
|
||||||
|
|
||||||
|
12
profiles/apparmor.d/abstractions/dri-common
Normal file
12
profiles/apparmor.d/abstractions/dri-common
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# vim:syntax=apparmor
|
||||||
|
|
||||||
|
# This file contains common DRI-specific rules useful for GUI applications
|
||||||
|
# (needed by libdrm and similar).
|
||||||
|
|
||||||
|
/usr/lib{,32,64}/dri/** mr,
|
||||||
|
/usr/lib/@{multiarch}/dri/** mr,
|
||||||
|
/usr/lib/fglrx/dri/** mr,
|
||||||
|
/dev/dri/** rw,
|
||||||
|
/etc/drirc r,
|
||||||
|
owner @{HOME}/.drirc r,
|
||||||
|
|
9
profiles/apparmor.d/abstractions/dri-enumerate
Normal file
9
profiles/apparmor.d/abstractions/dri-enumerate
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# vim:syntax=apparmor
|
||||||
|
|
||||||
|
# This file contains common DRI-specific rules useful for GUI applications that
|
||||||
|
# needs to enumerate graphic devices (as with drmParsePciDeviceInfo() from
|
||||||
|
# libdrm).
|
||||||
|
|
||||||
|
# TODO: use @{sys} after it's moved into tunables/kernelvars (LP: #1728551)
|
||||||
|
/sys/devices/pci[0-9]*/**/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
|
||||||
|
|
Reference in New Issue
Block a user