Skip to content

Commit 271d394

Browse files
glitsj16kmk3
authored andcommitted
New profile: mimetype.profile
Description: Determines the file type. https://metacpan.org/release/File-MimeInfo https://archlinux.org/packages/extra/any/perl-file-mimeinfo/
1 parent df257a8 commit 271d394

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

etc/profile-m-z/mimetype.profile

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Firejail profile for mimetype
2+
# Description: Determines the file type
3+
# This file is overwritten after every install/update
4+
quiet
5+
# Persistent local customizations
6+
include mimetype.local
7+
# Persistent global definitions
8+
include globals.local
9+
10+
blacklist /tmp/.X11-unix
11+
blacklist ${RUNUSER}
12+
13+
# Allow perl (blacklisted by disable-interpreters.inc)
14+
include allow-perl.inc
15+
16+
include disable-common.inc
17+
include disable-devel.inc
18+
include disable-exec.inc
19+
include disable-interpreters.inc
20+
include disable-proc.inc
21+
include disable-programs.inc
22+
include disable-shell.inc
23+
24+
include whitelist-usr-share-common.inc
25+
26+
apparmor
27+
caps.drop all
28+
ipc-namespace
29+
machine-id
30+
net none
31+
no3d
32+
nodvd
33+
nogroups
34+
noinput
35+
nonewprivs
36+
noprinters
37+
noroot
38+
nosound
39+
notv
40+
nou2f
41+
novideo
42+
protocol unix
43+
seccomp
44+
seccomp.block-secondary
45+
tracelog
46+
x11 none
47+
48+
# To support mimetype in private-bin on Arch Linux (and derivatives), symlink
49+
# /usr/bin/vendor_perl/mimetype to /usr/bin/mimetype and add the below to your
50+
# mimetype.local.
51+
# Non-Arch Linux users can safely add the below to their mimetype.local for
52+
# extra hardening.
53+
#private-bin mimetype,perl
54+
private-cache
55+
private-dev
56+
private-etc mime.types
57+
private-lib perl5
58+
59+
dbus-user none
60+
dbus-system none
61+
62+
memory-deny-write-execute
63+
read-only ${HOME}
64+
read-only ${RUNUSER}
65+
read-only /tmp
66+
67+
restrict-namespaces

src/firecfg/firecfg.config

+1
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ microsoft-edge-beta
554554
microsoft-edge-dev
555555
microsoft-edge-stable
556556
midori
557+
mimetype
557558
min
558559
mindless
559560
minecraft-launcher

0 commit comments

Comments
 (0)