Searched refs:filecon (Results 1 – 13 of 13) sorted by relevance
/external/selinux/secilc/test/ |
D | policy.cil | 233 (filecon "/usr/bin/foo" file system_u_bin_t_l2h) 234 (filecon "/usr/bin/bar" file (system_u system_r kernel_t (low low))) 235 (filecon "/usr/bin/baz" any ()) 236 (filecon "/usr/bin/aaa" any (system_u system_r kernel_t ((s0) (s3 (range c0 c2))))) 237 (filecon "/usr/bin/bbb" any (system_u system_r kernel_t ((s0 (c0)) high))) 238 (filecon "/usr/bin/ccc" any (system_u system_r kernel_t (low (s3 (cats01))))) 239 (filecon "/usr/bin/ddd" any (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
|
D | integration.cil | 168 (filecon "/usr/bin/" "foo" file system_u_bin_t_l2h) 169 (filecon "/usr/bin/" "bar" file ()) 170 (filecon "/usr/bin/" "baz" any ())
|
/external/selinux/libsepol/cil/src/ |
D | cil.c | 244 cil_sort_init(&(*db)->filecon); in cil_db_init() 290 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy() 1439 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string() 1442 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1443 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1445 str_len += strlen(filecon->path_str); in cil_filecons_to_string() 1447 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string() 1480 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1481 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1484 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string() [all …]
|
D | cil_reset_ast.c | 259 static void cil_reset_filecon(struct cil_filecon *filecon) in cil_reset_filecon() argument 261 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_reset_filecon() 262 cil_reset_context(filecon->context); in cil_reset_filecon()
|
D | cil_tree.c | 1283 struct cil_filecon *filecon = node->data; in cil_tree_print_node() local 1285 cil_log(CIL_INFO, " %s %d", filecon->path_str, filecon->type); in cil_tree_print_node() 1287 if (filecon->context_str != NULL) { in cil_tree_print_node() 1288 cil_log(CIL_INFO, " %s", filecon->context_str); in cil_tree_print_node() 1289 } else if (filecon->context != NULL) { in cil_tree_print_node() 1290 cil_tree_print_context(filecon->context); in cil_tree_print_node() 1291 } else if (filecon->context_str != NULL) { in cil_tree_print_node() 1292 cil_log(CIL_INFO, " %s", filecon->context_str); in cil_tree_print_node()
|
D | cil_post.c | 371 db->filecon->count++; in __cil_post_db_count_helper() 481 struct cil_sort *sort = db->filecon; in __cil_post_db_array_helper() 1256 struct cil_filecon *filecon = node->data; in __cil_post_db_cat_helper() local 1257 if (filecon->context) { in __cil_post_db_cat_helper() 1258 rc = __evaluate_levelrange_expression(filecon->context->range, db); in __cil_post_db_cat_helper() 1621 …qsort(db->filecon->array, db->filecon->count, sizeof(db->filecon->array), cil_post_filecon_compare… in cil_post_db()
|
D | cil_build_ast.c | 3822 struct cil_filecon *filecon = NULL; in cil_gen_filecon() local 3835 cil_filecon_init(&filecon); in cil_gen_filecon() 3837 filecon->path_str = parse_current->next->data; in cil_gen_filecon() 3840 filecon->type = CIL_FILECON_FILE; in cil_gen_filecon() 3842 filecon->type = CIL_FILECON_DIR; in cil_gen_filecon() 3844 filecon->type = CIL_FILECON_CHAR; in cil_gen_filecon() 3846 filecon->type = CIL_FILECON_BLOCK; in cil_gen_filecon() 3848 filecon->type = CIL_FILECON_SOCKET; in cil_gen_filecon() 3850 filecon->type = CIL_FILECON_PIPE; in cil_gen_filecon() 3852 filecon->type = CIL_FILECON_SYMLINK; in cil_gen_filecon() [all …]
|
D | cil_internal.h | 270 struct cil_sort *filecon; member 937 void cil_filecon_init(struct cil_filecon **filecon);
|
D | cil_build_ast.h | 168 void cil_destroy_filecon(struct cil_filecon *filecon);
|
D | cil_resolve_ast.c | 1713 struct cil_filecon *filecon = current->data; in cil_resolve_filecon() local 1717 if (filecon->context_str != NULL) { in cil_resolve_filecon() 1718 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon() 1722 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon() 1723 } else if (filecon->context != NULL) { in cil_resolve_filecon() 1724 rc = cil_resolve_context(current, filecon->context, extra_args); in cil_resolve_filecon()
|
/external/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 35 ;(filecon root path file con)
|
D | mls_policy.cil | 59 (filecon root path file con)
|
/external/selinux/libselinux/ |
D | ChangeLog | 243 * Add new file_context.subs_dist for distro specific filecon substitutions
|