mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Avoid sandbox ACL grants under AppData
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user