From a5d307242d52b2464983d3a7bd06f6666cf19514 Mon Sep 17 00:00:00 2001
From: Lukas Vrabec <lvrabec@redhat.com>
Date: Tue, 12 Mar 2019 13:01:30 +0100
Subject: [PATCH 01/10] Label /usr/lib64/libcuda.so.XX.XX library as
textrel_shlib_t. Resolves: rhbz#1636197
---
policy/modules/system/libraries.fc | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc
index 10006d658..354e282d6 100644
--- a/policy/modules/system/libraries.fc
+++ b/policy/modules/system/libraries.fc
@@ -156,6 +156,7 @@ ifdef(`distro_redhat',`
/usr/lib/libzvbi\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib/sse2/libx264\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib/libnvidia\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
+/usr/lib/libcuda\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib.*/libnvidia\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib(/.*)?/nvidia_drv.*\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib/nero/plug-ins/libMP3\.so(\.[^/]*)* -- gen_context(system_u:object_r:textrel_shlib_t,s0)
--
2.21.0