Skip to content

Make source_permissions functional on Windows#420

Draft
silug wants to merge 1 commit intoOpenVoxProject:mainfrom
silug:fix-source-permissions-windows
Draft

Make source_permissions functional on Windows#420
silug wants to merge 1 commit intoOpenVoxProject:mainfrom
silug:fix-source-permissions-windows

Conversation

@silug
Copy link
Copy Markdown
Contributor

@silug silug commented Apr 24, 2026

Short description

Restore the Windows Security API calls in WindowsStat so that source_permissions => use and use_when_creating actually read owner, group, and mode from the source file via Puppet::Util::Windows::Security. Falls back to safe defaults on invalid DACL errors (e.g. non-NTFS volumes) and a known VirtualBox ERROR_INVALID_FUNCTION edge case.

The raise in WindowsStat#initialize that blocked non-:ignore values on Windows is removed. Update specs to reflect the new behavior.

Related: #340

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

Restore the Windows Security API calls in WindowsStat so that
source_permissions => use and use_when_creating actually read owner,
group, and mode from the source file via Puppet::Util::Windows::Security.
Falls back to safe defaults on invalid DACL errors (e.g. non-NTFS
volumes) and a known VirtualBox ERROR_INVALID_FUNCTION edge case.

The raise in WindowsStat#initialize that blocked non-:ignore values on
Windows is removed. Update specs to reflect the new behavior.

Related: OpenVoxProject#340

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant