Home
last modified time | relevance | path

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

/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.c1510 struct cil_ibendportcon *ibendportcon = node->data; in cil_tree_print_node() local
1512 cil_log(CIL_INFO, "IBENDPORTCON: %s %u ", ibendportcon->dev_name_str, ibendportcon->port); in cil_tree_print_node()
1514 if (ibendportcon->context) in cil_tree_print_node()
1515 cil_tree_print_context(ibendportcon->context); in cil_tree_print_node()
1516 else if (ibendportcon->context_str) in cil_tree_print_node()
1517 cil_log(CIL_INFO, " %s", ibendportcon->context_str); in cil_tree_print_node()
Dcil.c263 cil_sort_init(&(*db)->ibendportcon); in cil_db_init()
316 cil_sort_destroy(&(*db)->ibendportcon); in cil_db_destroy()
1854 void cil_ibendportcon_init(struct cil_ibendportcon **ibendportcon) in cil_ibendportcon_init() argument
1856 *ibendportcon = cil_malloc(sizeof(**ibendportcon)); in cil_ibendportcon_init()
1858 (*ibendportcon)->dev_name_str = NULL; in cil_ibendportcon_init()
1859 (*ibendportcon)->port = 0; in cil_ibendportcon_init()
1860 (*ibendportcon)->context_str = NULL; in cil_ibendportcon_init()
1861 (*ibendportcon)->context = NULL; in cil_ibendportcon_init()
Dcil_internal.h292 struct cil_sort *ibendportcon; member
987 void cil_ibendportcon_init(struct cil_ibendportcon **ibendportcon);
Dcil_build_ast.c4715 struct cil_ibendportcon *ibendportcon = NULL; in cil_gen_ibendportcon() local
4724 cil_ibendportcon_init(&ibendportcon); in cil_gen_ibendportcon()
4726 ibendportcon->dev_name_str = parse_current->next->data; in cil_gen_ibendportcon()
4728 rc = cil_fill_integer(parse_current->next->next, &ibendportcon->port, 10); in cil_gen_ibendportcon()
4735 ibendportcon->context_str = parse_current->next->next->next->data; in cil_gen_ibendportcon()
4737 cil_context_init(&ibendportcon->context); in cil_gen_ibendportcon()
4739 rc = cil_fill_context(parse_current->next->next->next->cl_head, ibendportcon->context); in cil_gen_ibendportcon()
4744 ast_node->data = ibendportcon; in cil_gen_ibendportcon()
4751 cil_destroy_ibendportcon(ibendportcon); in cil_gen_ibendportcon()
4755 void cil_destroy_ibendportcon(struct cil_ibendportcon *ibendportcon) in cil_destroy_ibendportcon() argument
[all …]
Dcil_policy.c1737 struct cil_ibendportcon *ibendportcon = (struct cil_ibendportcon *)ibendportcons->array[i]; in cil_ibendportcons_to_policy() local
1739 fprintf(out, "ibendportcon %s ", ibendportcon->dev_name_str); in cil_ibendportcons_to_policy()
1740 fprintf(out, "%u ", ibendportcon->port); in cil_ibendportcons_to_policy()
1741 cil_context_to_policy(out, ibendportcon->context, mls); in cil_ibendportcons_to_policy()
1975 cil_ibendportcons_to_policy(out, db->ibendportcon, db->mls); in cil_gen_policy()
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()
1928 struct cil_ibendportcon *ibendportcon = node->data; in __cil_post_db_cat_helper() local
1930 rc = __evaluate_levelrange_expression(ibendportcon->context->range, db); in __cil_post_db_cat_helper()
2384 …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.c2089 struct cil_ibendportcon *ibendportcon = current->data; in cil_resolve_ibendportcon() local
2094 if (ibendportcon->context_str) { in cil_resolve_ibendportcon()
2095 …rc = cil_resolve_name(current, ibendportcon->context_str, CIL_SYM_CONTEXTS, extra_args, &con_datum… in cil_resolve_ibendportcon()
2099 ibendportcon->context = (struct cil_context *)con_datum; in cil_resolve_ibendportcon()
2101 rc = cil_resolve_context(current, ibendportcon->context, extra_args); in cil_resolve_ibendportcon()
Dcil_binary.c3914 rc = cil_ibendportcon_to_policydb(pdb, db->ibendportcon); in __cil_contexts_to_policydb()
/external/selinux/libsepol/src/
Dkernel_to_conf.c2708 struct ocontext *ibendportcon; in write_selinux_ibendport_rules_to_conf() local
2713 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf()
2714 ibendportcon != NULL; ibendportcon = ibendportcon->next) { in write_selinux_ibendport_rules_to_conf()
2715 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_conf()
2721 ctx = context_to_str(pdb, &ibendportcon->context[0]); in write_selinux_ibendport_rules_to_conf()
2727 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.c2846 struct ocontext *ibendportcon; in write_selinux_ibendport_rules_to_cil() local
2851 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil()
2852 ibendportcon != NULL; ibendportcon = ibendportcon->next) { in write_selinux_ibendport_rules_to_cil()
2853 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_cil()
2859 ctx = context_to_str(pdb, &ibendportcon->context[0]); in write_selinux_ibendport_rules_to_cil()
2866 ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_cil()
/external/selinux/secilc/test/
Dpolicy.cil288 (ibendportcon mlx5_0 1 system_u_bin_t_l2h)
289 (ibendportcon mlx4_3 5 (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
/external/selinux/checkpolicy/
Dpolicy_scan.l189 ibendportcon |