Skip to content

Create and read back protected runtime-root DACLs via native Node-API #327

Done

Description

@morluto

Create a directory with a protected DACL that grants only the current user and SYSTEM the required access, and read the security descriptor back by handle to verify owner, DACL presence, protected/inheritance state, admitted trustees, and absence of broad/null entries.

Acceptance:

  • Native implementation creates the root and child objects with the intended policy.
  • Readback verifies owner, explicit/inherited ACEs, propagation, and trustee vocabulary.
  • Null DACLs, broad allow entries, additional trustees, and unsupported filesystems fail closed.

Part of #290.

Activity

  1. added
    enhancement
    P1: high
    on Jul 20, 2026
  2. added
    area: native
    on Oct 14, 2026
  3. added
    area: runtime
    and removed on Nov 23, 2026
  4. morluto commented on Nov 24, 2026

    @morluto
    OwnerAuthor

    Closing as implemented: native/windows/src/filesystem.cc (Security, createRelative, verifyPrivate, createRuntime, directory, createPrivateFile) creates protected runtime roots and child objects via NtCreateFile with SE_DACL_PROTECTED granting FILE_ALL_ACCESS only to the current user SID and WinLocalSystemSid, and reads back OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION via GetSecurityInfo by handle to fail closed on missing/unprotected DACLs, extra ACEs, additional trustees, or unsupported filesystems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: higharea: nativearea: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions