aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2020-12-12 12:15:44 +0000
committerLibravatar GitHub <noreply@github.com>2020-12-12 12:15:44 +0000
commit9d26477548875a167a68556d746016f1f146223b (patch)
treeab48cdfbeee72be0f4a4387af4cc13b2fbf1b5c8
parentrefactor playonlinux as wine redirect (#3811) (diff)
downloadfirejail-9d26477548875a167a68556d746016f1f146223b.tar.gz
firejail-9d26477548875a167a68556d746016f1f146223b.tar.zst
firejail-9d26477548875a167a68556d746016f1f146223b.zip
curl HSTS cache support (#3813)
* add curl HSTS support * add HSTS support
-rw-r--r--etc/inc/disable-programs.inc1
-rw-r--r--etc/profile-a-l/curl.profile6
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 25c7796da..9b098f43c 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -430,6 +430,7 @@ blacklist ${HOME}/.config/Zulip
430blacklist ${HOME}/.conkeror.mozdev.org 430blacklist ${HOME}/.conkeror.mozdev.org
431blacklist ${HOME}/.crawl 431blacklist ${HOME}/.crawl
432blacklist ${HOME}/.cups 432blacklist ${HOME}/.cups
433blacklist ${HOME}/.curl-hsts
433blacklist ${HOME}/.curlrc 434blacklist ${HOME}/.curlrc
434blacklist ${HOME}/.dashcore 435blacklist ${HOME}/.dashcore
435blacklist ${HOME}/.devilspie 436blacklist ${HOME}/.devilspie
diff --git a/etc/profile-a-l/curl.profile b/etc/profile-a-l/curl.profile
index 996ff51d3..5a5a7496a 100644
--- a/etc/profile-a-l/curl.profile
+++ b/etc/profile-a-l/curl.profile
@@ -7,6 +7,12 @@ include curl.local
7# Persistent global definitions 7# Persistent global definitions
8include globals.local 8include globals.local
9 9
10# curl 7.74.0 introduces experimental support for HSTS cache
11# https://daniel.haxx.se/blog/2020/11/03/hsts-your-curl/
12# technically this file can be anywhere but let's assume users have it in ${HOME}/.curl-hsts
13# if your setup diverts, add 'blacklist /path/to/curl/hsts/file' to your disable-programs.local
14# and 'noblacklist /path/to/curl/hsts/file' to curl.local to keep the sandbox logic intact
15noblacklist ${HOME}/.curl-hsts
10noblacklist ${HOME}/.curlrc 16noblacklist ${HOME}/.curlrc
11 17
12blacklist /tmp/.X11-unix 18blacklist /tmp/.X11-unix