Home
last modified time | relevance | path

Searched refs:filecon (Results 1 – 16 of 16) sorted by relevance

/external/selinux/secilc/test/
Dpolicy.cil262 (filecon "/usr/bin/foo" file system_u_bin_t_l2h)
263 (filecon "/usr/bin/bar" file (system_u system_r kernel_t (low low)))
264 (filecon "/usr/bin/baz" any ())
265 (filecon "/usr/bin/aaa" any (system_u system_r kernel_t ((s0) (s3 (range c0 c2)))))
266 (filecon "/usr/bin/bbb" any (system_u system_r kernel_t ((s0 (c0)) high)))
267 (filecon "/usr/bin/ccc" any (system_u system_r kernel_t (low (s3 (cats01)))))
268 (filecon "/usr/bin/ddd" any (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
Dintegration.cil168 (filecon "/usr/bin/" "foo" file system_u_bin_t_l2h)
169 (filecon "/usr/bin/" "bar" file ())
170 (filecon "/usr/bin/" "baz" any ())
/external/selinux/secilc/docs/
Dcil_file_labeling_statements.md4 filecon section in File Labeling Statements
11 (filecon "path" file_type context_id)
22 <td align="left"><p><code>filecon</code></p></td>
23 <td align="left"><p>The <code>filecon</code> keyword.</p></td>
94 (filecon "/system/bin/run-as" file runas_exec_context)
95 (filecon "/dev/socket/wpa_wlan[0-9]" any u:object_r:wpa.socket:s0-s0)
96 (filecon "/data/local/mine" dir ())
DREADME.md77 * [filecon](cil_file_labeling_statements.md#filecon)
Dcil_context_statement.md62 (filecon "/system/bin/run-as" file runas_exec_context)
Dcil_container_statements.md164 (filecon "/data/data/com.se4android.netclient/.*" file log_file_context)
173 (filecon "/data/data/com.se4android.netserver/.*" file log_file_context)
/external/selinux/libsepol/cil/src/
Dcil.c260 cil_sort_init(&(*db)->filecon); in cil_db_init()
313 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy()
1527 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string()
1530 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1531 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1533 str_len += strlen(filecon->path_str); in cil_filecons_to_string()
1535 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string()
1568 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1569 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1572 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
[all …]
Dcil_reset_ast.c285 static void cil_reset_filecon(struct cil_filecon *filecon) in cil_reset_filecon() argument
287 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_reset_filecon()
288 cil_reset_context(filecon->context); in cil_reset_filecon()
Dcil_tree.c1398 struct cil_filecon *filecon = node->data; in cil_tree_print_node() local
1400 cil_log(CIL_INFO, " %s %d", filecon->path_str, filecon->type); in cil_tree_print_node()
1402 if (filecon->context != NULL) { in cil_tree_print_node()
1403 cil_tree_print_context(filecon->context); in cil_tree_print_node()
1404 } else if (filecon->context_str != NULL) { in cil_tree_print_node()
1405 cil_log(CIL_INFO, " %s", filecon->context_str); in cil_tree_print_node()
Dcil_build_ast.c4214 struct cil_filecon *filecon = NULL; in cil_gen_filecon() local
4227 cil_filecon_init(&filecon); in cil_gen_filecon()
4229 filecon->path_str = parse_current->next->data; in cil_gen_filecon()
4232 filecon->type = CIL_FILECON_FILE; in cil_gen_filecon()
4234 filecon->type = CIL_FILECON_DIR; in cil_gen_filecon()
4236 filecon->type = CIL_FILECON_CHAR; in cil_gen_filecon()
4238 filecon->type = CIL_FILECON_BLOCK; in cil_gen_filecon()
4240 filecon->type = CIL_FILECON_SOCKET; in cil_gen_filecon()
4242 filecon->type = CIL_FILECON_PIPE; in cil_gen_filecon()
4244 filecon->type = CIL_FILECON_SYMLINK; in cil_gen_filecon()
[all …]
Dcil_internal.h289 struct cil_sort *filecon; member
1030 void cil_filecon_init(struct cil_filecon **filecon);
Dcil_post.c620 db->filecon->count++; in __cil_post_db_count_helper()
755 struct cil_sort *sort = db->filecon; in __cil_post_db_array_helper()
1910 struct cil_filecon *filecon = node->data; in __cil_post_db_cat_helper() local
1911 if (filecon->context) { in __cil_post_db_cat_helper()
1912 rc = __evaluate_levelrange_expression(filecon->context->range, db); in __cil_post_db_cat_helper()
2408 …rc = __cil_post_process_context_rules(db->filecon, cil_post_filecon_compare, cil_post_filecon_cont… in cil_post_db()
Dcil_resolve_ast.c1904 struct cil_filecon *filecon = current->data; in cil_resolve_filecon() local
1908 if (filecon->context_str != NULL) { in cil_resolve_filecon()
1909 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon()
1913 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon()
1914 } else if (filecon->context != NULL) { in cil_resolve_filecon()
1915 rc = cil_resolve_context(current, filecon->context, extra_args); in cil_resolve_filecon()
Dcil_build_ast.h177 void cil_destroy_filecon(struct cil_filecon *filecon);
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil35 ;(filecon root path file con)
Dmls_policy.cil59 (filecon root path file con)