diff --git a/changelog.d/+change-not-found-order-filter.changed.md b/changelog.d/+change-not-found-order-filter.changed.md new file mode 100644 index 00000000000..01d38e596eb --- /dev/null +++ b/changelog.d/+change-not-found-order-filter.changed.md @@ -0,0 +1 @@ +Filesystem: File not found default filter happens after checking local filter \ No newline at end of file diff --git a/mirrord/layer/src/file/filter.rs b/mirrord/layer/src/file/filter.rs index 1b3238bc04d..9c124784dae 100644 --- a/mirrord/layer/src/file/filter.rs +++ b/mirrord/layer/src/file/filter.rs @@ -143,8 +143,8 @@ impl FileFilter { Detour::Success(()) } } - _ if self.default_not_found.is_match(text) => Detour::Error(HookError::FileNotFound), _ if self.local.is_match(text) => Detour::Bypass(op()), + _ if self.default_not_found.is_match(text) => Detour::Error(HookError::FileNotFound), _ if self.default_remote_ro.is_match(text) && !write => Detour::Success(()), _ if self.default_local.is_match(text) => Detour::Bypass(op()), FsModeConfig::LocalWithOverrides => Detour::Bypass(op()),