Searched refs:filecon (Results 1 – 15 of 15) sorted by relevance
/third_party/selinux/secilc/docs/ |
D | cil_file_labeling_statements.md | 4 filecon section in File Labeling Statements 12 (filecon "path" file_type context_id) 24 <td align="left"><p><code>filecon</code></p></td> 25 <td align="left"><p>The <code>filecon</code> keyword.</p></td> 99 (filecon "/system/bin/run-as" file runas_exec_context) 100 (filecon "/dev/socket/wpa_wlan[0-9]" any u:object_r:wpa.socket:s0-s0) 101 (filecon "/data/local/mine" dir ()) 215 …ting a file type. Valid values are the same as in [`filecon`](cil_file_labeling_statements.md#file…
|
D | README.md | 77 * [filecon](cil_file_labeling_statements.md#filecon)
|
D | cil_context_statement.md | 65 (filecon "/system/bin/run-as" file runas_exec_context)
|
D | cil_container_statements.md | 189 (filecon "/data/data/com.se4android.netclient/.*" file log_file_context) 198 (filecon "/data/data/com.se4android.netserver/.*" file log_file_context)
|
/third_party/selinux/libsepol/cil/src/ |
D | cil.c | 415 cil_sort_init(&(*db)->filecon); in cil_db_init() 470 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy() 1725 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string() 1728 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1729 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1731 str_len += strlen(filecon->path_str); in cil_filecons_to_string() 1733 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string() 1766 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1767 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1770 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string() [all …]
|
D | cil_reset_ast.c | 322 static void cil_reset_filecon(struct cil_filecon *filecon) in cil_reset_filecon() argument 324 if (filecon->context_str == NULL) { in cil_reset_filecon() 325 cil_reset_context(filecon->context); in cil_reset_filecon() 327 filecon->context = NULL; in cil_reset_filecon()
|
D | cil_write_ast.c | 1232 struct cil_filecon *filecon = node->data; in cil_write_ast_node() local 1234 fprintf(out, "\"%s\" ", filecon->path_str); in cil_write_ast_node() 1235 switch (filecon->type) { in cil_write_ast_node() 1263 if (filecon->context) in cil_write_ast_node() 1264 write_context(out, filecon->context, CIL_TRUE); in cil_write_ast_node() 1265 else if (filecon->context_str) in cil_write_ast_node() 1266 fprintf(out, "%s", filecon->context_str); in cil_write_ast_node()
|
D | cil_build_ast.c | 4215 struct cil_filecon *filecon = NULL; in cil_gen_filecon() local 4228 cil_filecon_init(&filecon); in cil_gen_filecon() 4230 filecon->path_str = parse_current->next->data; in cil_gen_filecon() 4233 filecon->type = CIL_FILECON_ANY; in cil_gen_filecon() 4235 filecon->type = CIL_FILECON_FILE; in cil_gen_filecon() 4237 filecon->type = CIL_FILECON_DIR; in cil_gen_filecon() 4239 filecon->type = CIL_FILECON_CHAR; in cil_gen_filecon() 4241 filecon->type = CIL_FILECON_BLOCK; in cil_gen_filecon() 4243 filecon->type = CIL_FILECON_SOCKET; in cil_gen_filecon() 4245 filecon->type = CIL_FILECON_PIPE; in cil_gen_filecon() [all …]
|
D | cil_internal.h | 298 struct cil_sort *filecon; member 1046 void cil_filecon_init(struct cil_filecon **filecon);
|
D | cil_post.c | 634 db->filecon->count++; in __cil_post_db_count_helper() 769 struct cil_sort *sort = db->filecon; in __cil_post_db_array_helper() 1920 struct cil_filecon *filecon = node->data; in __cil_post_db_cat_helper() local 1921 if (filecon->context) { in __cil_post_db_cat_helper() 1922 rc = __evaluate_levelrange_expression(filecon->context->range, db); in __cil_post_db_cat_helper() 2431 …rc = __cil_post_process_context_rules(db->filecon, cil_post_filecon_compare, cil_post_filecon_cont… in cil_post_db()
|
D | cil_build_ast.h | 179 void cil_destroy_filecon(struct cil_filecon *filecon);
|
D | cil_resolve_ast.c | 1928 struct cil_filecon *filecon = current->data; in cil_resolve_filecon() local 1932 if (filecon->context_str != NULL) { in cil_resolve_filecon() 1933 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon() 1937 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon() 1938 } else if (filecon->context != NULL) { in cil_resolve_filecon() 1939 rc = cil_resolve_context(current, filecon->context, extra_args); in cil_resolve_filecon()
|
/third_party/selinux/secilc/test/ |
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 ())
|
/third_party/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)
|