/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 54 ret = getresgid(reinterpret_cast<gid_t *>(&ruid), reinterpret_cast<gid_t *>(&euid), in Child1() 55 reinterpret_cast<gid_t *>(&suid)); in Child1() 66 ret = getresuid(reinterpret_cast<gid_t *>(&ruid), reinterpret_cast<gid_t *>(&euid), in Child1() 67 reinterpret_cast<gid_t *>(&suid)); in Child1() 73 int size = getgroups(0, reinterpret_cast<gid_t *>(getList)); in Child1() 76 size = getgroups(size, reinterpret_cast<gid_t *>(getList)); in Child1() 83 ret = setgroups(0, reinterpret_cast<gid_t *>(getList)); in Child1() 89 ret = getgroups(ret, reinterpret_cast<gid_t *>(getList)); in Child1() 135 ret = setgroups(5, reinterpret_cast<gid_t *>(list)); // 5: set groupid for testing in Child() 138 size = getgroups(0, reinterpret_cast<gid_t *>(getList)); in Child() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | uid16.h | 6 long __sys_setgid(gid_t gid); 8 long __sys_setregid(gid_t rgid, gid_t egid); 10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 12 long __sys_setfsgid(gid_t gid);
|
D | groups.c | 42 static int groups_to_user(gid_t __user *grouplist, in groups_to_user() 50 gid_t gid; in groups_to_user() 60 gid_t __user *grouplist) in groups_from_user() 67 gid_t gid; in groups_from_user() 153 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() 190 SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2()
|
D | sys.c | 352 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 363 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 365 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 374 if (rgid != (gid_t) -1) { in __sys_setregid() 382 if (egid != (gid_t) -1) { in __sys_setregid() 392 if (rgid != (gid_t) -1 || in __sys_setregid() 393 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 408 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 418 long __sys_setgid(gid_t gid) in __sys_setgid() 454 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
D | user_namespace.c | 455 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 474 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 498 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 500 gid_t gid; in from_kgid_munged() 503 if (gid == (gid_t) -1) in from_kgid_munged() 604 gid_t lower; in gid_m_show()
|
/kernel/linux/linux-5.10/include/linux/ |
D | uidgid.h | 27 gid_t val; 39 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 49 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 126 return __kgid_val(gid) != (gid_t) -1; in gid_valid() 132 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 135 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 137 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 146 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 156 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() 166 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() [all …]
|
D | highuid.h | 54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
|
D | syscalls.h | 463 gid_t group, int flag); 464 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 733 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 734 asmlinkage long sys_setgid(gid_t gid); 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); 742 asmlinkage long sys_setfsgid(gid_t gid); 748 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 749 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 1074 uid_t user, gid_t group); [all …]
|
D | init_syscalls.h | 8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-mips/asm/ |
D | stat.h | 31 gid_t st_gid; 53 gid_t st_gid; 76 gid_t st_gid;
|
/kernel/linux/linux-5.10/arch/mips/include/uapi/asm/ |
D | stat.h | 26 gid_t st_gid; 62 gid_t st_gid; 103 gid_t st_gid;
|
/kernel/linux/common_modules/tzdriver/tlogger/ |
D | log_cfg_api.h | 27 void get_log_chown(uid_t *user, gid_t *group); 61 static inline void get_log_chown(const uid_t *user, const gid_t *group) in get_log_chown()
|
D | log_pages_cfg.c | 123 void get_log_chown(uid_t *user, gid_t *group) in get_log_chown()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_root.c | 48 inode->i_gid = KGIDT_INIT((gid_t)1000); in fill_device_local_inode() 88 inode->i_gid = KGIDT_INIT((gid_t)1000); in fill_device_inode_remote() 119 inode->i_gid = KGIDT_INIT((gid_t)1000); in fill_device_inode_cloud() 314 inode->i_gid = KGIDT_INIT((gid_t)1000); in fill_device_inode() 367 inode->i_gid = KGIDT_INIT((gid_t)1000); in fill_root_inode()
|
/kernel/linux/linux-5.10/usr/ |
D | gen_init_cpio.c | 104 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 153 uid_t uid, gid_t gid) in cpio_mkgeneric() 241 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 296 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
/kernel/linux/build/test/unittest/accesstokenid/ |
D | accesstokenid_test.cpp | 530 gid_t list[1] = {ACCESS_TOKEN_OTHER_GRPID}; 560 gid_t list[1] = {ACCESS_TOKEN_OTHER_GRPID}; 590 gid_t list[2] = {ACCESS_TOKEN_OTHER_GRPID, ACCESS_TOKEN_GRPID}; 620 gid_t list[2] = {ACCESS_TOKEN_OTHER_GRPID, ACCESS_TOKEN_GRPID};
|
/kernel/linux/linux-5.10/fs/ |
D | internal.h | 141 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 143 int chown_common(const struct path *path, uid_t user, gid_t group);
|
D | open.c | 642 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 662 if (group != (gid_t) -1) { in chown_common() 684 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 717 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 722 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 727 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 733 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() 746 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 758 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
/kernel/linux/linux-5.10/arch/powerpc/include/uapi/asm/ |
D | stat.h | 41 gid_t st_gid;
|
/kernel/linux/build/test/fuzztest/accesstokenid/src/ |
D | accesstokenidcommon.cpp | 60 gid_t groupList[LIST_NUM_2] = {ACCESS_TOKEN_GRPID, TEST_VALUE}; in SetUidAndGrp() 79 gid_t groupList[LIST_NUM_1] = {ACCESS_TOKEN_OTHER_GRPID}; in SetUidAndGrpOther()
|
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/ |
D | stat.h | 15 gid_t st_gid;
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue_impl.h | 127 gid_t egid; /* egid of mqueue */
|
/kernel/linux/common_modules/container_escape_detection/include/ |
D | ced_detection_points.h | 21 gid_t egid;
|
/kernel/liteos_a/compat/posix/include/ |
D | mqueue.h | 101 gid_t egid; /* egid of mqueue */
|
/kernel/linux/linux-5.10/fs/hostfs/ |
D | hostfs.h | 49 gid_t ia_gid;
|