aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-04-05 12:09:04 +0000
committerLibravatar GitHub <noreply@github.com>2024-04-05 12:09:04 +0000
commit1cfa06b4c5517a89d1a5dafd80ee593f8ebf86ea (patch)
treebc08210c54287ccd7a895049f829b609b7279b29
parentprofiles: add allow-php.inc to profile.template (#6299) (diff)
downloadfirejail-1cfa06b4c5517a89d1a5dafd80ee593f8ebf86ea.tar.gz
firejail-1cfa06b4c5517a89d1a5dafd80ee593f8ebf86ea.tar.zst
firejail-1cfa06b4c5517a89d1a5dafd80ee593f8ebf86ea.zip
profiles: clarify and add opengl-game to profile.template (#6300)
To make it consistent with the other include profiles. See etc/templates/profile.template. With this, all `etc/inc/allow-*` files are listed in profile.template. The explanation is based on a comment by @rusty-snake[1]. Relates to #4071. This is a follow-up to #6299. [1] https://github.com/netblue30/firejail/pull/4071#issuecomment-822003473
-rw-r--r--etc/inc/allow-opengl-game.inc6
-rw-r--r--etc/profile-a-l/alienarena-wrapper.profile1
-rw-r--r--etc/profile-a-l/ballbuster-wrapper.profile1
-rw-r--r--etc/profile-a-l/colorful-wrapper.profile1
-rw-r--r--etc/profile-a-l/etr-wrapper.profile1
-rw-r--r--etc/profile-a-l/gl-117-wrapper.profile1
-rw-r--r--etc/profile-a-l/glaxium-wrapper.profile1
-rw-r--r--etc/profile-m-z/neverball-wrapper.profile1
-rw-r--r--etc/profile-m-z/neverputt-wrapper.profile1
-rw-r--r--etc/profile-m-z/pinball-wrapper.profile1
-rw-r--r--etc/profile-m-z/scorched3d-wrapper.profile1
-rw-r--r--etc/profile-m-z/supertuxkart-wrapper.profile1
-rw-r--r--etc/profile-m-z/xonotic.profile3
-rw-r--r--etc/templates/profile.template3
14 files changed, 23 insertions, 0 deletions
diff --git a/etc/inc/allow-opengl-game.inc b/etc/inc/allow-opengl-game.inc
index 5d2d6c5c1..5ec227348 100644
--- a/etc/inc/allow-opengl-game.inc
+++ b/etc/inc/allow-opengl-game.inc
@@ -2,6 +2,12 @@
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include allow-opengl-game.local 3include allow-opengl-game.local
4 4
5# Explanation: Fedora (and maybe others) install a .desktop file that uses
6# `Exec=foo-wrapper` instead of `Exec=foo`. Each /usr/bin/foo-wrapper is a
7# symlink to /usr/bin/opengl-game-wrapper.sh, which checks hardware
8# acceleration and then starts the game or notifies the user that there is a
9# problem.
10
5noblacklist ${PATH}/bash 11noblacklist ${PATH}/bash
6whitelist /usr/share/opengl-games-utils/opengl-game-functions.sh 12whitelist /usr/share/opengl-games-utils/opengl-game-functions.sh
7private-bin basename,bash,cut,glxinfo,grep,head,sed,zenity 13private-bin basename,bash,cut,glxinfo,grep,head,sed,zenity
diff --git a/etc/profile-a-l/alienarena-wrapper.profile b/etc/profile-a-l/alienarena-wrapper.profile
index b31996cd2..b05a6968d 100644
--- a/etc/profile-a-l/alienarena-wrapper.profile
+++ b/etc/profile-a-l/alienarena-wrapper.profile
@@ -6,6 +6,7 @@ include alienarena-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin alienarena-wrapper 12private-bin alienarena-wrapper
diff --git a/etc/profile-a-l/ballbuster-wrapper.profile b/etc/profile-a-l/ballbuster-wrapper.profile
index 419dcaab5..64a78e154 100644
--- a/etc/profile-a-l/ballbuster-wrapper.profile
+++ b/etc/profile-a-l/ballbuster-wrapper.profile
@@ -6,6 +6,7 @@ include ballbuster-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin ballbuster-wrapper 12private-bin ballbuster-wrapper
diff --git a/etc/profile-a-l/colorful-wrapper.profile b/etc/profile-a-l/colorful-wrapper.profile
index 4b762047d..ebccffe09 100644
--- a/etc/profile-a-l/colorful-wrapper.profile
+++ b/etc/profile-a-l/colorful-wrapper.profile
@@ -6,6 +6,7 @@ include colorful-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin colorful-wrapper 12private-bin colorful-wrapper
diff --git a/etc/profile-a-l/etr-wrapper.profile b/etc/profile-a-l/etr-wrapper.profile
index 98f949918..66dcb3af1 100644
--- a/etc/profile-a-l/etr-wrapper.profile
+++ b/etc/profile-a-l/etr-wrapper.profile
@@ -6,6 +6,7 @@ include etr-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin etr-wrapper 12private-bin etr-wrapper
diff --git a/etc/profile-a-l/gl-117-wrapper.profile b/etc/profile-a-l/gl-117-wrapper.profile
index d783940f3..52b812954 100644
--- a/etc/profile-a-l/gl-117-wrapper.profile
+++ b/etc/profile-a-l/gl-117-wrapper.profile
@@ -6,6 +6,7 @@ include gl-117-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin gl-117-wrapper 12private-bin gl-117-wrapper
diff --git a/etc/profile-a-l/glaxium-wrapper.profile b/etc/profile-a-l/glaxium-wrapper.profile
index 7dc2cf65e..341f3ac4b 100644
--- a/etc/profile-a-l/glaxium-wrapper.profile
+++ b/etc/profile-a-l/glaxium-wrapper.profile
@@ -6,6 +6,7 @@ include glaxium-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin glaxium-wrapper 12private-bin glaxium-wrapper
diff --git a/etc/profile-m-z/neverball-wrapper.profile b/etc/profile-m-z/neverball-wrapper.profile
index 534e41dd1..086bd6e5e 100644
--- a/etc/profile-m-z/neverball-wrapper.profile
+++ b/etc/profile-m-z/neverball-wrapper.profile
@@ -6,6 +6,7 @@ include neverball-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin neverball-wrapper 12private-bin neverball-wrapper
diff --git a/etc/profile-m-z/neverputt-wrapper.profile b/etc/profile-m-z/neverputt-wrapper.profile
index dacd113cc..d29809c9a 100644
--- a/etc/profile-m-z/neverputt-wrapper.profile
+++ b/etc/profile-m-z/neverputt-wrapper.profile
@@ -6,6 +6,7 @@ include neverputt-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin neverputt-wrapper 12private-bin neverputt-wrapper
diff --git a/etc/profile-m-z/pinball-wrapper.profile b/etc/profile-m-z/pinball-wrapper.profile
index 2b5ed6e27..fec4c3132 100644
--- a/etc/profile-m-z/pinball-wrapper.profile
+++ b/etc/profile-m-z/pinball-wrapper.profile
@@ -6,6 +6,7 @@ include pinball-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin pinball-wrapper 12private-bin pinball-wrapper
diff --git a/etc/profile-m-z/scorched3d-wrapper.profile b/etc/profile-m-z/scorched3d-wrapper.profile
index e76caec1d..a8713edbf 100644
--- a/etc/profile-m-z/scorched3d-wrapper.profile
+++ b/etc/profile-m-z/scorched3d-wrapper.profile
@@ -3,6 +3,7 @@
3# Persistent local customizations 3# Persistent local customizations
4include scorched3d-wrapper.local 4include scorched3d-wrapper.local
5 5
6# Allow opengl-game wrapper script (distribution-specific)
6include allow-opengl-game.inc 7include allow-opengl-game.inc
7 8
8private-bin scorched3d-wrapper 9private-bin scorched3d-wrapper
diff --git a/etc/profile-m-z/supertuxkart-wrapper.profile b/etc/profile-m-z/supertuxkart-wrapper.profile
index af8d73deb..20744090c 100644
--- a/etc/profile-m-z/supertuxkart-wrapper.profile
+++ b/etc/profile-m-z/supertuxkart-wrapper.profile
@@ -6,6 +6,7 @@ include supertuxkart-wrapper.local
6# added by included profile 6# added by included profile
7#include globals.local 7#include globals.local
8 8
9# Allow opengl-game wrapper script (distribution-specific)
9include allow-opengl-game.inc 10include allow-opengl-game.inc
10 11
11private-bin supertuxkart-wrapper 12private-bin supertuxkart-wrapper
diff --git a/etc/profile-m-z/xonotic.profile b/etc/profile-m-z/xonotic.profile
index 87e75986d..ad4ed4d8b 100644
--- a/etc/profile-m-z/xonotic.profile
+++ b/etc/profile-m-z/xonotic.profile
@@ -8,7 +8,10 @@ include globals.local
8 8
9noblacklist ${HOME}/.xonotic 9noblacklist ${HOME}/.xonotic
10 10
11# Allow /bin/sh (blacklisted by disable-shell.inc)
11include allow-bin-sh.inc 12include allow-bin-sh.inc
13
14# Allow opengl-game wrapper script (distribution-specific)
12include allow-opengl-game.inc 15include allow-opengl-game.inc
13 16
14include disable-common.inc 17include disable-common.inc
diff --git a/etc/templates/profile.template b/etc/templates/profile.template
index 2188721b8..459baf51a 100644
--- a/etc/templates/profile.template
+++ b/etc/templates/profile.template
@@ -91,6 +91,9 @@ include globals.local
91# Allow nodejs (blacklisted by disable-interpreters.inc) 91# Allow nodejs (blacklisted by disable-interpreters.inc)
92#include allow-nodejs.inc 92#include allow-nodejs.inc
93 93
94# Allow opengl-game wrapper script (distribution-specific)
95#include allow-opengl-game.inc
96
94# Allow perl (blacklisted by disable-interpreters.inc) 97# Allow perl (blacklisted by disable-interpreters.inc)
95#include allow-perl.inc 98#include allow-perl.inc
96 99