mirror of https://github.com/raandree/NTFSSecurity
Browse Source
- progress and activeContext: 5.0.0-rc3 published from 914e8da; #34 reopened for a tester, #67 closed as not planned; 5.0.0 is next. - Decision 19: the cmdlets write only the sections that they change. Decision 18: the Gallery description announces the archive, and the module writes no warning on import. - techContext: the label rc3 and the Gallery versions; commands for the maintainer as code blocks at the end of the reply; no closing keywords in pull requests unless the merge should close the issue; test runs as a basic user; stale lines removed. - systemPatterns: Decision 19 in the index, and Set-TestOwner. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>pull/113/head
6 changed files with 121 additions and 83 deletions
@ -0,0 +1,30 @@ |
|||
--- |
|||
status: accepted |
|||
date: 2026-10-06 |
|||
last-verified: 2026-10-06 |
|||
owner: shared |
|||
source: maintainer decisions of 2026-10-06 for 5.0.0-rc3 (#112) |
|||
--- |
|||
|
|||
# Decision 19: Cmdlets write only the sections that they change |
|||
|
|||
- Choice: A cmdlet that changes a file or folder reads and writes only the |
|||
section of the security descriptor that it changes, and names that |
|||
section in the write: the access and access inheritance cmdlets the |
|||
DACL, the audit cmdlets the SACL. `Set-NTFSSecurityDescriptor` writes |
|||
only the sections that changed since the descriptor was read or last |
|||
written; a descriptor without changes writes nothing, and `-Verbose` |
|||
names the sections. When the descriptor of `Get-NTFSSecurityDescriptor` |
|||
includes the SACL, it reads the DACL in a separate call. `Clear-NTFSAudit` |
|||
reports an error without the Security privilege, like the other audit |
|||
cmdlets. |
|||
- Rationale: For a DACL without the auto-inherit flag, Windows returns the |
|||
owner and the group even when only the DACL is read, and writing every |
|||
section of the descriptor writes the owner back. Where the account may not |
|||
assign that owner, that fails with error 1307 (#34). Read together with |
|||
the SACL, such a DACL loses the inherited flag of its entries when the |
|||
parent folder has no SACL, and writing it back stored them as explicit |
|||
copies. |
|||
- Rejected: writing every section in turn and ignoring the errors, the |
|||
approach of the branch `fix/#34` (2023). |
|||
- Applied: 5.0.0-rc3, #112. |
|||
Loading…
Reference in new issue