Home
last modified time | relevance | path

Searched refs:ibendportcon (Results 1 – 17 of 17) sorted by relevance

/external/selinux/libsemanage/tests/
Dtest_ibendport.cil26 (ibendportcon mlx4_0 1 (system_u object_r first_ibendport_t ((s0) (s0))))
27 (ibendportcon mlx4_1 2 (system_u object_r second_ibendport_t ((s0) (s0))))
28 (ibendportcon mlx4_1 3 (system_u object_r third_ibendport_t ((s0) (s0))))
/external/selinux/secilc/docs/
Dcil_infiniband_statements.md49 ibendportcon section in Infiniband Statements
56 (ibendportcon device_id port context_id)
67 <td align="left"><p><code>ibendportcon</code></p></td>
68 <td align="left"><p>The <code>ibendportcon</code> keyword.</p></td>
89 (ibendportcon mlx5_0 1 system_u_bin_t_l2h)
DREADME.md149 * [ibendportcon](cil_infiniband_statements.md#ibendportcon)
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c330 static void cil_reset_ibendportcon(struct cil_ibendportcon *ibendportcon) in cil_reset_ibendportcon() argument
332 if (!ibendportcon->context_str) { in cil_reset_ibendportcon()
333 cil_reset_context(ibendportcon->context); in cil_reset_ibendportcon()
Dcil_tree.c1516 struct cil_ibendportcon *ibendportcon = node->data; in cil_tree_print_node() local
1518 cil_log(CIL_INFO, "IBENDPORTCON: %s %u ", ibendportcon->dev_name_str, ibendportcon->port); in cil_tree_print_node()
1520 if (ibendportcon->context) in cil_tree_print_node()
1521 cil_tree_print_context(ibendportcon->context); in cil_tree_print_node()
1522 else if (ibendportcon->context_str) in cil_tree_print_node()
1523 cil_log(CIL_INFO, " %s", ibendportcon->context_str); in cil_tree_print_node()
Dcil.c427 cil_sort_init(&(*db)->ibendportcon); in cil_db_init()
480 cil_sort_destroy(&(*db)->ibendportcon); in cil_db_destroy()
2018 void cil_ibendportcon_init(struct cil_ibendportcon **ibendportcon) in cil_ibendportcon_init() argument
2020 *ibendportcon = cil_malloc(sizeof(**ibendportcon)); in cil_ibendportcon_init()
2022 (*ibendportcon)->dev_name_str = NULL; in cil_ibendportcon_init()
2023 (*ibendportcon)->port = 0; in cil_ibendportcon_init()
2024 (*ibendportcon)->context_str = NULL; in cil_ibendportcon_init()
2025 (*ibendportcon)->context = NULL; in cil_ibendportcon_init()
Dcil_internal.h294 struct cil_sort *ibendportcon; member
991 void cil_ibendportcon_init(struct cil_ibendportcon **ibendportcon);
Dcil_policy.c1734 struct cil_ibendportcon *ibendportcon = (struct cil_ibendportcon *)ibendportcons->array[i]; in cil_ibendportcons_to_policy() local
1736 fprintf(out, "ibendportcon %s ", ibendportcon->dev_name_str); in cil_ibendportcons_to_policy()
1737 fprintf(out, "%u ", ibendportcon->port); in cil_ibendportcons_to_policy()
1738 cil_context_to_policy(out, ibendportcon->context, mls); in cil_ibendportcons_to_policy()
1974 cil_ibendportcons_to_policy(out, db->ibendportcon, db->mls); in cil_gen_policy()
Dcil_build_ast.c4717 struct cil_ibendportcon *ibendportcon = NULL; in cil_gen_ibendportcon() local
4726 cil_ibendportcon_init(&ibendportcon); in cil_gen_ibendportcon()
4728 ibendportcon->dev_name_str = parse_current->next->data; in cil_gen_ibendportcon()
4730 rc = cil_fill_integer(parse_current->next->next, &ibendportcon->port, 10); in cil_gen_ibendportcon()
4737 ibendportcon->context_str = parse_current->next->next->next->data; in cil_gen_ibendportcon()
4739 cil_context_init(&ibendportcon->context); in cil_gen_ibendportcon()
4741 rc = cil_fill_context(parse_current->next->next->next->cl_head, ibendportcon->context); in cil_gen_ibendportcon()
4746 ast_node->data = ibendportcon; in cil_gen_ibendportcon()
4753 cil_destroy_ibendportcon(ibendportcon); in cil_gen_ibendportcon()
4757 void cil_destroy_ibendportcon(struct cil_ibendportcon *ibendportcon) in cil_destroy_ibendportcon() argument
[all …]
Dcil_post.c629 db->ibendportcon->count++; in __cil_post_db_count_helper()
722 struct cil_sort *sort = db->ibendportcon; in __cil_post_db_array_helper()
1920 struct cil_ibendportcon *ibendportcon = node->data; in __cil_post_db_cat_helper() local
1922 rc = __evaluate_levelrange_expression(ibendportcon->context->range, db); in __cil_post_db_cat_helper()
2376 …rc = __cil_post_process_context_rules(db->ibendportcon, cil_post_ibendportcon_compare, cil_post_ib… in cil_post_db()
Dcil_build_ast.h181 void cil_destroy_ibendportcon(struct cil_ibendportcon *ibendportcon);
Dcil_resolve_ast.c2088 struct cil_ibendportcon *ibendportcon = current->data; in cil_resolve_ibendportcon() local
2093 if (ibendportcon->context_str) { in cil_resolve_ibendportcon()
2094 …rc = cil_resolve_name(current, ibendportcon->context_str, CIL_SYM_CONTEXTS, extra_args, &con_datum… in cil_resolve_ibendportcon()
2098 ibendportcon->context = (struct cil_context *)con_datum; in cil_resolve_ibendportcon()
2100 rc = cil_resolve_context(current, ibendportcon->context, extra_args); in cil_resolve_ibendportcon()
Dcil_binary.c3846 rc = cil_ibendportcon_to_policydb(pdb, db->ibendportcon); in __cil_contexts_to_policydb()
/external/selinux/libsepol/src/
Dkernel_to_conf.c2744 struct ocontext *ibendportcon; in write_selinux_ibendport_rules_to_conf() local
2749 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf()
2750 ibendportcon != NULL; ibendportcon = ibendportcon->next) { in write_selinux_ibendport_rules_to_conf()
2751 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_conf()
2757 ctx = context_to_str(pdb, &ibendportcon->context[0]); in write_selinux_ibendport_rules_to_conf()
2763 sepol_printf(out, "ibendportcon %s %s %s\n", ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_conf()
Dkernel_to_cil.c2870 struct ocontext *ibendportcon; in write_selinux_ibendport_rules_to_cil() local
2875 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil()
2876 ibendportcon != NULL; ibendportcon = ibendportcon->next) { in write_selinux_ibendport_rules_to_cil()
2877 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_cil()
2883 ctx = context_to_str(pdb, &ibendportcon->context[0]); in write_selinux_ibendport_rules_to_cil()
2890 ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_cil()
/external/selinux/secilc/test/
Dpolicy.cil289 (ibendportcon mlx5_0 1 system_u_bin_t_l2h)
290 (ibendportcon mlx4_3 5 (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
/external/selinux/checkpolicy/
Dpolicy_scan.l189 ibendportcon |