Searched defs:filecon (Results 1 - 7 of 7) sorted by relevance

/external/selinux/libsepol/cil/src/
H A Dcil_reset_ast.c259 static void cil_reset_filecon(struct cil_filecon *filecon) argument
261 if (filecon->context_str == NULL && filecon->context != NULL) {
262 cil_reset_context(filecon->context);
H A Dcil_tree.c1283 struct cil_filecon *filecon = node->data; local
1285 cil_log(CIL_INFO, " %s %d", filecon->path_str, filecon->type);
1287 if (filecon->context_str != NULL) {
1288 cil_log(CIL_INFO, " %s", filecon->context_str);
1289 } else if (filecon->context != NULL) {
1290 cil_tree_print_context(filecon->context);
1291 } else if (filecon->context_str != NULL) {
1292 cil_log(CIL_INFO, " %s", filecon->context_str);
H A Dcil.c186 CIL_KEY_FILECON = cil_strpool_add("filecon");
244 cil_sort_init(&(*db)->filecon);
290 cil_sort_destroy(&(*db)->filecon);
1439 struct cil_sort *filecons = db->filecon;
1442 struct cil_filecon *filecon = filecons->array[i]; local
1443 struct cil_context *ctx = filecon->context;
1445 str_len += strlen(filecon->path_str);
1447 if (filecon->type != CIL_FILECON_ANY) {
1480 struct cil_filecon *filecon = filecons->array[i]; local
1481 struct cil_context *ctx = filecon
2145 cil_filecon_init(struct cil_filecon **filecon) argument
[all...]
H A Dcil_post.c371 db->filecon->count++;
481 struct cil_sort *sort = db->filecon;
1256 struct cil_filecon *filecon = node->data; local
1257 if (filecon->context) {
1258 rc = __evaluate_levelrange_expression(filecon->context->range, db);
1621 qsort(db->filecon->array, db->filecon->count, sizeof(db->filecon->array), cil_post_filecon_compare);
H A Dcil_resolve_ast.c1713 struct cil_filecon *filecon = current->data; local
1717 if (filecon->context_str != NULL) {
1718 rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum);
1722 filecon->context = (struct cil_context*)context_datum;
1723 } else if (filecon->context != NULL) {
1724 rc = cil_resolve_context(current, filecon->context, extra_args);
H A Dcil_build_ast.c3822 struct cil_filecon *filecon = NULL; local
3835 cil_filecon_init(&filecon);
3837 filecon->path_str = parse_current->next->data;
3840 filecon->type = CIL_FILECON_FILE;
3842 filecon->type = CIL_FILECON_DIR;
3844 filecon->type = CIL_FILECON_CHAR;
3846 filecon->type = CIL_FILECON_BLOCK;
3848 filecon->type = CIL_FILECON_SOCKET;
3850 filecon->type = CIL_FILECON_PIPE;
3852 filecon
3889 cil_destroy_filecon(struct cil_filecon *filecon) argument
[all...]
H A Dcil_internal.h270 struct cil_sort *filecon; member in struct:cil_db
937 void cil_filecon_init(struct cil_filecon **filecon);

Completed in 142 milliseconds