Avoid sandbox ACL grants under AppData

This commit is contained in:
David Wiesen
2026-03-25 11:03:32 -07:00
parent fba3c79885
commit 7c3209fe5f
@@ -44,6 +44,7 @@ const USERPROFILE_READ_ROOT_EXCLUSIONS: &[&str] = &[
".gnupg",
".aws",
".azure",
"AppData",
".kube",
".docker",
".config",
@@ -698,11 +699,13 @@ mod tests {
let user_profile = tmp.path();
let allowed_dir = user_profile.join("Documents");
let allowed_file = user_profile.join(".gitconfig");
let excluded_appdata = user_profile.join("AppData");
let excluded_dir = user_profile.join(".ssh");
let excluded_case_variant = user_profile.join(".AWS");
fs::create_dir_all(&allowed_dir).expect("create allowed dir");
fs::write(&allowed_file, "safe").expect("create allowed file");
fs::create_dir_all(excluded_appdata.join("Local")).expect("create excluded appdata");
fs::create_dir_all(&excluded_dir).expect("create excluded dir");
fs::create_dir_all(&excluded_case_variant).expect("create excluded case variant");