#windows #security #permissions

windows-permissions

Safe Rust bindings to Windows permissions APIs

5 releases

0.2.1 Apr 21, 2021
0.2.0 Apr 21, 2021
0.1.2 Jun 15, 2019
0.1.1 Jun 15, 2019
0.1.0 Jun 11, 2019

#18 in Windows APIs

Download history 3/week @ 2021-01-18 52/week @ 2021-01-25 465/week @ 2021-02-01 892/week @ 2021-02-08 1588/week @ 2021-02-15 1634/week @ 2021-02-22 2457/week @ 2021-03-01 1238/week @ 2021-03-08 1573/week @ 2021-03-15 1845/week @ 2021-03-22 1967/week @ 2021-03-29 2188/week @ 2021-04-05 2005/week @ 2021-04-12 1903/week @ 2021-04-19 2895/week @ 2021-04-26

6,275 downloads per month

MIT license

110KB
2K SLoC

Windows permissions

Safe Rust bindings to Windows permissions APIs.

Build Status

Overview

This crate provides safe Rust wrappers over several Windows permissions concepts, including:

  • SID (Security Identifier)
  • ACL (Access Control List)
  • ACE (Access Control Entry)
  • SD (Security Descriptor)

There are two kinds of abstractions:

  • The primary Windows data structures are available and can be used directly.
  • In the wrappers crate, there are safe versions of the Windows API functions. Any Windows API function not implemented should be reported as an issue.

Contributing

PRs are happily accepted! In general, unsafe code should be confined to the wrappers module -- the rest of this crate should be implemented safely based on that code.

Help wanted

  • Make wrappers more complete with additional Windows API functions
  • Add new data structures that cover more of the permissions APIs

Dependencies

~52KB