Lines Matching defs:label_hnd
51 static struct selabel_handle *label_hnd = NULL;
93 if (label_hnd)
104 label_hnd = selabel_open(SELABEL_CTX_FILE, options, ELEMENTSOF(options));
106 label_hnd = selabel_open(SELABEL_CTX_FILE, NULL, 0);
108 if (!label_hnd) {
132 if (!label_hnd)
135 selabel_close(label_hnd);
136 label_hnd = NULL;
149 if (!label_hnd)
156 r = selabel_lookup_raw(label_hnd, &fcon, path, st.st_mode);
339 if (!label_hnd)
343 r = selabel_lookup_raw(label_hnd, &filecon, path, mode);
351 r = selabel_lookup_raw(label_hnd, &filecon, newpath, mode);
432 if (!label_hnd)
451 r = selabel_lookup_raw(label_hnd, &fcon, path, S_IFSOCK);
459 r = selabel_lookup_raw(label_hnd, &fcon, newpath, S_IFSOCK);