diff options
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r-- | etc/profile-m-z/qpdf.profile | 68 | ||||
-rw-r--r-- | etc/profile-m-z/zlib-flate.profile | 13 |
2 files changed, 81 insertions, 0 deletions
diff --git a/etc/profile-m-z/qpdf.profile b/etc/profile-m-z/qpdf.profile new file mode 100644 index 000000000..0c1e09e92 --- /dev/null +++ b/etc/profile-m-z/qpdf.profile | |||
@@ -0,0 +1,68 @@ | |||
1 | # Firejail profile for qpdf | ||
2 | # Description: A Content-Preserving PDF Transformation System | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include qpdf.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist ${RUNUSER}/wayland-* | ||
11 | |||
12 | noblacklist ${DOCUMENTS} | ||
13 | |||
14 | include disable-common.inc | ||
15 | include disable-devel.inc | ||
16 | include disable-exec.inc | ||
17 | include disable-interpreters.inc | ||
18 | include disable-proc.inc | ||
19 | include disable-programs.inc | ||
20 | include disable-shell.inc | ||
21 | include disable-X11.inc | ||
22 | include disable-xdg.inc | ||
23 | |||
24 | whitelist ${DOCUMENTS} | ||
25 | whitelist ${DOWNLOADS} | ||
26 | include whitelist-common.inc | ||
27 | include whitelist-run-common.inc | ||
28 | include whitelist-runuser-common.inc | ||
29 | include whitelist-usr-share-common.inc | ||
30 | include whitelist-var-common.inc | ||
31 | |||
32 | apparmor | ||
33 | caps.drop all | ||
34 | hostname qpdf | ||
35 | ipc-namespace | ||
36 | machine-id | ||
37 | net none | ||
38 | no3d | ||
39 | nodvd | ||
40 | nogroups | ||
41 | noinput | ||
42 | nonewprivs | ||
43 | noprinters | ||
44 | noroot | ||
45 | nosound | ||
46 | notv | ||
47 | nou2f | ||
48 | novideo | ||
49 | # block the socket syscall to simulate an be empty protocol line, see #639 | ||
50 | seccomp socket | ||
51 | tracelog | ||
52 | x11 none | ||
53 | |||
54 | private-bin qpdf | ||
55 | private-cache | ||
56 | private-dev | ||
57 | private-etc | ||
58 | private-lib libqpdf.so.* | ||
59 | #private-tmp # breaks on Arch Linux | ||
60 | |||
61 | dbus-user none | ||
62 | dbus-system none | ||
63 | |||
64 | memory-deny-write-execute | ||
65 | restrict-namespaces | ||
66 | read-only ${HOME} | ||
67 | read-write ${DOCUMENTS} | ||
68 | read-write ${DOWNLOADS} | ||
diff --git a/etc/profile-m-z/zlib-flate.profile b/etc/profile-m-z/zlib-flate.profile new file mode 100644 index 000000000..48a2c9845 --- /dev/null +++ b/etc/profile-m-z/zlib-flate.profile | |||
@@ -0,0 +1,13 @@ | |||
1 | # Firejail profile for zlib-flate | ||
2 | # This file is overwritten after every install/update | ||
3 | quiet | ||
4 | # Persistent local customizations | ||
5 | include zlib-flate.local | ||
6 | # Persistent global definitions | ||
7 | # added by included profile | ||
8 | #include globals.local | ||
9 | |||
10 | private-bin zlib-flate | ||
11 | |||
12 | # Redirect | ||
13 | include qpdf.profile | ||