#windows #security #permissions

windows-permissions

Safe Rust bindings to Windows permissions APIs

8 releases

0.2.4 Jun 29, 2021
0.2.3 Jun 9, 2021
0.2.2 May 31, 2021
0.2.1 Apr 21, 2021
0.1.2 Jun 15, 2019

#12 in Windows APIs

Download history 2268/week @ 2021-04-08 1911/week @ 2021-04-15 2265/week @ 2021-04-22 2025/week @ 2021-04-29 2131/week @ 2021-05-06 2870/week @ 2021-05-13 2362/week @ 2021-05-20 2487/week @ 2021-05-27 1849/week @ 2021-06-03 2931/week @ 2021-06-10 2238/week @ 2021-06-17 2000/week @ 2021-06-24 2740/week @ 2021-07-01 2025/week @ 2021-07-08 1910/week @ 2021-07-15 1461/week @ 2021-07-22

9,646 downloads per month

MIT license

125KB
2.5K SLoC

Windows permissions

Safe Rust bindings to Windows permissions APIs.

Crates.io Docs.rs

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