/freebsd/tests/sys/mac/portacl/ |
H A D | misc.sh | 16 local host idtype name proto port udpflag 21 idtype=${1} 29 case "${idtype}" in 57 local expect_without_rule expect_with_rule idtype name proto port 61 idtype=${3} 67 out=$(check_bind ${idtype} ${name} ${proto} ${port}) 77 if [ "${idtype}" = "uid" ]; then 79 elif [ "${idtype}" = "gid" ]; then 84 sysctl security.mac.portacl.rules=${idtype}:${idstr}:${proto}:${port} >/dev/null 85 out=$(check_bind ${idtype} ${name} ${proto} ${port})
|
/freebsd/usr.bin/protect/ |
H A D | protect.c | 72 idtype_t idtype; in main() local 77 idtype = P_PID; in main() 93 idtype = P_PGID; in main() 98 idtype = P_PID; in main() 113 if (procctl(idtype, id, PROC_SPROTECT, &flags) == -1) in main()
|
/freebsd/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_misc.c | 334 ng_l2cap_new_chan(ng_l2cap_p l2cap, ng_l2cap_con_p con, u_int16_t psm, int idtype) in ng_l2cap_new_chan() argument 342 if(idtype == NG_L2CAP_L2CA_IDTYPE_ATT){ in ng_l2cap_new_chan() 344 }else if(idtype == NG_L2CAP_L2CA_IDTYPE_SMP){ in ng_l2cap_new_chan() 351 ch->idtype = idtype; in ng_l2cap_new_chan() 381 ng_l2cap_chan_by_scid(ng_l2cap_p l2cap, u_int16_t scid, int idtype) in ng_l2cap_chan_by_scid() argument 385 if((idtype == NG_L2CAP_L2CA_IDTYPE_ATT)|| in ng_l2cap_chan_by_scid() 386 (idtype == NG_L2CAP_L2CA_IDTYPE_SMP)){ in ng_l2cap_chan_by_scid() 391 if((idtype != NG_L2CAP_L2CA_IDTYPE_BREDR)&& in ng_l2cap_chan_by_scid() 394 if((idtype != NG_L2CAP_L2CA_IDTYPE_LE)&& in ng_l2cap_chan_by_scid() 634 int idtype; in ng_l2cap_get_cid() local [all …]
|
H A D | ng_l2cap_ulpi.c | 107 ch = ng_l2cap_new_chan(l2cap, con, ip->psm, ip->idtype); in ng_l2cap_l2ca_con_req() 130 if(ip->idtype == NG_L2CAP_L2CA_IDTYPE_ATT){ in ng_l2cap_l2ca_con_req() 134 }else if(ip->idtype == NG_L2CAP_L2CA_IDTYPE_SMP){ in ng_l2cap_l2ca_con_req() 197 op->idtype = NG_L2CAP_L2CA_IDTYPE_ATT; in ng_l2cap_l2ca_con_rsp() 200 op->idtype = NG_L2CAP_L2CA_IDTYPE_SMP; in ng_l2cap_l2ca_con_rsp() 203 op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_con_rsp() 368 op->idtype = (ch->scid==NG_L2CAP_ATT_CID)? in ng_l2cap_l2ca_encryption_change() 372 op->idtype =(ch->con->linktype ==NG_HCI_LINK_ACL)? in ng_l2cap_l2ca_encryption_change() 871 if (l2ca_hdr->idtype == NG_L2CAP_L2CA_IDTYPE_ATT){ in ng_l2cap_l2ca_write_req() 874 } else if (l2ca_hdr->idtype == NG_L2CAP_L2CA_IDTYPE_SMP){ in ng_l2cap_l2ca_write_req() [all …]
|
H A D | ng_l2cap_evnt.c | 464 int idtype; in ng_l2cap_process_con_req() local 478 idtype = NG_L2CAP_L2CA_IDTYPE_ATT; in ng_l2cap_process_con_req() 480 idtype = NG_L2CAP_L2CA_IDTYPE_SMP; in ng_l2cap_process_con_req() 482 idtype = NG_L2CAP_L2CA_IDTYPE_LE; in ng_l2cap_process_con_req() 484 idtype = NG_L2CAP_L2CA_IDTYPE_BREDR; in ng_l2cap_process_con_req() 491 ch = ng_l2cap_new_chan(l2cap, con, psm, idtype); in ng_l2cap_process_con_req()
|
H A D | ng_l2cap_var.h | 157 uint16_t idtype; member
|
/freebsd/sys/security/mac_portacl/ |
H A D | mac_portacl.c | 173 char *idtype, *id, *protocol, *portnumber, *p; in parse_rule_element() local 180 idtype = strsep(&element, ":"); in parse_rule_element() 181 if (idtype == NULL) { in parse_rule_element() 195 if (strcmp(idtype, UID_STRING) == 0) in parse_rule_element() 197 else if (strcmp(idtype, GID_STRING) == 0) in parse_rule_element() 268 const char *idtype, *protocol; 272 idtype = GID_STRING; 275 idtype = UID_STRING; 292 sbuf_printf(sb, "%s:%jd:%s:%d", idtype, (intmax_t)rule->r_id,
|
/freebsd/sys/kern/ |
H A D | kern_exit.c | 875 idtype_t idtype; in sys_wait6() local 879 idtype = uap->idtype; in sys_wait6() 897 error = kern_wait6(td, idtype, id, &status, uap->options, wrup, sip); in sys_wait6() 1045 proc_to_reap(struct thread *td, struct proc *p, idtype_t idtype, id_t id, in proc_to_reap() argument 1055 switch (idtype) { in proc_to_reap() 1202 idtype_t idtype; in kern_wait() local 1212 idtype = P_ALL; in kern_wait() 1215 idtype = P_PGID; in kern_wait() 1218 idtype = P_PID; in kern_wait() 1232 ret = kern_wait6(td, idtype, id, status, options, wrup, NULL); in kern_wait() [all …]
|
H A D | kern_procctl.c | 1170 return (cpu_procctl(td, uap->idtype, uap->id, in sys_procctl() 1185 error = kern_procctl(td, uap->idtype, uap->id, uap->com, &x); in sys_procctl() 1205 kern_procctl(struct thread *td, idtype_t idtype, id_t id, int com, void *data) in kern_procctl() argument 1215 if (idtype != P_PID && cmd_info->one_proc) in kern_procctl() 1236 switch (idtype) { in kern_procctl()
|
/freebsd/sys/netgraph/bluetooth/include/ |
H A D | ng_l2cap.h | 356 uint16_t idtype; member 369 uint8_t idtype; member 375 uint16_t idtype; /*ID type*/ member 467 u_int16_t idtype; member 490 uint16_t idtype; member 608 uint8_t idtype; member
|
H A D | ng_btsocket_l2cap.h | 139 uint8_t idtype; member
|
/freebsd/lib/libc/sys/ |
H A D | wait6.c | 41 wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *ru, in wait6() argument 44 return (INTERPOS_SYS(wait6, idtype, id, status, options, ru, infop)); in wait6()
|
H A D | waitid.c | 44 __waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags) in __waitid() argument 49 ret = INTERPOS_SYS(wait6, idtype, id, &status, flags, NULL, info); in __waitid()
|
/freebsd/sys/netgraph/bluetooth/socket/ |
H A D | ng_btsocket_l2cap.c | 465 if((pcb->idtype == NG_L2CAP_L2CA_IDTYPE_ATT)|| in ng_btsocket_l2cap_process_l2ca_con_req_rsp() 466 (pcb->idtype == NG_L2CAP_L2CA_IDTYPE_SMP)){ in ng_btsocket_l2cap_process_l2ca_con_req_rsp() 704 op->idtype); in ng_btsocket_l2cap_process_l2ca_enc_change() 1108 ip->idtype); in ng_btsocket_l2cap_process_l2ca_discon_ind() 1245 ip->idtype = pcb->idtype; in ng_btsocket_l2cap_send_l2ca_con_req() 1384 ip->idtype = pcb->idtype; in ng_btsocket_l2cap_send_l2ca_discon_req() 1408 uint16_t idtype; in ng_btsocket_l2cap_data_input() local 1424 idtype = *mtod(m, uint16_t *); in ng_btsocket_l2cap_data_input() 1471 (idtype == NG_L2CAP_L2CA_IDTYPE_ATT)|| in ng_btsocket_l2cap_data_input() 1472 (idtype == NG_L2CAP_L2CA_IDTYPE_SMP) in ng_btsocket_l2cap_data_input() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | processor.h | 121 extern int processor_bind(idtype_t idtype, id_t id,
|
H A D | procset.h | 63 idtype /* pollutes XPG4.2 namespace */ enum
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 44 enum idtype; 285 int kern_procctl(struct thread *td, enum idtype idtype, id_t id, int com, 395 int kern_wait6(struct thread *td, enum idtype idtype, id_t id, int *status,
|
H A D | wait.h | 93 idtype /* pollutes XPG4.2 namespace */ enum
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 718 linux_common_wait(struct thread *td, idtype_t idtype, int id, int *statusp, in linux_common_wait() argument 726 error = kern_wait6(td, idtype, id, &status, options, in linux_common_wait() 778 int options, id, idtype; in linux_wait4() local 798 idtype = P_ALL; in linux_wait4() 801 idtype = P_PGID; in linux_wait4() 804 idtype = P_PGID; in linux_wait4() 810 idtype = P_PID; in linux_wait4() 814 return (linux_common_wait(td, idtype, id, args->status, options, in linux_wait4() 821 idtype_t idtype; in linux_waitid() local 834 switch (args->idtype) { in linux_waitid() [all …]
|
/freebsd/sys/powerpc/powerpc/ |
H A D | vm_machdep.c | 222 cpu_procctl(struct thread *td __unused, int idtype __unused, id_t id __unused, in cpu_procctl()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_syscalls.c | 574 __thr_wait6(idtype_t idtype, id_t id, int *status, int options, in __thr_wait6() argument 582 ret = __sys_wait6(idtype, id, status, options, ru, infop); in __thr_wait6()
|
/freebsd/sys/amd64/amd64/ |
H A D | vm_machdep.c | 477 cpu_procctl(struct thread *td, int idtype, id_t id, int com, void *data) in cpu_procctl() argument 487 if (idtype != P_PID) { in cpu_procctl()
|
/freebsd/lib/libc/include/ |
H A D | libc_private.h | 346 enum idtype;
|
/freebsd/sys/riscv/riscv/ |
H A D | vm_machdep.c | 273 cpu_procctl(struct thread *td __unused, int idtype __unused, id_t id __unused, in cpu_procctl()
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_env.c | 294 int idtype; in cms_RecipientInfo_ktri_init() local 306 idtype = CMS_RECIPINFO_KEYIDENTIFIER; in cms_RecipientInfo_ktri_init() 309 idtype = CMS_RECIPINFO_ISSUER_SERIAL; in cms_RecipientInfo_ktri_init() 317 if (!ossl_cms_set1_SignerIdentifier(ktri->rid, recip, idtype, ctx)) in cms_RecipientInfo_ktri_init()
|