Lines Matching refs:hnd
68 static __thread struct selabel_handle *hnd; variable
350 hnd = selabel_open(SELABEL_CTX_FILE, options, SELABEL_NOPT); in matchpathcon_init_prefix()
351 return hnd ? 0 : -1; in matchpathcon_init_prefix()
365 if (hnd) { in matchpathcon_fini()
366 selabel_close(hnd); in matchpathcon_fini()
367 hnd = NULL; in matchpathcon_fini()
435 if (!hnd && (matchpathcon_init_prefix(NULL, NULL) < 0)) in matchpathcon()
448 selabel_lookup_raw(hnd, con, path, mode) : in matchpathcon()
449 selabel_lookup(hnd, con, path, mode); in matchpathcon()
464 selabel_stats(hnd); in matchpathcon_checkmatches()
515 if (!hnd && (matchpathcon_init_prefix(NULL, NULL) < 0)) in selinux_file_context_verify()
518 if (selabel_lookup_raw(hnd, &fcontext, path, mode) != 0) { in selinux_file_context_verify()
546 if (!hnd && (matchpathcon_init_prefix(NULL, NULL) < 0)) in selinux_lsetfilecon_default()
551 if (selabel_lookup_raw(hnd, &scontext, path, st.st_mode)) { in selinux_lsetfilecon_default()