diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/disable-programs.inc | 4 | ||||
-rw-r--r-- | etc/profile-a-l/lettura.profile | 76 |
2 files changed, 80 insertions, 0 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index 36033224a..7bc708623 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc | |||
@@ -157,6 +157,7 @@ blacklist ${HOME}/.cache/ksplashqml | |||
157 | blacklist ${HOME}/.cache/kube | 157 | blacklist ${HOME}/.cache/kube |
158 | blacklist ${HOME}/.cache/kwin | 158 | blacklist ${HOME}/.cache/kwin |
159 | blacklist ${HOME}/.cache/lbry-viewer | 159 | blacklist ${HOME}/.cache/lbry-viewer |
160 | blacklist ${HOME}/.cache/lettura | ||
160 | blacklist ${HOME}/.cache/libgweather | 161 | blacklist ${HOME}/.cache/libgweather |
161 | blacklist ${HOME}/.cache/librewolf | 162 | blacklist ${HOME}/.cache/librewolf |
162 | blacklist ${HOME}/.cache/liferea | 163 | blacklist ${HOME}/.cache/liferea |
@@ -406,6 +407,7 @@ blacklist ${HOME}/.config/cliqz | |||
406 | blacklist ${HOME}/.config/cmus | 407 | blacklist ${HOME}/.config/cmus |
407 | blacklist ${HOME}/.config/cointop | 408 | blacklist ${HOME}/.config/cointop |
408 | blacklist ${HOME}/.config/com.github.bleakgrey.tootle | 409 | blacklist ${HOME}/.config/com.github.bleakgrey.tootle |
410 | blacklist ${HOME}/.config/com.lettura.dev | ||
409 | blacklist ${HOME}/.config/corebird | 411 | blacklist ${HOME}/.config/corebird |
410 | blacklist ${HOME}/.config/coyim | 412 | blacklist ${HOME}/.config/coyim |
411 | blacklist ${HOME}/.config/d-feet | 413 | blacklist ${HOME}/.config/d-feet |
@@ -833,6 +835,7 @@ blacklist ${HOME}/.klatexformula | |||
833 | blacklist ${HOME}/.klei | 835 | blacklist ${HOME}/.klei |
834 | blacklist ${HOME}/.kodi | 836 | blacklist ${HOME}/.kodi |
835 | blacklist ${HOME}/.lastpass | 837 | blacklist ${HOME}/.lastpass |
838 | blacklist ${HOME}/.lettura | ||
836 | blacklist ${HOME}/.librewolf | 839 | blacklist ${HOME}/.librewolf |
837 | blacklist ${HOME}/.lincity-ng | 840 | blacklist ${HOME}/.lincity-ng |
838 | blacklist ${HOME}/.links | 841 | blacklist ${HOME}/.links |
@@ -903,6 +906,7 @@ blacklist ${HOME}/.local/share/cdprojektred | |||
903 | blacklist ${HOME}/.local/share/chatterino | 906 | blacklist ${HOME}/.local/share/chatterino |
904 | blacklist ${HOME}/.local/share/clipit | 907 | blacklist ${HOME}/.local/share/clipit |
905 | blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate | 908 | blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate |
909 | blacklist ${HOME}/.local/share/com.lettura.dev | ||
906 | blacklist ${HOME}/.local/share/com.vmingueza.journal-viewer | 910 | blacklist ${HOME}/.local/share/com.vmingueza.journal-viewer |
907 | blacklist ${HOME}/.local/share/contacts | 911 | blacklist ${HOME}/.local/share/contacts |
908 | blacklist ${HOME}/.local/share/cor-games | 912 | blacklist ${HOME}/.local/share/cor-games |
diff --git a/etc/profile-a-l/lettura.profile b/etc/profile-a-l/lettura.profile new file mode 100644 index 000000000..94a455355 --- /dev/null +++ b/etc/profile-a-l/lettura.profile | |||
@@ -0,0 +1,76 @@ | |||
1 | # Firejail profile for lettura | ||
2 | # Description: Another free and open-source feed reader | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include lettura.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.cache/lettura | ||
10 | noblacklist ${HOME}/.config/com.lettura.dev | ||
11 | noblacklist ${HOME}/.lettura | ||
12 | noblacklist ${HOME}/.local/share/com.lettura.dev | ||
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-xdg.inc | ||
22 | |||
23 | mkdir ${HOME}/.cache/lettura | ||
24 | mkdir ${HOME}/.config/com.lettura.dev | ||
25 | mkdir ${HOME}/.lettura | ||
26 | mkdir ${HOME}/.local/share/com.lettura.dev | ||
27 | whitelist ${HOME}/.cache/lettura | ||
28 | whitelist ${HOME}/.config/com.lettura.dev | ||
29 | whitelist ${HOME}/.lettura | ||
30 | whitelist ${HOME}/.local/share/com.lettura.dev | ||
31 | whitelist ${DOWNLOADS} | ||
32 | include whitelist-common.inc | ||
33 | include whitelist-run-common.inc | ||
34 | include whitelist-runuser-common.inc | ||
35 | include whitelist-usr-share-common.inc | ||
36 | include whitelist-var-common.inc | ||
37 | |||
38 | # The lines below are needed to find the default Firefox profile name, to allow | ||
39 | # opening links in an existing instance of Firefox (note that it still fails if | ||
40 | # there isn't a Firefox instance running with the default profile; see #5352) | ||
41 | noblacklist ${HOME}/.mozilla | ||
42 | whitelist ${HOME}/.mozilla/firefox/profiles.ini | ||
43 | |||
44 | apparmor | ||
45 | caps.drop all | ||
46 | netfilter | ||
47 | nodvd | ||
48 | nogroups | ||
49 | noinput | ||
50 | nonewprivs | ||
51 | noprinters | ||
52 | noroot | ||
53 | #nosound | ||
54 | notv | ||
55 | nou2f | ||
56 | novideo | ||
57 | protocol unix,inet,inet6 | ||
58 | seccomp | ||
59 | seccomp.block-secondary | ||
60 | tracelog | ||
61 | |||
62 | disable-mnt | ||
63 | private-bin lettura | ||
64 | private-cache | ||
65 | private-dev | ||
66 | private-etc @network,@sound,@tls-ca,@x11,mime.types | ||
67 | private-tmp | ||
68 | |||
69 | dbus-user filter | ||
70 | dbus-user.talk org.freedesktop.Notifications | ||
71 | ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher | ||
72 | # allow D-Bus communication with firefox for opening links | ||
73 | dbus-user.talk org.mozilla.* | ||
74 | dbus-system none | ||
75 | |||
76 | restrict-namespaces | ||