-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.yml
104 lines (90 loc) · 2.99 KB
/
global.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
use: [common, private-home]
command: [bash]
rules:
common:
- >-
Apply common restrictions such as limiting access to environment
variables and the file system while still allowing basic programs to
operate correctly.
- args: [--clearenv, --unshare-pid, --die-with-parent]
- proc: /proc
- dev: /dev
- tmpfs: /tmp
- restrict-tty:
- env: {PATH: /usr/bin:/bin}
- env: [LANG, XDG_RUNTIME_DIR, XDG_SESSION_TYPE, TERM, HOME, LOGNAME, USER,
EDITOR, SANDBOX]
- bind: /etc
- bind: /usr
- bind: /lib
- bind: /lib64
- symlink: [usr/bin, /bin]
- symlink: [usr/bin, /sbin]
- tmpfs: $XDG_RUNTIME_DIR
- bind: {path: /run/systemd/resolve, try: true}
- ifdef: [WITH_DOWNLOADS, {use: downloads}]
downloads:
- Bind the user's Downloads directory.
- bind: {path: $HOME/Downloads, read-write: true}
private-home:
- Creates a private writable home directory.
- bind:
path: $SANDBOX_HOME
dst: $HOME
read-write: true
create: skel
- dir: $HOME/.config
- dir: $HOME/.cache
- dir: $HOME/.local/share
cli:
- Enables typical Command Line Interface options.
- use: [common, private-home, cwd]
gui:
- Enables typical Graphical User Interface options.
- use: [common, private-home, x11, audio, dbus, accessibility]
cwd:
- Bind the current directory with write permission.
- bind: {cwd: true, read-write: true}
x11:
- Allows access to an X11 display.
- env: DISPLAY
- bind: /tmp/.X11-unix/
audio:
- Enables pulseaudio or pipewire.
- bind: $XDG_RUNTIME_DIR/pulse/native
- bind: {path: $HOME/.config/pulse/cookie, try: true}
- bind: {path: $XDG_RUNTIME_DIR/pipewire-0, try: true}
accessibility:
- Enables dbus accessibility calls.
- dbus: {allow: call, path: 'org.a11y.Bus.*=*'}
- bind: {path: $XDG_RUNTIME_DIR/at-spi, try: true}
dbus:
- Enables limited dbus access.
- file: ['', $XDG_RUNTIME_DIR/flatpak-info]
- file: ['', '/.flatpak-info']
- dbus: {allow: call, path: 'org.freedesktop.portal.*=*'}
- dbus:
allow: broadcast
path: 'org.freedesktop.portal.*=@/org/freedesktop/portal/*'
gpu:
- Enables GPU access.
- use: [nvidia]
- bind: {path: /dev/dri, dev: true}
- bind: /sys
nvidia:
- Enables access to NVidia GPU device.
- bind: {path: /dev/nvidiactl, dev: true}
- bind: {path: /dev/nvidia-uvm, dev: true}
- bind: {path: /dev/nvidia-uvm-tools, dev: true}
- bind: {path: /dev/nvidia-modeset, dev: true}
- bind: {path: /dev/nvidia0, dev: true, try: true}
- bind: {path: /dev/nvidia1, dev: true, try: true}
firefox:
- A special rule for running the Firefox web browser.
- use: [gui, downloads]
- dbus: {allow: own, path: org.mozilla.firefox.*}
- bind: {path: $HOME/.config/mozilla, dst: $HOME/.mozilla}
gthumb:
- A special rule for running the GThumb image viewer.
- use: [gui]
- dbus: {allow: own, path: org.gnome.gThumb.*}