summaryrefslogtreecommitdiff
path: root/runtime/permissions/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/permissions/lib.rs')
-rw-r--r--runtime/permissions/lib.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/permissions/lib.rs b/runtime/permissions/lib.rs
index 1ac8779af..e66f16a7f 100644
--- a/runtime/permissions/lib.rs
+++ b/runtime/permissions/lib.rs
@@ -1691,19 +1691,10 @@ impl PermissionsContainer {
self.check_was_allow_all_flag_passed().map_err(error_all)?;
}
}
- if path.starts_with("/etc") {
- self.check_was_allow_all_flag_passed().map_err(error_all)?;
- }
} else if cfg!(unix) {
if path.starts_with("/dev") {
self.check_was_allow_all_flag_passed().map_err(error_all)?;
}
- if path.starts_with("/etc") {
- self.check_was_allow_all_flag_passed().map_err(error_all)?;
- }
- if path.starts_with("/private/etc") {
- self.check_was_allow_all_flag_passed().map_err(error_all)?;
- }
} else if cfg!(target_os = "windows") {
fn is_normalized_windows_drive_path(path: &Path) -> bool {
let s = path.as_os_str().as_encoded_bytes();