diff --git a/windows/crates/ps-service/src/paths.rs b/windows/crates/ps-service/src/paths.rs index 9ae5340..d18ade4 100644 --- a/windows/crates/ps-service/src/paths.rs +++ b/windows/crates/ps-service/src/paths.rs @@ -145,7 +145,7 @@ fn protect(dir: &Path) -> std::io::Result<()> { PROTECTED_DACL_SECURITY_INFORMATION, }; - let sddl: Vec = "O:SYD:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x0;;;OW)".encode_utf16().chain(Some(0)).collect(); + let sddl: Vec = "O:SYD:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;RC;;;OW)".encode_utf16().chain(Some(0)).collect(); let path: Vec = dir.as_os_str().encode_wide().chain(Some(0)).collect(); let mut sd: *mut c_void = null_mut(); // SAFETY: NUL-terminated inputs; the descriptor is freed below, and the DACL points into it.