diff options
author | 2019-02-28 23:42:36 +0000 | |
---|---|---|
committer | 2019-02-28 23:42:36 +0000 | |
commit | 960a7eb3d0ec95718ed77a0f44ec8ad07fba283a (patch) | |
tree | 289a17a53b3b9482b9a135a540c639e27fea54f9 | |
parent | Merge pull request #2481 from rusty-snake/gnome-mpv_to_celluloid (diff) | |
download | firejail-960a7eb3d0ec95718ed77a0f44ec8ad07fba283a.tar.gz firejail-960a7eb3d0ec95718ed77a0f44ec8ad07fba283a.tar.zst firejail-960a7eb3d0ec95718ed77a0f44ec8ad07fba283a.zip |
Add new profile for redshift (#2483)
* Add new config item for redshift to disable-programs.inc
As per https://github.com/jonls/redshift/blob/master/NEWS.md redshift now looks for the configuration file in `~/.config/redshift/redshift.conf`. The former location at `~/.config/redshift.conf` is deprecated but still searched as a fallback.
* Create redshift.profile
* Add redshift to firecfg
-rw-r--r-- | etc/disable-programs.inc | 1 | ||||
-rw-r--r-- | etc/redshift.profile | 49 | ||||
-rw-r--r-- | src/firecfg/firecfg.config | 1 |
3 files changed, 51 insertions, 0 deletions
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 2df014cf3..5eca9bc8f 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -234,6 +234,7 @@ blacklist ${HOME}/.config/qpdfview | |||
234 | blacklist ${HOME}/.config/qupzilla | 234 | blacklist ${HOME}/.config/qupzilla |
235 | blacklist ${HOME}/.config/qutebrowser | 235 | blacklist ${HOME}/.config/qutebrowser |
236 | blacklist ${HOME}/.config/ranger | 236 | blacklist ${HOME}/.config/ranger |
237 | blacklist ${HOME}/.config/redshift | ||
237 | blacklist ${HOME}/.config/redshift.conf | 238 | blacklist ${HOME}/.config/redshift.conf |
238 | blacklist ${HOME}/.config/remmina | 239 | blacklist ${HOME}/.config/remmina |
239 | blacklist ${HOME}/.config/ristretto | 240 | blacklist ${HOME}/.config/ristretto |
diff --git a/etc/redshift.profile b/etc/redshift.profile new file mode 100644 index 000000000..351b54075 --- /dev/null +++ b/etc/redshift.profile | |||
@@ -0,0 +1,49 @@ | |||
1 | # Firejail profile for redshift | ||
2 | # Description: Adjusts the color temperature of your screen according to your surroundings | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include redshift.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | noblacklist ${HOME}/.config/redshift | ||
11 | noblacklist ${HOME}/.config/redshift.conf | ||
12 | |||
13 | include disable-common.inc | ||
14 | include disable-devel.inc | ||
15 | include disable-passwdmgr.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-programs.inc | ||
18 | include disable-xdg.inc | ||
19 | |||
20 | include whitelist-var-common.inc | ||
21 | |||
22 | apparmor | ||
23 | caps.drop all | ||
24 | ipc-namespace | ||
25 | machine-id | ||
26 | netfilter | ||
27 | no3d | ||
28 | nodbus | ||
29 | nodvd | ||
30 | nogroups | ||
31 | nonewprivs | ||
32 | noroot | ||
33 | nosound | ||
34 | notv | ||
35 | nou2f | ||
36 | novideo | ||
37 | protocol unix,inet,inet6 | ||
38 | seccomp | ||
39 | shell none | ||
40 | tracelog | ||
41 | |||
42 | disable-mnt | ||
43 | private-cache | ||
44 | private-dev | ||
45 | private-tmp | ||
46 | |||
47 | memory-deny-write-execute | ||
48 | noexec ${HOME} | ||
49 | noexec /tmp | ||
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 924392032..fc2ad2793 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config | |||
@@ -378,6 +378,7 @@ qupzilla | |||
378 | qutebrowser | 378 | qutebrowser |
379 | rambox | 379 | rambox |
380 | redeclipse | 380 | redeclipse |
381 | redshift | ||
381 | remmina | 382 | remmina |
382 | rhythmbox | 383 | rhythmbox |
383 | ricochet | 384 | ricochet |