aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-11-15 08:14:46 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-11-15 08:14:46 -0500
commitd0ae074854181d2900b2e8fc6fe5e963c0763a38 (patch)
treee6e2a04502284942e425acf1e99d3d7e370928da /etc
parenttesting (diff)
downloadfirejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.tar.gz
firejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.tar.zst
firejail-d0ae074854181d2900b2e8fc6fe5e963c0763a38.zip
makepkg profile for Arch platform, #1642
Diffstat (limited to 'etc')
-rw-r--r--etc/makepkg.profile58
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
11quiet
12# Persistent local customizations
13include /etc/firejail/makepkg.local
14# Persistent global definitions
15include /etc/firejail/globals.local
16
17
18# Enable severely restricted access to ${HOME}/.gnupg
19noblacklist ~/.gnupg
20read-only ~/.gnupg/gpg.conf
21read-only ~/.gnupg/trustdb.gpg
22read-only ~/.gnupg/pubring.kbx
23blacklist ~/.gnupg/random_seed
24blacklist ~/.gnupg/pubring.kbx~
25blacklist ~/.gnupg/private-keys-v1.d
26blacklist ~/.gnupg/crls.d
27blacklist ~/.gnupg/openpgp-revocs.d
28
29
30# Need to be able to read /var/lib/pacman, {Note no capabilities so automatically read-only}
31noblacklist /var/lib/pacman
32
33include /etc/firejail/disable-common.inc
34include /etc/firejail/disable-passwdmgr.inc
35include /etc/firejail/disable-programs.inc
36
37caps.drop all
38ipc-namespace
39netfilter
40no3d
41nodvd
42nogroups
43nonewprivs
44# noroot is only disabled to allow the creation of kernel headers from an official pckgbuild.
45#noroot
46nosound
47notv
48novideo
49protocol unix,inet,inet6
50seccomp
51shell none
52
53disable-mnt
54private-tmp
55
56memory-deny-write-execute
57noexec ${HOME}
58noexec /tmp