diff options
author | netblue30 <netblue30@yahoo.com> | 2017-11-15 08:14:46 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-11-15 08:14:46 -0500 |
commit | d0ae074854181d2900b2e8fc6fe5e963c0763a38 (patch) | |
tree | e6e2a04502284942e425acf1e99d3d7e370928da /etc/makepkg.profile | |
parent | testing (diff) | |
download | firejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.tar.gz firejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.tar.zst firejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.zip |
makepkg profile for Arch platform, #1642
Diffstat (limited to 'etc/makepkg.profile')
-rw-r--r-- | etc/makepkg.profile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/etc/makepkg.profile b/etc/makepkg.profile new file mode 100644 index 000000000..96846592d --- /dev/null +++ b/etc/makepkg.profile | |||
@@ -0,0 +1,58 @@ | |||
1 | # Firejail profile for makepkg | ||
2 | # This file is overwritten after every install/update | ||
3 | |||
4 | # Note: see this Arch forum discussion https://bbs.archlinux.org/viewtopic.php?pid=1743138 | ||
5 | # for potential issues and their solutions when Firejailing makepkg | ||
6 | |||
7 | # This profile could be significantly strengthened by adding the following to makepkg.local | ||
8 | # whitelist ~/<Your Build Folder> | ||
9 | # whitelist ~/.gnupg | ||
10 | |||
11 | quiet | ||
12 | # Persistent local customizations | ||
13 | include /etc/firejail/makepkg.local | ||
14 | # Persistent global definitions | ||
15 | include /etc/firejail/globals.local | ||
16 | |||
17 | |||
18 | # Enable severely restricted access to ${HOME}/.gnupg | ||
19 | noblacklist ~/.gnupg | ||
20 | read-only ~/.gnupg/gpg.conf | ||
21 | read-only ~/.gnupg/trustdb.gpg | ||
22 | read-only ~/.gnupg/pubring.kbx | ||
23 | blacklist ~/.gnupg/random_seed | ||
24 | blacklist ~/.gnupg/pubring.kbx~ | ||
25 | blacklist ~/.gnupg/private-keys-v1.d | ||
26 | blacklist ~/.gnupg/crls.d | ||
27 | blacklist ~/.gnupg/openpgp-revocs.d | ||
28 | |||
29 | |||
30 | # Need to be able to read /var/lib/pacman, {Note no capabilities so automatically read-only} | ||
31 | noblacklist /var/lib/pacman | ||
32 | |||
33 | include /etc/firejail/disable-common.inc | ||
34 | include /etc/firejail/disable-passwdmgr.inc | ||
35 | include /etc/firejail/disable-programs.inc | ||
36 | |||
37 | caps.drop all | ||
38 | ipc-namespace | ||
39 | netfilter | ||
40 | no3d | ||
41 | nodvd | ||
42 | nogroups | ||
43 | nonewprivs | ||
44 | # noroot is only disabled to allow the creation of kernel headers from an official pckgbuild. | ||
45 | #noroot | ||
46 | nosound | ||
47 | notv | ||
48 | novideo | ||
49 | protocol unix,inet,inet6 | ||
50 | seccomp | ||
51 | shell none | ||
52 | |||
53 | disable-mnt | ||
54 | private-tmp | ||
55 | |||
56 | memory-deny-write-execute | ||
57 | noexec ${HOME} | ||
58 | noexec /tmp | ||