Searched refs:SeContext (Results 1 – 2 of 2) sorted by relevance
33 pub enum SeContext { enum40 impl PartialEq for SeContext { implementation48 impl Eq for SeContext {} implementation50 impl fmt::Display for SeContext { implementation56 impl Drop for SeContext { implementation66 impl Deref for SeContext { implementation79 impl SeContext { implementation104 pub fn getfilecon<F: AsRawFd>(file: &F) -> Result<SeContext> { in getfilecon() argument112 Ok(SeContext::Raw(con)) in getfilecon()
24 use crate::selinux::{getfilecon, SeContext};1134 fn check_label_is_allowed(context: &SeContext) -> Result<()> { in check_label_is_allowed()1734 let context = SeContext::new(label)?; in test_is_allowed_label_for_partition()