aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/mcomix.profile
blob: fcd1e24e5d99f2228ccc95be5b4026cc7b64ecab (plain) (blame)
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
# Firejail profile for mcomix
# Description: A comic book and manga viewer in python
# This file is overwritten after every install/update
# Persistent local customizations
include mcomix.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/mcomix
noblacklist ${HOME}/.local/share/mcomix
noblacklist ${DOCUMENTS}

# Allow /bin/sh (blacklisted by disable-shell.inc)
include allow-bin-sh.inc

# Allow python (blacklisted by disable-interpreters.inc)
# mcomix <= 1.2 uses python2
include allow-python2.inc
include allow-python3.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
include disable-write-mnt.inc
include disable-xdg.inc

mkdir ${HOME}/.config/mcomix
mkdir ${HOME}/.local/share/mcomix
whitelist /usr/share/mcomix
include whitelist-usr-share-common.inc
include whitelist-var-common.inc
include whitelist-runuser-common.inc

apparmor
caps.drop all
machine-id
net none
nodvd
nogroups
noinput
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

# mcomix <= 1.2 uses python2
private-bin 7z,lha,mcomix,mutool,python*,rar,sh,unrar,unzip
private-cache
private-dev
# mcomix <= 1.2 uses gtk-2.0
private-etc alternatives,dconf,fonts,gconf,gtk-2.0,gtk-3.0,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,pango,passwd,X11,xdg
private-tmp

dbus-user none
dbus-system none

read-only ${HOME}
read-write ${HOME}/.config/mcomix
read-write ${HOME}/.local/share/mcomix
#to allow ${HOME}/.local/share/recently-used.xbel
read-write ${HOME}/.local/share
# used by mcomix <= 1.2, tip, make a symbolic link to .cache/thumbnails
read-write ${HOME}/.thumbnails