Lines Matching refs:Context
23 use anyhow::Context as AnyhowContext;
93 pub enum Context { enum
100 impl PartialEq for Context { implementation
108 impl Eq for Context {} implementation
110 impl fmt::Display for Context { implementation
116 impl Drop for Context { implementation
127 impl Deref for Context { implementation
138 impl Context { implementation
152 fn lookup(&self, key: &str) -> Result<Context>; in lookup() argument
196 fn lookup(&self, key: &str) -> Result<Context> { in lookup() argument
210 Ok(Context::Raw(con)) in lookup()
231 pub fn getcon() -> Result<Context> { in getcon()
239 Ok(Context::Raw(con)) in getcon()
255 pub fn getpidcon(pid: selinux::pid_t) -> Result<Context> { in getpidcon() argument
263 Ok(Context::Raw(con)) in getpidcon()
653 fn check_context() -> Result<(Context, &'static str, bool)> { in check_context()
686 let tctx = Context::new("u:object_r:keystore:s0").unwrap(); in context_from_string()
687 let sctx = Context::new("u:r:system_server:s0").unwrap(); in context_from_string()
721 let scontext = Context::new("u:r:shell:s0")?;
768 let ks_context = Context::new("u:object_r:keystore:s0")?;
769 let priv_context = Context::new("u:r:system_server:s0")?;
770 let unpriv_context = Context::new("u:r:shell:s0")?;