Searched refs:getcon (Results 1 – 6 of 6) sorted by relevance
231 pub fn getcon() -> Result<Context> { in getcon() function236 match unsafe { selinux::getcon(&mut con) } { in getcon()337 let context = getcon()?; in check_context()486 assert_eq!(getpidcon(std::process::id() as i32).unwrap(), getcon().unwrap()); in test_getpidcon()
31 if (getcon(&context) != 0) { in BenchmarkSuccess()
86 if (getcon(&ctx) == -1) { in GetSecurityContext()
73 if (getcon(&raw_con) == -1) { in ComputeContextFromExecutable()
40 use selinux::getcon;42 use tests::test_getcon as getcon;436 let target_context = getcon().context("check_keystore_permission: getcon failed.")?; in check_keystore_permission()459 Domain::APP => getcon().context("check_grant_permission: getcon failed.")?, in check_grant_permission()531 getcon().context("check_key_permission: getcon failed.")? in check_key_permission()661 let context = selinux::getcon()?; in check_context()
43 if (getcon(&mSeContext) != 0) { in AccessControl()