/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | uverbs_marshall.c | 140 memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid)); in __ib_copy_path_rec_to_user() 181 if ((ib_is_opa_gid((union ib_gid *)src->sgid)) || in ib_copy_path_rec_from_user() 184 slid = opa_get_lid_from_gid((union ib_gid *)src->sgid); in ib_copy_path_rec_from_user() 192 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ib_copy_path_rec_from_user()
|
D | addr.c | 729 } sgid, dgid; in roce_resolve_route_from_path() local 738 rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); in roce_resolve_route_from_path() 741 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path() 750 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path() 814 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, in rdma_addr_find_l2_eth_by_grh() argument 827 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in rdma_addr_find_l2_eth_by_grh()
|
D | verbs.c | 702 u16 vlan_id, const union ib_gid *sgid, in get_sgid_attr_from_eth() argument 708 return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index, in get_sgid_attr_from_eth() 714 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument 720 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr() 731 (struct in6_addr *)sgid); in ib_get_gids_from_rdma_hdr() 738 *sgid = hdr->ibgrh.sgid; in ib_get_gids_from_rdma_hdr() 799 union ib_gid sgid; in ib_init_ah_attr_from_wc() local 813 &sgid, &dgid); in ib_init_ah_attr_from_wc() 835 &sgid, in ib_init_ah_attr_from_wc() 864 &sgid, in ib_init_ah_attr_from_wc()
|
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 46 int sgid = 100; in Child1() local 107 int sgid = 100; in Child() local 320 reinterpret_cast<gid_t *>(&sgid)); in Child() 324 ICUNIT_ASSERT_EQUAL(sgid, 100, sgid); // 100: expected value of sgid in Child() 353 reinterpret_cast<gid_t *>(&sgid)); in Child() 357 ICUNIT_ASSERT_EQUAL(sgid, 200, sgid); // 200: expected value of sgid in Child() 362 reinterpret_cast<gid_t *>(&sgid)); in Child() 366 ICUNIT_ASSERT_EQUAL(sgid, 300, sgid); in Child()
|
/kernel/linux/linux-5.10/kernel/ |
D | uid16.c | 81 SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) in SYSCALL_DEFINE3() argument 84 low2highgid(sgid)); in SYSCALL_DEFINE3() 91 old_gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local 95 sgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->sgid)); in SYSCALL_DEFINE3() 99 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3()
|
D | sys.c | 385 gid_eq(old->sgid, kegid) || in __sys_setregid() 394 new->sgid = new->egid; in __sys_setregid() 437 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 438 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 723 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() argument 733 ksgid = make_kgid(ns, sgid); in __sys_setresgid() 739 if ((sgid != (gid_t) -1) && !gid_valid(ksgid)) in __sys_setresgid() 750 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid)) in __sys_setresgid() 753 !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid)) in __sys_setresgid() 755 if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && in __sys_setresgid() [all …]
|
D | uid16.h | 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
|
D | cred.c | 50 .sgid = GLOBAL_ROOT_GID, 319 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 505 !gid_eq(new->sgid, old->sgid) || in commit_creds() 823 from_kgid_munged(&init_user_ns, cred->sgid), in dump_invalid_creds()
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 882 int SysGetRealEffSaveGroupID(int *rgid, int *egid, int *sgid) in SysGetRealEffSaveGroupID() argument 916 ret = LOS_ArchCopyToUser(sgid, &saveGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 925 static int SetRealEffSaveGroupIDCheck(int rgid, int egid, int sgid) in SetRealEffSaveGroupIDCheck() argument 935 if ((sgid < 0) && (sgid != -1)) { in SetRealEffSaveGroupIDCheck() 943 int SysSetRealEffSaveGroupID(int rgid, int egid, int sgid) in SysSetRealEffSaveGroupID() argument 948 if ((rgid == -1) && (egid == -1) && (sgid == -1)) { in SysSetRealEffSaveGroupID() 952 ret = SetRealEffSaveGroupIDCheck(rgid, egid, sgid); in SysSetRealEffSaveGroupID() 958 if (((egid != -1) && (egid != rgid)) || ((sgid != -1) && (sgid != rgid))) { in SysSetRealEffSaveGroupID() 963 if ((sgid != -1) && (sgid != egid)) { in SysSetRealEffSaveGroupID() 968 return SysSetGroupID(sgid); in SysSetRealEffSaveGroupID() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
D | qib_ruc.c | 104 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr() 143 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr() 195 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in qib_make_grh() 197 hdr->sgid.global.interface_id = ppd_from_ibp(ibp)->guid; in qib_make_grh() 199 hdr->sgid.global.interface_id = ibp->guids[grh->sgid_index - 1]; in qib_make_grh()
|
D | qib_mad.h | 177 u8 sgid[16]; member
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 74 struct rdma_ah_attr *attr, const union ib_gid *sgid, in set_av_attr() argument 135 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in set_av_attr() 141 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
|
/kernel/linux/linux-5.10/security/safesetid/ |
D | lsm.c | 167 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred() 187 __kgid_val(old->sgid), __kgid_val(new_id.gid)); in id_permitted_for_cred() 234 id_permitted_for_cred(old, (kid_t){.gid = new->sgid}, GID) && in safesetid_task_fix_setgid()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | opal-sensor-groups.c | 183 u32 sgid, len, nr_attrs, chipid; in opal_sensor_groups_init() local 207 if (of_property_read_u32(node, "sensor-group-id", &sgid)) { in opal_sensor_groups_init() 218 if (add_attr_group(ops, len, &sgs[i], sgid)) { in opal_sensor_groups_init()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | compat_linux.h | 100 long compat_sys_s390_setresgid16(u16 rgid, u16 egid, u16 sgid); 101 long compat_sys_s390_getresgid16(u16 __user *rgid, u16 __user *egid, u16 __user *sgid);
|
/kernel/linux/linux-5.10/include/rdma/ |
D | ib_sa.h | 165 union ib_gid sgid; member 229 ib->sgid.global.interface_id in path_conv_opa_to_ib() 249 if ((ib_is_opa_gid(&ib->sgid)) || in path_conv_ib_to_opa() 251 slid = htonl(opa_get_lid_from_gid(&ib->sgid)); in path_conv_ib_to_opa()
|
D | rdma_cm.h | 374 void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/ |
D | ib_user_sa.h | 38 __u8 sgid[16]; member
|
/kernel/linux/linux-5.10/include/uapi/rdma/ |
D | ib_user_sa.h | 57 __u8 sgid[16]; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/ |
D | ib_user_sa.h | 25 __u8 sgid[16]; member
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | ruc.c | 99 &packet->grh->sgid, in hfi1_ruc_check_hdr() 136 &packet->grh->sgid, in hfi1_ruc_check_hdr() 180 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh() 181 hdr->sgid.global.interface_id = in hfi1_make_grh()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cred.h | 123 kgid_t sgid; /* saved GID of the task */ member 384 #define current_sgid() (current_cred_xxx(sgid))
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/ |
D | verbs.c | 85 int index, union ib_gid *sgid) in qedr_iw_query_gid() argument 89 memset(sgid->raw, 0, sizeof(sgid->raw)); in qedr_iw_query_gid() 90 ether_addr_copy(sgid->raw, dev->ndev->dev_addr); in qedr_iw_query_gid() 93 sgid->global.interface_id, sgid->global.subnet_prefix); in qedr_iw_query_gid() 1151 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table() 1152 sizeof(qp_params->sgid)); in get_gid_info_from_table() 1161 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table() 1162 sizeof(qp_params->sgid)); in get_gid_info_from_table() 1169 memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); in get_gid_info_from_table() 1172 qp_params->sgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 210 union ib_gid sgid; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.h | 122 union qed_gid sgid; member
|