You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protect Windows DACLs throughout safeWriteText publication #2392
Design and implement Windows DACL protection for safeWriteText. A file with a restrictive DACL can be written in a directory with broader inherited permissions. The current implementation uses POSIX modes for its staging directory and backup copy, then restores the target DACL after publication. A failed icacls /restore is silent, so a caller can receive success when the published file has broader permissions.
Design Windows DACL protection for staging and backup files before sensitive bytes are written or copied. Include the caller-supplied tempPath case.
Apply the appropriate target DACL before publication. Fail closed before publication if the required protection cannot be established.
Report any post-commit ACL failure with the published target path and the underlying cause. Make clear that publication already occurred; do not imply rollback or reuse PostCommitDurabilityError for an ACL failure.
Add Windows tests for restrictive target DACLs, staging and backup protection, and ACL failure paths. Verify publication state, error details, and cleanup.
Sequencing
The maintainer must decide whether this work is required before PR #2385 merges or belongs in the next unit. The saved Security Boundaries assessment for PR #2385 is blocking; its status has not been rechecked for the current revision.
Activity