aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/makepkg.profile
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-04-21 08:24:28 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-04-21 08:24:28 -0400
commit018d75775eab4a0f045949a9d069c57686ca2686 (patch)
treeaac3a1a65cca0d4875795c55109a5c3e35efdefb /etc/profile-m-z/makepkg.profile
parentsmall fixes (diff)
downloadfirejail-018d75775eab4a0f045949a9d069c57686ca2686.tar.gz
firejail-018d75775eab4a0f045949a9d069c57686ca2686.tar.zst
firejail-018d75775eab4a0f045949a9d069c57686ca2686.zip
reorganize github etc directory
Diffstat (limited to 'etc/profile-m-z/makepkg.profile')
-rw-r--r--etc/profile-m-z/makepkg.profile61
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
3quiet
4# Persistent local customizations
5include makepkg.local
6# Persistent global definitions
7include globals.local
8
9blacklist /tmp/.X11-unix
10blacklist ${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
20noblacklist ${HOME}/.gnupg
21read-only ${HOME}/.gnupg/gpg.conf
22read-only ${HOME}/.gnupg/trustdb.gpg
23read-only ${HOME}/.gnupg/pubring.kbx
24blacklist ${HOME}/.gnupg/random_seed
25blacklist ${HOME}/.gnupg/pubring.kbx~
26blacklist ${HOME}/.gnupg/private-keys-v1.d
27blacklist ${HOME}/.gnupg/crls.d
28blacklist ${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.
31noblacklist /var/lib/pacman
32
33include disable-common.inc
34include disable-exec.inc
35include disable-passwdmgr.inc
36include disable-programs.inc
37
38caps.drop all
39machine-id
40ipc-namespace
41netfilter
42no3d
43nodvd
44nogroups
45nonewprivs
46# noroot is only disabled to allow the creation of kernel headers from an official PKGBUILD.
47#noroot
48nosound
49nou2f
50notv
51novideo
52protocol unix,inet,inet6
53seccomp
54shell none
55tracelog
56
57disable-mnt
58private-cache
59private-tmp
60
61memory-deny-write-execute