elevate-ti 0.2.2

A safe, idiomatic Rust library to obtain Windows TrustedInstaller privileges
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Pluggable privilege elevation strategies.

pub mod winlogon_ti;

pub use winlogon_ti::TrustedInstallerStrategy;

use crate::{error::ElevateError, security::Token};

/// Contract for privilege elevation mechanisms.
pub trait ElevationStrategy {
    /// Execute the strategy and return a fully elevated primary security token.
    fn acquire_primary_token(&self) -> Result<Token, ElevateError>;
}