/third_party/eudev/src/shared/ |
D | selinux-util.c | 327 _cleanup_security_context_free_ security_context_t filecon = NULL; in mac_selinux_create_file_prepare() local 335 r = selabel_lookup_raw(label_hnd, &filecon, path, mode); in mac_selinux_create_file_prepare() 343 r = selabel_lookup_raw(label_hnd, &filecon, newpath, mode); in mac_selinux_create_file_prepare() 353 r = setfscreatecon(filecon); in mac_selinux_create_file_prepare() 355 … log_enforcing("Failed to set SELinux security context %s for %s: %m", filecon, path); in mac_selinux_create_file_prepare()
|
/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> 97 (filecon "/system/bin/run-as" file runas_exec_context) 98 (filecon "/dev/socket/wpa_wlan[0-9]" any u:object_r:wpa.socket:s0-s0) 99 (filecon "/data/local/mine" dir ())
|
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_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 if (filecon->type == CIL_FILECON_FILE) in cil_write_ast_node() 1237 else if (filecon->type == CIL_FILECON_DIR) in cil_write_ast_node() 1239 else if (filecon->type == CIL_FILECON_CHAR) in cil_write_ast_node() 1241 else if (filecon->type == CIL_FILECON_BLOCK) in cil_write_ast_node() 1243 else if (filecon->type == CIL_FILECON_SOCKET) in cil_write_ast_node() 1245 else if (filecon->type == CIL_FILECON_PIPE) in cil_write_ast_node() 1247 else if (filecon->type == CIL_FILECON_SYMLINK) in cil_write_ast_node() 1249 else if (filecon->type == CIL_FILECON_ANY) in cil_write_ast_node() [all …]
|
D | cil.c | 415 cil_sort_init(&(*db)->filecon); in cil_db_init() 470 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy() 1719 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string() 1722 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1723 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1725 str_len += strlen(filecon->path_str); in cil_filecons_to_string() 1727 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string() 1760 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local 1761 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1764 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_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_FILE; in cil_gen_filecon() 4235 filecon->type = CIL_FILECON_DIR; in cil_gen_filecon() 4237 filecon->type = CIL_FILECON_CHAR; in cil_gen_filecon() 4239 filecon->type = CIL_FILECON_BLOCK; in cil_gen_filecon() 4241 filecon->type = CIL_FILECON_SOCKET; in cil_gen_filecon() 4243 filecon->type = CIL_FILECON_PIPE; in cil_gen_filecon() 4245 filecon->type = CIL_FILECON_SYMLINK; in cil_gen_filecon() [all …]
|
D | cil_internal.h | 298 struct cil_sort *filecon; member 1045 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() 2422 …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 | 1913 struct cil_filecon *filecon = current->data; in cil_resolve_filecon() local 1917 if (filecon->context_str != NULL) { in cil_resolve_filecon() 1918 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon() 1922 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon() 1923 } else if (filecon->context != NULL) { in cil_resolve_filecon() 1924 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)
|