Home
last modified time | relevance | path

Searched refs:rgid (Results 1 – 24 of 24) sorted by relevance

/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/
Dreugid_test_001.cpp44 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/
Duid16.c38 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()
Duid16.h8 long __sys_setregid(gid_t rgid, gid_t egid);
10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
Dsys.c352 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/
Dprocess_syscall.c882 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 …]
Dlos_syscall.h99 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/
Dsmc.h27 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/
Dism.h104 u64 rgid; member
121 u64 rgid; member
132 u64 rgid; member
Dism_drv.c201 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/
Dcompat_linux.h94 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/
Dah.c62 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/
Dcn_proc.h90 __u32 rgid; /* task gid */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dcn_proc.h51 __u32 rgid; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dcn_proc.h60 __u32 rgid; member
/kernel/linux/linux-5.10/fs/proc/
Dinternal.h134 kuid_t *ruid, kgid_t *rgid);
Dbase.c2005 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/
Dsyscalls.h733 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/
Dqp.h152 u8 rgid[16]; member
/kernel/linux/linux-5.10/include/linux/mlx5/
Dqp.h323 u8 rgid[16]; member
/kernel/linux/linux-5.10/net/smc/
Dsmc_ism.c192 dmb.rgid = lgr->peer_gid; in smc_ism_register_dmb()
/kernel/linux/linux-5.10/drivers/connector/
Dcn_proc.c145 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/
Dresource_tracker.c4583 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/
Dmthca_qp.c117 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/
Dqp.c1774 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()