Lines Matching refs:label_hnd
44 static struct selabel_handle *label_hnd = NULL;
79 if (label_hnd)
93 label_hnd = selabel_open(SELABEL_CTX_FILE, options, ELEMENTSOF(options));
95 label_hnd = selabel_open(SELABEL_CTX_FILE, NULL, 0);
97 if (!label_hnd) {
130 if (!label_hnd)
133 selabel_close(label_hnd);
134 label_hnd = NULL;
147 if (!label_hnd)
154 r = selabel_lookup_raw(label_hnd, &fcon, path, st.st_mode);
331 if (!label_hnd)
335 r = selabel_lookup_raw(label_hnd, &filecon, path, mode);
343 r = selabel_lookup_raw(label_hnd, &filecon, newpath, mode);
420 if (!label_hnd)
424 r = selabel_lookup_raw(label_hnd, &fcon, path, S_IFDIR);
432 r = selabel_lookup_raw(label_hnd, &fcon, newpath, S_IFDIR);
474 if (!label_hnd)
493 r = selabel_lookup_raw(label_hnd, &fcon, path, S_IFSOCK);
501 r = selabel_lookup_raw(label_hnd, &fcon, newpath, S_IFSOCK);