pseudoroot 0.2.1

A Rust fakeroot via library interposition (LD_PRELOAD / DYLD_INSERT_LIBRARIES): run commands as if root, no real root access needed
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Platform-specific `dlsym(RTLD_NEXT)` wrappers for calling real libc functions.

#[cfg(target_os = "linux")]
mod linux;

#[cfg(target_os = "macos")]
mod macos;

#[cfg(target_os = "linux")]
pub use linux::*;

#[cfg(target_os = "macos")]
pub use macos::*;