diff options
author | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-03-08 17:16:37 +0100 |
---|---|---|
committer | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-03-14 21:26:37 +0100 |
commit | f7e232c1bef82898982564e61b1e1d89e91f87f2 (patch) | |
tree | 6c9c963078398a3213203beb3c68dc212c84d810 | |
parent | profile fixes (diff) | |
download | firejail-f7e232c1bef82898982564e61b1e1d89e91f87f2.tar.gz firejail-f7e232c1bef82898982564e61b1e1d89e91f87f2.tar.zst firejail-f7e232c1bef82898982564e61b1e1d89e91f87f2.zip |
Add profile for checksum tools
* Oops! Thanks for catching.
* Add quiet
-rw-r--r-- | etc/profile-a-l/b2sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-a-l/cksum.profile | 13 | ||||
-rw-r--r-- | etc/profile-a-l/hasher-common.profile | 60 | ||||
-rw-r--r-- | etc/profile-m-z/md5sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sha1sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sha224sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sha256sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sha384sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sha512sum.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/sum.profile | 13 |
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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include b2sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin b2sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include cksum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin cksum | ||
11 | |||
12 | # Redirect | ||
13 | include 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. | ||
3 | include hasher-common.local | ||
4 | |||
5 | # common profile for hasher/checksum tools | ||
6 | |||
7 | blacklist ${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 | ||
18 | include disable-devel.inc | ||
19 | include disable-exec.inc | ||
20 | include disable-interpreters.inc | ||
21 | include 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 | ||
24 | include disable-shell.inc | ||
25 | include 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 | |||
29 | apparmor | ||
30 | caps.drop all | ||
31 | ipc-namespace | ||
32 | machine-id | ||
33 | net none | ||
34 | no3d | ||
35 | nodvd | ||
36 | nogroups | ||
37 | nonewprivs | ||
38 | noroot | ||
39 | nosound | ||
40 | notv | ||
41 | nou2f | ||
42 | novideo | ||
43 | protocol unix | ||
44 | seccomp | ||
45 | seccomp.block-secondary | ||
46 | shell none | ||
47 | tracelog | ||
48 | x11 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 | ||
52 | private-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 | |||
56 | dbus-user none | ||
57 | dbus-system none | ||
58 | |||
59 | memory-deny-write-execute | ||
60 | read-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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include md5sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin md5sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sha1sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sha1sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sha224sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sha224sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sha256sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sha256sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sha384sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sha384sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sha512sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sha512sum | ||
11 | |||
12 | # Redirect | ||
13 | include 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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include sum.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | private-bin sum | ||
11 | |||
12 | # Redirect | ||
13 | include hasher-common.profile | ||