aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-03-19 07:37:48 -0500
committerLibravatar GitHub <noreply@github.com>2021-03-19 07:37:48 -0500
commit63fc5d918fa2338b96dc6554102de1a7f08bac7a (patch)
treea35d60e12369c0af6be8eabda3d5e5c28da36ca5 /etc
parentMerge pull request #3984 from nidamanx/patch-1 (diff)
parentAdd profile for checksum tools (diff)
downloadfirejail-63fc5d918fa2338b96dc6554102de1a7f08bac7a.tar.gz
firejail-63fc5d918fa2338b96dc6554102de1a7f08bac7a.tar.zst
firejail-63fc5d918fa2338b96dc6554102de1a7f08bac7a.zip
Merge pull request #4069 from rusty-snake/hasher-profiles
Add profile for checksum tools
Diffstat (limited to 'etc')
-rw-r--r--etc/profile-a-l/b2sum.profile13
-rw-r--r--etc/profile-a-l/cksum.profile13
-rw-r--r--etc/profile-a-l/hasher-common.profile60
-rw-r--r--etc/profile-m-z/md5sum.profile13
-rw-r--r--etc/profile-m-z/sha1sum.profile13
-rw-r--r--etc/profile-m-z/sha224sum.profile13
-rw-r--r--etc/profile-m-z/sha256sum.profile13
-rw-r--r--etc/profile-m-z/sha384sum.profile13
-rw-r--r--etc/profile-m-z/sha512sum.profile13
-rw-r--r--etc/profile-m-z/sum.profile13
10 files changed, 177 insertions, 0 deletions
diff --git a/etc/profile-a-l/b2sum.profile b/etc/profile-a-l/b2sum.profile
new file mode 100644
index 000000000..48cb9619b
--- /dev/null
+++ b/etc/profile-a-l/b2sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for b2sum
2# Description: compute and check BLAKE2 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include b2sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin b2sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-a-l/cksum.profile b/etc/profile-a-l/cksum.profile
new file mode 100644
index 000000000..2baeed2ed
--- /dev/null
+++ b/etc/profile-a-l/cksum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for cksum
2# Description: checksum and count the bytes in a file
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include cksum.local
7# Persistent global definitions
8include globals.local
9
10private-bin cksum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-a-l/hasher-common.profile b/etc/profile-a-l/hasher-common.profile
new file mode 100644
index 000000000..2f684349d
--- /dev/null
+++ b/etc/profile-a-l/hasher-common.profile
@@ -0,0 +1,60 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include hasher-common.local
4
5# common profile for hasher/checksum tools
6
7blacklist ${RUNUSER}
8
9# WARNING:
10# Users can (un)restrict file access for **all** hashers by commenting/uncommenting the needed
11# include file(s) here or by putting those into hasher-common.local.
12# Another option is to do this **per hasher** in the relevant <hasher>.local.
13# Just beware that things tend to break when overtightening profiles. For example, because you only
14# need to hash/check files in ${DOWNLOADS}, other applications may need access to ${HOME}/.local/share.
15
16# Uncomment the next line (or put it into your hasher-common.local) if you don't need to hash files in disable-common.inc.
17#include disable-common.inc
18include disable-devel.inc
19include disable-exec.inc
20include disable-interpreters.inc
21include disable-passwdmgr.inc
22# Uncomment the next line (or put it into your hasher-common.local) if you don't need to hash files in disable-programs.inc.
23#include disable-programs.inc
24include disable-shell.inc
25include disable-write-mnt.inc
26# Uncomment the next line (or put it into your hasher-common.local) if you don't need to hash files in disable-xdg.inc.
27#include disable-xdg.inc
28
29apparmor
30caps.drop all
31ipc-namespace
32machine-id
33net none
34no3d
35nodvd
36nogroups
37nonewprivs
38noroot
39nosound
40notv
41nou2f
42novideo
43protocol unix
44seccomp
45seccomp.block-secondary
46shell none
47tracelog
48x11 none
49
50# Uncomment the next line (or put it into your hasher-common.local) if you don't need to hash files in /tmp.
51#private-cache
52private-dev
53# Uncomment the next line (or put it into your hasher-common.local) if you don't need to hash files in /tmp.
54#private-tmp
55
56dbus-user none
57dbus-system none
58
59memory-deny-write-execute
60read-only ${HOME}
diff --git a/etc/profile-m-z/md5sum.profile b/etc/profile-m-z/md5sum.profile
new file mode 100644
index 000000000..3612c73fd
--- /dev/null
+++ b/etc/profile-m-z/md5sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for md5sum
2# Description: compute and check MD5 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include md5sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin md5sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sha1sum.profile b/etc/profile-m-z/sha1sum.profile
new file mode 100644
index 000000000..b2064b95d
--- /dev/null
+++ b/etc/profile-m-z/sha1sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sha1sum
2# Description: compute and check SHA1 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sha1sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sha1sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sha224sum.profile b/etc/profile-m-z/sha224sum.profile
new file mode 100644
index 000000000..cb26cc5ff
--- /dev/null
+++ b/etc/profile-m-z/sha224sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sha224sum
2# Description: compute and check SHA224 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sha224sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sha224sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sha256sum.profile b/etc/profile-m-z/sha256sum.profile
new file mode 100644
index 000000000..48944ebea
--- /dev/null
+++ b/etc/profile-m-z/sha256sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sha256sum
2# Description: compute and check SHA256 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sha256sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sha256sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sha384sum.profile b/etc/profile-m-z/sha384sum.profile
new file mode 100644
index 000000000..6d876daed
--- /dev/null
+++ b/etc/profile-m-z/sha384sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sha384sum
2# Description: compute and check SHA384 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sha384sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sha384sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sha512sum.profile b/etc/profile-m-z/sha512sum.profile
new file mode 100644
index 000000000..7ebaf3540
--- /dev/null
+++ b/etc/profile-m-z/sha512sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sha512sum
2# Description: compute and check SHA512 message digest
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sha512sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sha512sum
11
12# Redirect
13include hasher-common.profile
diff --git a/etc/profile-m-z/sum.profile b/etc/profile-m-z/sum.profile
new file mode 100644
index 000000000..cd73af919
--- /dev/null
+++ b/etc/profile-m-z/sum.profile
@@ -0,0 +1,13 @@
1# Firejail profile for sum
2# Description: checksum and count the blocks in a file
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include sum.local
7# Persistent global definitions
8include globals.local
9
10private-bin sum
11
12# Redirect
13include hasher-common.profile