aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2023-02-23 12:28:41 +0000
committerLibravatar GitHub <noreply@github.com>2023-02-23 12:28:41 +0000
commit7ed7d6dafdcbfc8e0362d5497836cebe62c6bbda (patch)
tree9836d47b52a64fc104d27fdea19029a08f33153c /etc/profile-m-z
parentapostrophe: drop whitelist covered by wusc (#5671) (diff)
downloadfirejail-7ed7d6dafdcbfc8e0362d5497836cebe62c6bbda.tar.gz
firejail-7ed7d6dafdcbfc8e0362d5497836cebe62c6bbda.tar.zst
firejail-7ed7d6dafdcbfc8e0362d5497836cebe62c6bbda.zip
New profiles: qpdf and redirects (#5675)
* Create qpdf.profile and redirects qpdf (CLI) provides PDF metadata cleaning. See privacy-handbuch.de[1] for details. The site offers pdf-meta-clean.sh[2], which works very well with firejailed qpdf. [1] https://www.privacy-handbuch.de/handbuch_43a.htm [2] https://www.privacy-handbuch.de/download/pdf-meta-clean.sh * RELNOTES: add qpdf and redirects to new profiles section * firecfg.config: add qpdf and redirects * qpdf: use 'seccomp socket' instead of 'protocol unix' See https://github.com/netblue30/firejail/issues/639. Thanks @rusty-snake in code review.
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r--etc/profile-m-z/qpdf.profile68
-rw-r--r--etc/profile-m-z/zlib-flate.profile13
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
4quiet
5# Persistent local customizations
6include qpdf.local
7# Persistent global definitions
8include globals.local
9
10blacklist ${RUNUSER}/wayland-*
11
12noblacklist ${DOCUMENTS}
13
14include disable-common.inc
15include disable-devel.inc
16include disable-exec.inc
17include disable-interpreters.inc
18include disable-proc.inc
19include disable-programs.inc
20include disable-shell.inc
21include disable-X11.inc
22include disable-xdg.inc
23
24whitelist ${DOCUMENTS}
25whitelist ${DOWNLOADS}
26include whitelist-common.inc
27include whitelist-run-common.inc
28include whitelist-runuser-common.inc
29include whitelist-usr-share-common.inc
30include whitelist-var-common.inc
31
32apparmor
33caps.drop all
34hostname qpdf
35ipc-namespace
36machine-id
37net none
38no3d
39nodvd
40nogroups
41noinput
42nonewprivs
43noprinters
44noroot
45nosound
46notv
47nou2f
48novideo
49# block the socket syscall to simulate an be empty protocol line, see #639
50seccomp socket
51tracelog
52x11 none
53
54private-bin qpdf
55private-cache
56private-dev
57private-etc
58private-lib libqpdf.so.*
59#private-tmp # breaks on Arch Linux
60
61dbus-user none
62dbus-system none
63
64memory-deny-write-execute
65restrict-namespaces
66read-only ${HOME}
67read-write ${DOCUMENTS}
68read-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
3quiet
4# Persistent local customizations
5include zlib-flate.local
6# Persistent global definitions
7# added by included profile
8#include globals.local
9
10private-bin zlib-flate
11
12# Redirect
13include qpdf.profile