summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-09-18 14:15:56 +0200
committerAlexander Larsson <alexl@redhat.com>2015-09-18 14:15:56 +0200
commit5e6960353dbcfb954929c18baa399e27332b4470 (patch)
tree58fe191ecb4249ecafc3b72ba4e8bbb5be7f616b
parent5065e431a255fe2571e22ab9688419b3ee5b1ab7 (diff)
downloadxdg-app-5e6960353dbcfb954929c18baa399e27332b4470.tar.gz
Mount nvidia device nodes in sandbox if dri allowed
-rw-r--r--lib/xdg-app-helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xdg-app-helper.c b/lib/xdg-app-helper.c
index 52a1753..a806936 100644
--- a/lib/xdg-app-helper.c
+++ b/lib/xdg-app-helper.c
@@ -606,6 +606,8 @@ static const create_table_t create[] = {
{ FILE_TYPE_DEVICE, "dev/tty", 0666},
{ FILE_TYPE_DIR, "dev/dri", 0755},
{ FILE_TYPE_BIND_RO, "dev/dri", 0755, "/dev/dri", FILE_FLAGS_NON_FATAL|FILE_FLAGS_DEVICES, &allow_dri},
+ { FILE_TYPE_DEVICE, "dev/nvidiactl", 0666, NULL, FILE_FLAGS_NON_FATAL, &allow_dri},
+ { FILE_TYPE_DEVICE, "dev/nvidia0", 0666, NULL, FILE_FLAGS_NON_FATAL, &allow_dri},
};
/* warning: Don't create any actual files here, as we could potentially