Skip to content

Commit a5e8578

Browse files
authored
Merge pull request #4071 from rusty-snake/open-game-wrapper
Commons of opengl-game-wrapper.sh
2 parents 056a1dc + 41f69f7 commit a5e8578

27 files changed

+546
-7
lines changed

etc/inc/allow-opengl-game.inc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
noblacklist ${PATH}/bash
2+
whitelist /usr/share/opengl-games-utils/opengl-game-functions.sh
3+
private-bin basename,bash,cut,glxinfo,grep,head,sed,zenity

etc/inc/disable-programs.inc

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ blacklist ${HOME}/.atom
5252
blacklist ${HOME}/.attic
5353
blacklist ${HOME}/.audacity-data
5454
blacklist ${HOME}/.avidemux6
55+
blacklist ${HOME}/.ballbuster.hs
5556
blacklist ${HOME}/.balsa
5657
blacklist ${HOME}/.bcast5
5758
blacklist ${HOME}/.bibletime
@@ -220,6 +221,7 @@ blacklist ${HOME}/.config/d-feet
220221
blacklist ${HOME}/.config/electron-mail
221222
blacklist ${HOME}/.config/emaildefaults
222223
blacklist ${HOME}/.config/emailidentities
224+
blacklist ${HOME}/.config/emilia
223225
blacklist ${HOME}/.config/enchant
224226
blacklist ${HOME}/.config/eog
225227
blacklist ${HOME}/.config/epiphany
@@ -491,6 +493,8 @@ blacklist ${HOME}/.frozen-bubble
491493
blacklist ${HOME}/.gimp*
492494
blacklist ${HOME}/.gist
493495
blacklist ${HOME}/.gitconfig
496+
blacklist ${HOME}/.gl-117
497+
blacklist ${HOME}/.glaxiumrc
494498
blacklist ${HOME}/.gnome/gnome-schedule
495499
blacklist ${HOME}/.googleearth
496500
blacklist ${HOME}/.gradle
@@ -638,6 +642,7 @@ blacklist ${HOME}/.local/share/cdprojektred
638642
blacklist ${HOME}/.local/share/clipit
639643
blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate
640644
blacklist ${HOME}/.local/share/contacts
645+
blacklist ${HOME}/.local/share/cor-games
641646
blacklist ${HOME}/.local/share/data/Mendeley Ltd.
642647
blacklist ${HOME}/.local/share/data/Mumble
643648
blacklist ${HOME}/.local/share/data/MusE
@@ -845,6 +850,7 @@ blacklist ${HOME}/.steampid
845850
blacklist ${HOME}/.stellarium
846851
blacklist ${HOME}/.subversion
847852
blacklist ${HOME}/.surf
853+
blacklist ${HOME}/.suve/colorful
848854
blacklist ${HOME}/.swb.ini
849855
blacklist ${HOME}/.sword
850856
blacklist ${HOME}/.sylpheed-2.0
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for alienarena-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include alienarena-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin alienarena-wrapper
12+
13+
# Redirect
14+
include alienarena.profile

etc/profile-a-l/alienarena.profile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Firejail profile for alienarena
2+
# Description: Multiplayer retro sci-fi deathmatch game
3+
# This file is overwritten after every install/update
4+
# Persistent local customizations
5+
include alienarena.local
6+
# Persistent global definitions
7+
include globals.local
8+
9+
noblacklist ${HOME}/.local/share/cor-games
10+
11+
include disable-common.inc
12+
include disable-devel.inc
13+
include disable-exec.inc
14+
include disable-interpreters.inc
15+
include disable-passwdmgr.inc
16+
include disable-programs.inc
17+
include disable-shell.inc
18+
include disable-xdg.inc
19+
20+
mkdir ${HOME}/.local/share/cor-games
21+
whitelist ${HOME}/.local/share/cor-games
22+
whitelist /usr/share/alienarena
23+
include whitelist-common.inc
24+
include whitelist-runuser-common.inc
25+
include whitelist-usr-share-common.inc
26+
include whitelist-var-common.inc
27+
28+
apparmor
29+
caps.drop all
30+
netfilter
31+
nodvd
32+
nogroups
33+
nonewprivs
34+
noroot
35+
notv
36+
nou2f
37+
novideo
38+
protocol unix,inet,inet6
39+
seccomp
40+
seccomp.block-secondary
41+
shell none
42+
tracelog
43+
44+
disable-mnt
45+
private-bin alienarena
46+
private-cache
47+
private-dev
48+
private-etc alsa,alternatives,asound.conf,bumblebee,ca-certificates,crypto-policies,drirc,fonts,glvnd,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,nsswitch.conf,nvidia,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,X11
49+
private-tmp
50+
51+
dbus-user none
52+
dbus-system none
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for ballbuster-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include ballbuster-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin ballbuster-wrapper
12+
13+
# Redirect
14+
include ballbuster.profile

