windows: an OWNER RIGHTS entry Windows accepts
An empty access mask is refused as an invalid ACL; read-control alone still takes the owner's implicit WRITE_DAC away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cd0bcae4c9
commit
b878dd93db
1 file changed
+1
-1
@@ -145,7 +145,7 @@ fn protect(dir: &Path) -> std::io::Result<()> {
|
||||
PROTECTED_DACL_SECURITY_INFORMATION,
|
||||
};
|
||||
|
||||
let sddl: Vec<u16> = "O:SYD:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x0;;;OW)".encode_utf16().chain(Some(0)).collect();
|
||||
let sddl: Vec<u16> = "O:SYD:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;RC;;;OW)".encode_utf16().chain(Some(0)).collect();
|
||||
let path: Vec<u16> = 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.
|
||||
|
||||
Reference in new issue
Block a user