Searched refs:portcon (Results 1 - 15 of 15) sorted by relevance

/external/selinux/libsepol/tests/policies/test-cond/
H A Drefpolicy-base.conf1743 portcon udp 7007 system_u:object_r:afs_bos_port_t:s0
1744 portcon tcp 2040 system_u:object_r:afs_fs_port_t:s0
1745 portcon udp 7000 system_u:object_r:afs_fs_port_t:s0
1746 portcon udp 7005 system_u:object_r:afs_fs_port_t:s0
1747 portcon udp 7004 system_u:object_r:afs_ka_port_t:s0
1748 portcon udp 7002 system_u:object_r:afs_pt_port_t:s0
1749 portcon udp 7003 system_u:object_r:afs_vl_port_t:s0
1750 portcon udp 10080 system_u:object_r:amanda_port_t:s0
1751 portcon tcp 10080 system_u:object_r:amanda_port_t:s0
1752 portcon ud
[all...]
/external/selinux/libsepol/cil/src/
H A Dcil_reset_ast.c291 static void cil_reset_portcon(struct cil_portcon *portcon) argument
293 if (portcon->context_str == NULL) {
294 cil_reset_context(portcon->context);
H A Dcil_tree.c1316 struct cil_portcon *portcon = node->data; local
1318 if (portcon->proto == CIL_PROTOCOL_UDP) {
1320 } else if (portcon->proto == CIL_PROTOCOL_TCP) {
1323 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high);
1325 if (portcon->context != NULL) {
1326 cil_tree_print_context(portcon->context);
1327 } else if (portcon->context_str != NULL) {
1328 cil_log(CIL_INFO, " %s", portcon->context_str);
H A Dcil_policy.c120 struct cil_portcon *portcon = (struct cil_portcon*)sort->array[i]; local
121 fprintf(file_arr[NETIFCONS], "portcon ");
122 if (portcon->proto == CIL_PROTOCOL_UDP) {
124 } else if (portcon->proto == CIL_PROTOCOL_TCP) {
127 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_low);
128 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_high);
129 cil_context_to_policy(file_arr, NETIFCONS, portcon->context);
1331 rc = cil_portcon_to_policy(file_arr, db->portcon);
H A Dcil.c189 CIL_KEY_PORTCON = cil_strpool_add("portcon");
255 cil_sort_init(&(*db)->portcon);
304 cil_sort_destroy(&(*db)->portcon);
2215 void cil_portcon_init(struct cil_portcon **portcon) argument
2217 *portcon = cil_malloc(sizeof(**portcon));
2218 (*portcon)->proto = 0;
2219 (*portcon)->port_low = 0;
2220 (*portcon)->port_high = 0;
2221 (*portcon)
[all...]
H A Dcil_internal.h282 struct cil_sort *portcon; member in struct:cil_db
983 void cil_portcon_init(struct cil_portcon **portcon);
H A Dcil_build_ast.c4245 struct cil_portcon *portcon = NULL; local
4257 cil_portcon_init(&portcon);
4261 portcon->proto = CIL_PROTOCOL_UDP;
4263 portcon->proto = CIL_PROTOCOL_TCP;
4273 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low);
4278 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high);
4289 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low);
4294 portcon->port_high = portcon->port_low;
4298 portcon
4320 cil_destroy_portcon(struct cil_portcon *portcon) argument
[all...]
H A Dcil_post.c402 db->portcon->count++;
536 struct cil_sort *sort = db->portcon;
1580 struct cil_portcon *portcon = node->data; local
1581 rc = __evaluate_levelrange_expression(portcon->context->range, db);
1938 qsort(db->portcon->array, db->portcon->count, sizeof(db->portcon->array), cil_post_portcon_compare);
H A Dcil_build_ast.h177 void cil_destroy_portcon(struct cil_portcon *portcon);
H A Dcil_resolve_ast.c1871 struct cil_portcon *portcon = current->data; local
1875 if (portcon->context_str != NULL) {
1876 rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum);
1880 portcon->context = (struct cil_context*)context_datum;
1882 rc = cil_resolve_context(current, portcon->context, extra_args);
H A Dcil_binary.c3623 rc = cil_portcon_to_policydb(pdb, db->portcon);
/external/selinux/policycoreutils/sepolicy/
H A Dinfo.c1097 const qpol_portcon_t *portcon = NULL; local
1118 if (qpol_iterator_get_item(iter, (void **)&portcon))
1120 if (qpol_portcon_get_low_port(q, portcon, &low_port))
1122 if (qpol_portcon_get_high_port(q, portcon, &high_port))
1124 if (qpol_portcon_get_protocol(q, portcon, &ocon_proto))
1135 if (qpol_portcon_get_context(q, portcon, &ctxt)) {
/external/selinux/checkpolicy/
H A Dpolicy_scan.l184 portcon |
/external/selinux/libsepol/src/
H A Dmodule_to_cil.c2530 struct ocontext *portcon; local
2535 for (portcon = portcons; portcon != NULL; portcon = portcon->next) {
2537 switch (portcon->u.port.protocol) {
2541 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol);
2546 low = portcon->u.port.low_port;
2547 high = portcon
[all...]
/external/selinux/prebuilts/bin/
H A Dsediff.py79 labeling.add_argument("--portcon", action="store_true", help="Print portcon differences")
94 args.netifcon, args.nodecon, args.portcon, args.fs_use, args.polcap,
929 if all_differences or args.portcon:
931 or args.portcon:
949 print(" * portcon {0.protocol} {1} +[{2}] -[{3}];".format(
952 print(" * portcon {0.protocol} {1}-{2} +[{3}] -[{4}];".format(

Completed in 464 milliseconds