Lines Matching refs:unwrap
174 let _lock = LIB_SELINUX_LOCK.lock().unwrap(); in new()
204 let _lock = LIB_SELINUX_LOCK.lock().unwrap(); in lookup()
233 let _lock = LIB_SELINUX_LOCK.lock().unwrap(); in getcon()
257 let _lock = LIB_SELINUX_LOCK.lock().unwrap(); in getpidcon()
294 let _lock = LIB_SELINUX_LOCK.lock().unwrap(); in check_access()
338 match context.to_str().unwrap() { in check_context()
369 let tctx = Context::new("u:object_r:keystore:s0").unwrap(); in context_from_string()
370 let sctx = Context::new("u:r:system_server:s0").unwrap(); in context_from_string()
418 .unwrap()
465 .unwrap()
486 assert_eq!(getpidcon(std::process::id() as i32).unwrap(), getcon().unwrap()); in test_getpidcon()