diff options
author | 2022-12-09 12:36:28 +0000 | |
---|---|---|
committer | 2022-12-09 12:36:28 +0000 | |
commit | 0e133dc034543291a00151f28bca4dc73ba64ce4 (patch) | |
tree | c22a5725cd33d2a6ea4643fcd6dde2bbceef6092 /etc | |
parent | sandbox.c: print the dir on failed chdir(cfg.homedir) (diff) | |
download | firejail-0e133dc034543291a00151f28bca4dc73ba64ce4.tar.gz firejail-0e133dc034543291a00151f28bca4dc73ba64ce4.tar.zst firejail-0e133dc034543291a00151f28bca4dc73ba64ce4.zip |
New profile: tesseract (#5516)
* Add firecfg support for tesseract
* Add tesseract to 'New profiles' section in README.md
* Create tesseract.profile
* tesseract: fix private-etc
* tesseract: fix XDG black/whitelisting
* tesseract: use 'seccomp socket' instead of 'protocol unix'
As kindly suggested by @rusty-snake.
* tesseract: add 'restrict-namespaces'
As kindly suggested by @rusty-snake.
* tesseract: use full seccomp filtering
The tesseract application works fine without 'protocol' or 'seccomp socket'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/profile-m-z/tesseract.profile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/etc/profile-m-z/tesseract.profile b/etc/profile-m-z/tesseract.profile new file mode 100644 index 000000000..11a21c471 --- /dev/null +++ b/etc/profile-m-z/tesseract.profile | |||
@@ -0,0 +1,65 @@ | |||
1 | # Firejail profile for tesseract | ||
2 | # Description: An OCR program | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include tesseract.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | blacklist ${RUNUSER} | ||
10 | |||
11 | noblacklist ${DOCUMENTS} | ||
12 | noblacklist ${PICTURES} | ||
13 | include disable-common.inc | ||
14 | include disable-devel.inc | ||
15 | include disable-exec.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-proc.inc | ||
18 | include disable-programs.inc | ||
19 | include disable-shell.inc | ||
20 | include disable-xdg.inc | ||
21 | |||
22 | whitelist ${DOCUMENTS} | ||
23 | whitelist ${DOWNLOADS} | ||
24 | whitelist ${PICTURES} | ||
25 | include whitelist-common.inc | ||
26 | include whitelist-run-common.inc | ||
27 | include whitelist-runuser-common.inc | ||
28 | whitelist /usr/share/tessdata | ||
29 | include whitelist-usr-share-common.inc | ||
30 | include whitelist-var-common.inc | ||
31 | |||
32 | apparmor | ||
33 | caps.drop all | ||
34 | hostname tesseract | ||
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 | seccomp | ||
50 | tracelog | ||
51 | x11 none | ||
52 | |||
53 | #disable-mnt | ||
54 | private-bin ambiguous_words,classifier_tester,cntraining,combine_lang_model,combine_tessdata,dawg2wordlist,lstmeval,lstmtraining,merge_unicharsets,mftraining,set_unicharset_properties,shapeclustering,tesseract,text2image,unicharset_extractor,wordlist2dawg | ||
55 | private-cache | ||
56 | private-dev | ||
57 | private-etc alternatives,fonts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload | ||
58 | #private-lib libtesseract.so.* | ||
59 | private-tmp | ||
60 | |||
61 | dbus-user none | ||
62 | dbus-system none | ||
63 | |||
64 | memory-deny-write-execute | ||
65 | restrict-namespaces | ||