etc/profile-a-l/ballbuster.profile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Firejail profile for ballbuster
2+
# Description: Move the paddle to bounce the ball and break all the bricks
3+
# This file is overwritten after every install/update
4+
# Persistent local customizations
5+
include ballbuster.local
6+
# Persistent global definitions
7+
include globals.local
8+
9+
noblacklist ${HOME}/.ballbuster.hs
10+
11+
include disable-common.inc
12+
include disable-devel.inc
13+
include disable-exec.inc
14+
include disable-interpreters.inc
15+
include disable-passwdmgr.inc
16+
include disable-programs.inc
17+
include disable-shell.inc
18+
include disable-xdg.inc
19+
20+
mkfile ${HOME}/.ballbuster.hs
21+
whitelist ${HOME}/.ballbuster.hs
22+
whitelist /usr/share/ballbuster
23+
include whitelist-common.inc
24+
include whitelist-runuser-common.inc
25+
include whitelist-usr-share-common.inc
26+
include whitelist-var-common.inc
27+
28+
apparmor
29+
caps.drop all
30+
net none
31+
nodvd
32+
nogroups
33+
nonewprivs
34+
noroot
35+
notv
36+
nou2f
37+
novideo
38+
protocol unix
39+
seccomp
40+
seccomp.block-secondary
41+
shell none
42+
tracelog
43+
44+
disable-mnt
45+
private-bin ballbuster
46+
private-cache
47+
private-dev
48+
private-etc alsa,alternatives,asound.conf,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,machine-id,pulse
49+
private-tmp
50+
51+
dbus-user none
52+
dbus-system none
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for colorful-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include colorful-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin colorful-wrapper
12+
13+
# Redirect
14+
include colorful.profile

etc/profile-a-l/colorful.profile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Firejail profile for colorful
2+
# Description: simple 2D sideview shooter
3+
# This file is overwritten after every install/update
4+
# Persistent local customizations
5+
include colorful.local
6+
# Persistent global definitions
7+
include globals.local
8+
9+
noblacklist ${HOME}/.suve/colorful
10+
11+
include disable-common.inc
12+
include disable-devel.inc
13+
include disable-exec.inc
14+
include disable-interpreters.inc
15+
include disable-passwdmgr.inc
16+
include disable-programs.inc
17+
include disable-shell.inc
18+
include disable-xdg.inc
19+
20+
mkdir ${HOME}/.suve/colorful
21+
whitelist ${HOME}/.suve/colorful
22+
whitelist /usr/share/suve
23+
include whitelist-common.inc
24+
include whitelist-runuser-common.inc
25+
include whitelist-usr-share-common.inc
26+
include whitelist-var-common.inc
27+
28+
apparmor
29+
caps.drop all
30+
net none
31+
nodvd
32+
nogroups
33+
nonewprivs
34+
noroot
35+
notv
36+
nou2f
37+
novideo
38+
protocol unix
39+
seccomp
40+
seccomp.block-secondary
41+
shell none
42+
tracelog
43+
44+
disable-mnt
45+
private-bin colorful
46+
private-cache
47+
private-dev
48+
private-etc alsa,alternatives,asound.conf,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,machine-id,pulse
49+
private-tmp
50+
51+
dbus-user none
52+
dbus-system none

etc/profile-a-l/etr-wrapper.profile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for etr-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include etr-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin etr-wrapper
12+
13+
# Redirect
14+
include etr.profile

etc/profile-a-l/gl-117-wrapper.profie

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for gl-117-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include gl-117-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin gl-117-wrapper
12+
13+
# Redirect
14+
include gl-117.profile
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for gl-117-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include gl-117-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin gl-117-wrapper
12+
13+
# Redirect
14+
include gl-117.profile

etc/profile-a-l/gl-117.profile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Firejail profile for gl-117
2+
# Description: Action flight simulator
3+
# This file is overwritten after every install/update
4+
# Persistent local customizations
5+
include gl-117.local
6+
# Persistent global definitions
7+
include globals.local
8+
9+
noblacklist ${HOME}/.gl-117
10+
11+
include disable-common.inc
12+
include disable-devel.inc
13+
include disable-exec.inc
14+
include disable-interpreters.inc
15+
include disable-passwdmgr.inc
16+
include disable-programs.inc
17+
include disable-shell.inc
18+
include disable-xdg.inc
19+
20+
mkdir ${HOME}/.gl-117
21+
whitelist ${HOME}/.gl-117
22+
whitelist /usr/share/gl-117
23+
include whitelist-common.inc
24+
include whitelist-runuser-common.inc
25+
include whitelist-usr-share-common.inc
26+
include whitelist-var-common.inc
27+
28+
apparmor
29+
caps.drop all
30+
net none
31+
nodvd
32+
nogroups
33+
nonewprivs
34+
noroot
35+
notv
36+
nou2f
37+
novideo
38+
protocol unix
39+
seccomp
40+
seccomp.block-secondary
41+
shell none
42+
tracelog
43+
44+
disable-mnt
45+
private-bin gl-117
46+
private-cache
47+
private-dev
48+
private-etc alsa,alternatives,asound.conf,bumblebee,drirc,glvnd,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,machine-id,nvidia,pulse
49+
private-tmp
50+
51+
dbus-user none
52+
dbus-system none
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for glaxium-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include glaxium-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin glaxium-wrapper
12+
13+
# Redirect
14+
include glaxium.profile
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Firejail profile for glaxium-wrapper
2+
# This file is overwritten after every install/update
3+
# Persistent local customizations
4+
include glaxium-wrapper.local
5+
# Persistent global definitions
6+
# added by included profile
7+
#include globals.local
8+
9+
include allow-opengl-game.inc
10+
11+
private-bin glaxium-wrapper
12+
13+
# Redirect
14+
include glaxium.profile

0 commit comments

Comments
 (0)