/third_party/selinux/libsepol/src/ |
D | ibendport_record.c | 91 const sepol_ibendport_t *ibendport, in sepol_ibendport_key_extract() argument 95 (handle, ibendport->ibdev_name, ibendport->port, key_ptr) < 0) { in sepol_ibendport_key_extract() 97 ibendport->ibdev_name, in sepol_ibendport_key_extract() 98 ibendport->port); in sepol_ibendport_key_extract() 114 int sepol_ibendport_compare(const sepol_ibendport_t *ibendport, const sepol_ibendport_key_t *key) in sepol_ibendport_compare() argument 118 rc = strcmp(ibendport->ibdev_name, key->ibdev_name); in sepol_ibendport_compare() 120 if ((ibendport->port == key->port) && !rc) in sepol_ibendport_compare() 123 if (ibendport->port < key->port) in sepol_ibendport_compare() 125 else if (key->port < ibendport->port) in sepol_ibendport_compare() 131 int sepol_ibendport_compare2(const sepol_ibendport_t *ibendport, const sepol_ibendport_t *ibendport… in sepol_ibendport_compare2() argument [all …]
|
D | ibendports.c | 16 ocontext_t **ibendport, in ibendport_from_record() argument 29 &tmp_ibendport->u.ibendport.dev_name) < 0) in ibendport_from_record() 37 strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX - 1); in ibendport_from_record() 42 tmp_ibendport->u.ibendport.port = port; in ibendport_from_record() 53 *ibendport = tmp_ibendport; in ibendport_from_record() 73 ocontext_t *ibendport, in ibendport_to_record() argument 76 int port = ibendport->u.ibendport.port; in ibendport_to_record() 77 context_struct_t *con = &ibendport->context[0]; in ibendport_to_record() 86 ibendport->u.ibendport.dev_name) < 0) in ibendport_to_record() 139 const char *ibdev_name2 = c->u.ibendport.dev_name; in sepol_ibendport_exists() [all …]
|
D | kernel_to_common.c | 543 rc = strcmp((*aa)->u.ibendport.dev_name, (*bb)->u.ibendport.dev_name); in ibendport_data_cmp() 547 return (*aa)->u.ibendport.port - (*bb)->u.ibendport.port; in ibendport_data_cmp()
|
D | module_to_cil.c | 2773 struct ocontext *ibendport; in ocontext_selinux_ibendport_to_cil() local 2775 for (ibendport = ibendports; ibendport; ibendport = ibendport->next) { in ocontext_selinux_ibendport_to_cil() 2776 cil_printf("(ibendportcon %s %u ", ibendport->u.ibendport.dev_name, ibendport->u.ibendport.port); in ocontext_selinux_ibendport_to_cil() 2777 context_to_cil(pdb, &ibendport->context[0]); in ocontext_selinux_ibendport_to_cil()
|
D | expand.c | 2207 n->u.ibendport.dev_name = strdup(c->u.ibendport.dev_name); in ocontext_copy_selinux() 2208 if (!n->u.ibendport.dev_name) { in ocontext_copy_selinux() 2212 n->u.ibendport.port = c->u.ibendport.port; in ocontext_copy_selinux()
|
D | policydb.c | 1446 free(ctmp->u.ibendport.dev_name); in ocontext_selinux_free() 3059 c->u.ibendport.dev_name = malloc(len + 1); in ocontext_read_selinux() 3060 if (!c->u.ibendport.dev_name) in ocontext_read_selinux() 3062 rc = next_entry(c->u.ibendport.dev_name, fp, len); in ocontext_read_selinux() 3065 c->u.ibendport.dev_name[len] = 0; in ocontext_read_selinux() 3066 c->u.ibendport.port = port; in ocontext_read_selinux()
|
D | write.c | 1521 len = strlen(c->u.ibendport.dev_name); in ocontext_write_selinux() 1523 buf[1] = cpu_to_le32(c->u.ibendport.port); in ocontext_write_selinux() 1527 items = put_entry(c->u.ibendport.dev_name, 1, len, fp); in ocontext_write_selinux()
|
D | services.c | 1939 if (c->u.ibendport.port == port && in sepol_ibendport_sid() 1940 !strcmp(dev_name, c->u.ibendport.dev_name)) in sepol_ibendport_sid()
|
D | kernel_to_cil.c | 2918 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_cil() 2931 ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_cil()
|
D | kernel_to_conf.c | 2793 rc = snprintf(port_str, 4, "%u", ibendportcon->u.ibendport.port); in write_selinux_ibendport_rules_to_conf() 2805 sepol_printf(out, "ibendportcon %s %s %s\n", ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_conf()
|
/third_party/selinux/libsepol/include/sepol/ |
D | ibendport_record.h | 17 extern int sepol_ibendport_compare(const sepol_ibendport_t *ibendport, 20 extern int sepol_ibendport_compare2(const sepol_ibendport_t *ibendport, 36 const sepol_ibendport_t *ibendport, 41 extern void sepol_ibendport_set_port(sepol_ibendport_t *ibendport, int port); 43 extern int sepol_ibendport_get_port(const sepol_ibendport_t *ibendport); 46 const sepol_ibendport_t *ibendport, 50 sepol_ibendport_t *ibendport, 53 extern sepol_context_t *sepol_ibendport_get_con(const sepol_ibendport_t *ibendport); 56 sepol_ibendport_t *ibendport, 63 const sepol_ibendport_t *ibendport, [all …]
|
D | ibendports.h | 42 int (*fn)(const sepol_ibendport_t *ibendport,
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 5134 newc->u.ibendport.dev_name = queue_remove(id_queue); in define_ibendport_context() 5135 if (!newc->u.ibendport.dev_name) { in define_ibendport_context() 5141 if (strlen(newc->u.ibendport.dev_name) > IB_DEVICE_NAME_MAX - 1) { in define_ibendport_context() 5147 newc->u.ibendport.port = port; in define_ibendport_context() 5159 port2 = c->u.ibendport.port; in define_ibendport_context() 5162 !strcmp(c->u.ibendport.dev_name, in define_ibendport_context() 5163 newc->u.ibendport.dev_name)) { in define_ibendport_context() 5165 newc->u.ibendport.dev_name, port); in define_ibendport_context() 5179 free(newc->u.ibendport.dev_name); in define_ibendport_context()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 374 } ibendport; member
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3357 new_ocon->u.ibendport.dev_name = cil_strdup(cil_ibendportcon->dev_name_str); in cil_ibendportcon_to_policydb() 3358 new_ocon->u.ibendport.port = cil_ibendportcon->port; in cil_ibendportcon_to_policydb()
|