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