Searched refs:getcon (Results 1 – 11 of 11) 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()
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()
31 if (getcon(&context) != 0) { in BenchmarkSuccess()
86 if (getcon(&ctx) == -1) { in GetSecurityContext()
73 if (getcon(&raw_con) == -1) { in ComputeContextFromExecutable()
43 if (getcon(&mSeContext) != 0) { in AccessControl()
93 CHECK(getcon(&mThisProcessContext) == 0); in Access()
293 int ret = getcon(&tmp); in getCon()
119 if (selinux_enabled > 0 && getcon(&drmserver_context) != 0) { in instantiate()
293 assert_eq!(selinux_sys::getcon(&mut out_ptr), 0); in get_selinux_context()
377 if (getcon(&con) == 0) { in ForkAndExec()