aboutsummaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc')
-rw-r--r--devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc b/devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc
new file mode 100644
index 000000000000..3b2a08ccac45
--- /dev/null
+++ b/devel/electron7/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc
@@ -0,0 +1,11 @@
+--- chrome/browser/native_file_system/chrome_native_file_system_permission_context.cc.orig 2019-12-12 12:39:11 UTC
++++ chrome/browser/native_file_system/chrome_native_file_system_permission_context.cc
+@@ -225,7 +225,7 @@ const struct {
+ {base::DIR_APP_DATA, nullptr, true},
+ {base::DIR_HOME, FILE_PATH_LITERAL("Library"), true},
+ #endif
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ // On Linux also block access to devices via /dev, as well as security
+ // sensitive data in /sys and /proc.
+ {kNoBasePathKey, FILE_PATH_LITERAL("/dev"), true},