/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 44 int rgid = 0; in Child1() local 49 rgid = getgid(); in Child1() 50 ICUNIT_ASSERT_EQUAL(rgid, 300, rgid); in Child1() 105 int rgid = 0; in Child() local 319 ret = getresgid(reinterpret_cast<gid_t *>(&rgid), reinterpret_cast<gid_t *>(&egid), in Child() 322 ICUNIT_ASSERT_EQUAL(rgid, 100, rgid); in Child() 352 ret = getresgid(reinterpret_cast<gid_t *>(&rgid), reinterpret_cast<gid_t *>(&egid), in Child() 355 ICUNIT_ASSERT_EQUAL(rgid, 200, rgid); // 200: expected value of rgid in Child() 361 ret = getresgid(reinterpret_cast<gid_t *>(&rgid), reinterpret_cast<gid_t *>(&egid), in Child() 364 ICUNIT_ASSERT_EQUAL(rgid, 300, rgid); in Child()
|
/kernel/linux/linux-5.10/kernel/ |
D | uid16.c | 38 SYSCALL_DEFINE2(setregid16, old_gid_t, rgid, old_gid_t, egid) in SYSCALL_DEFINE2() argument 40 return __sys_setregid(low2highgid(rgid), low2highgid(egid)); in SYSCALL_DEFINE2() 81 SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) in SYSCALL_DEFINE3() argument 83 return __sys_setresgid(low2highgid(rgid), low2highgid(egid), in SYSCALL_DEFINE3() 91 old_gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local 93 rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid)); in SYSCALL_DEFINE3() 97 if (!(retval = put_user(rgid, rgidp)) && in SYSCALL_DEFINE3()
|
D | uid16.h | 8 long __sys_setregid(gid_t rgid, gid_t egid); 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
|
D | sys.c | 352 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() argument 360 krgid = make_kgid(ns, rgid); in __sys_setregid() 363 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 374 if (rgid != (gid_t) -1) { in __sys_setregid() 392 if (rgid != (gid_t) -1 || in __sys_setregid() 408 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 410 return __sys_setregid(rgid, egid); in SYSCALL_DEFINE2() 723 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() argument 731 krgid = make_kgid(ns, rgid); in __sys_setresgid() 735 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setresgid() [all …]
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 882 int SysGetRealEffSaveGroupID(int *rgid, int *egid, int *sgid) in SysGetRealEffSaveGroupID() argument 906 ret = LOS_ArchCopyToUser(rgid, &realGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 925 static int SetRealEffSaveGroupIDCheck(int rgid, int egid, int sgid) in SetRealEffSaveGroupIDCheck() argument 927 if ((rgid < 0) && (rgid != -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() 957 if (rgid >= 0) { in SysSetRealEffSaveGroupID() 958 if (((egid != -1) && (egid != rgid)) || ((sgid != -1) && (sgid != rgid))) { in SysSetRealEffSaveGroupID() 961 return SysSetGroupID(rgid); in SysSetRealEffSaveGroupID() [all …]
|
D | los_syscall.h | 99 extern int SysGetRealEffSaveGroupID(int *rgid, int *egid, int *sgid); 101 extern int SysSetRealEffGroupID(int rgid, int egid); 102 extern int SysSetRealEffSaveGroupID(int rgid, int egid, int sgid);
|
/kernel/linux/linux-5.10/include/net/ |
D | smc.h | 27 u64 rgid; member 55 int (*query_remote_gid)(struct smcd_dev *dev, u64 rgid, u32 vid_valid, 63 int (*signal_event)(struct smcd_dev *dev, u64 rgid, u32 trigger_irq,
|
/kernel/linux/linux-5.10/drivers/s390/net/ |
D | ism.h | 104 u64 rgid; member 121 u64 rgid; member 132 u64 rgid; member
|
D | ism_drv.c | 201 static int ism_query_rgid(struct smcd_dev *smcd, u64 rgid, u32 vid_valid, in ism_query_rgid() argument 211 cmd.request.rgid = rgid; in ism_query_rgid() 272 cmd.request.rgid = dmb->rgid; in ism_register_dmb() 343 static int ism_signal_ieq(struct smcd_dev *smcd, u64 rgid, u32 trigger_irq, in ism_signal_ieq() argument 353 cmd.request.rgid = rgid; in ism_signal_ieq()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | compat_linux.h | 94 long compat_sys_s390_setregid16(u16 rgid, u16 egid); 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/drivers/infiniband/hw/mlx5/ |
D | ah.c | 62 memcpy(ah->av.rgid, &grh->dgid, 16); in create_ib_ah() 142 rdma_ah_set_dgid_raw(ah_attr, ah->av.rgid); in mlx5_ib_query_ah()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | cn_proc.h | 90 __u32 rgid; /* task gid */ member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | cn_proc.h | 51 __u32 rgid; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | cn_proc.h | 60 __u32 rgid; member
|
/kernel/linux/linux-5.10/fs/proc/ |
D | internal.h | 134 kuid_t *ruid, kgid_t *rgid);
|
D | base.c | 2005 kuid_t *ruid, kgid_t *rgid) in task_dump_owner() argument 2016 *rgid = GLOBAL_ROOT_GID; in task_dump_owner() 2059 *rgid = gid; in task_dump_owner()
|
/kernel/linux/linux-5.10/include/linux/ |
D | syscalls.h | 733 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 739 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 740 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 1192 asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid); 1199 asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid); 1200 asmlinkage long sys_getresgid16(old_gid_t __user *rgid,
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
D | qp.h | 152 u8 rgid[16]; member
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | qp.h | 323 u8 rgid[16]; member
|
/kernel/linux/linux-5.10/net/smc/ |
D | smc_ism.c | 192 dmb.rgid = lgr->peer_gid; in smc_ism_register_dmb()
|
/kernel/linux/linux-5.10/drivers/connector/ |
D | cn_proc.c | 145 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 4583 struct res_gid *rgid; in detach_qp() local 4587 list_for_each_entry_safe(rgid, tmp, &rqp->mcg_list, list) { in detach_qp() 4590 mlx4_flow_detach(dev, rgid->reg_id); in detach_qp() 4594 (void) mlx4_qp_detach_common(dev, &qp, rgid->gid, in detach_qp() 4595 rgid->prot, rgid->steer); in detach_qp() 4598 list_del(&rgid->list); in detach_qp() 4599 kfree(rgid); in detach_qp()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 117 u8 rgid[16]; member 426 rdma_ah_set_dgid_raw(ah_attr, path->rgid); in to_rdma_ah_attr() 547 memcpy(path->rgid, grh->dgid.raw, 16); in mthca_path_set()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | qp.c | 1774 memcpy(path->rgid, grh->dgid.raw, 16); in _mlx4_set_path() 3969 rdma_ah_set_dgid_raw(ah_attr, path->rgid); in to_rdma_ah_attr()
|