aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
authorLibravatar Tad <tad@spotco.us>2019-04-13 10:27:47 -0400
committerLibravatar Tad <tad@spotco.us>2019-04-13 14:37:02 -0400
commitab78a250dbf889898427f46f52260425ccc8eda5 (patch)
treeac2c49207d51f3779ebbd83098fbd8cab7adb27f /src/firejail/profile.c
parentFixes https://github.com/netblue30/firejail/issues/2547 (#2648) (diff)
downloadfirejail-ab78a250dbf889898427f46f52260425ccc8eda5.tar.gz
firejail-ab78a250dbf889898427f46f52260425ccc8eda5.tar.zst
firejail-ab78a250dbf889898427f46f52260425ccc8eda5.zip
Add a conditional to control DRM/noexec exception for browsers
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 667b03652..c8619f7e2 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -151,10 +151,15 @@ static int check_disable_u2f(void) {
151 return checkcfg(CFG_BROWSER_DISABLE_U2F) != 0; 151 return checkcfg(CFG_BROWSER_DISABLE_U2F) != 0;
152} 152}
153 153
154static int check_allow_drm(void) {
155 return checkcfg(CFG_BROWSER_ALLOW_DRM) != 0;
156}
157
154Cond conditionals[] = { 158Cond conditionals[] = {
155 {"HAS_APPIMAGE", check_appimage}, 159 {"HAS_APPIMAGE", check_appimage},
156 {"HAS_NODBUS", check_nodbus}, 160 {"HAS_NODBUS", check_nodbus},
157 {"BROWSER_DISABLE_U2F", check_disable_u2f}, 161 {"BROWSER_DISABLE_U2F", check_disable_u2f},
162 {"BROWSER_ALLOW_DRM", check_allow_drm},
158 { NULL, NULL } 163 { NULL, NULL }
159}; 164};
160 165