/Linux-v5.4/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 | 350 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 361 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 363 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 372 if (rgid != (gid_t) -1) { in __sys_setregid() 380 if (egid != (gid_t) -1) { in __sys_setregid() 390 if (rgid != (gid_t) -1 || in __sys_setregid() 391 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 402 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 412 long __sys_setgid(gid_t gid) in __sys_setgid() 444 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
D | user_namespace.c | 454 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 473 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 497 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 499 gid_t gid; in from_kgid_munged() 502 if (gid == (gid_t) -1) in from_kgid_munged() 603 gid_t lower; in gid_m_show()
|
/Linux-v5.4/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() 118 return __kgid_val(gid) != (gid_t) -1; in gid_valid() 124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 148 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() 158 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 | 438 gid_t group, int flag); 439 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 704 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 705 asmlinkage long sys_setgid(gid_t gid); 710 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 711 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 713 asmlinkage long sys_setfsgid(gid_t gid); 719 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 720 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 1042 uid_t user, gid_t group); [all …]
|
D | audit.h | 363 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); 392 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in audit_ipc_set_perm() 579 gid_t gid, umode_t mode) in audit_ipc_set_perm()
|
D | types.h | 33 typedef __kernel_gid32_t gid_t; typedef
|
/Linux-v5.4/arch/mips/include/uapi/asm/ |
D | stat.h | 26 gid_t st_gid; 62 gid_t st_gid; 103 gid_t st_gid;
|
/Linux-v5.4/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()
|
/Linux-v5.4/fs/ |
D | open.c | 620 static int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 640 if (group != (gid_t) -1) { in chown_common() 662 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 695 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 700 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 705 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 711 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 731 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
D | internal.h | 131 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
|
/Linux-v5.4/arch/powerpc/include/uapi/asm/ |
D | stat.h | 41 gid_t st_gid;
|
/Linux-v5.4/arch/sparc/include/uapi/asm/ |
D | stat.h | 15 gid_t st_gid;
|
/Linux-v5.4/fs/hostfs/ |
D | hostfs.h | 45 gid_t ia_gid;
|
/Linux-v5.4/include/net/ |
D | ping.h | 26 #define GID_T_MAX (((gid_t)~0U) >> 1)
|
/Linux-v5.4/security/keys/ |
D | keyctl.c | 880 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() 894 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key() 898 if (user == (uid_t) -1 && group == (gid_t) -1) in keyctl_chown_key() 921 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key() 970 if (group != (gid_t) -1) in keyctl_chown_key() 1763 (gid_t) arg4); in SYSCALL_DEFINE5()
|
/Linux-v5.4/fs/cifs/ |
D | cifsacl.c | 378 gid_t id; in sid_to_id() 380 id = (gid_t)unix_id; in sid_to_id() 419 BUILD_BUG_ON(sizeof(uid_t) != sizeof(gid_t)); in sid_to_id() 437 gid_t id; in sid_to_id() 438 memcpy(&id, &sidkey->payload.data[0], sizeof(gid_t)); in sid_to_id() 1005 gid_t id; in build_sec_desc()
|
/Linux-v5.4/fs/coda/ |
D | coda_linux.c | 119 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr()
|
/Linux-v5.4/fs/hfsplus/ |
D | options.c | 150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
|
/Linux-v5.4/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 74 gid_t gid; in change_to_userns()
|
/Linux-v5.4/Documentation/security/ |
D | credentials.rst | 320 gid_t current_gid(void) Current's real GID 322 gid_t current_egid(void) Current's effective GID 324 gid_t current_fsgid(void) Current's file access GID 332 void current_uid_gid(uid_t *, gid_t *); 333 void current_euid_egid(uid_t *, gid_t *); 334 void current_fsuid_fsgid(uid_t *, gid_t *);
|
/Linux-v5.4/fs/nilfs2/ |
D | the_nilfs.h | 171 gid_t ns_resgid;
|
/Linux-v5.4/Documentation/admin-guide/ |
D | highuid.rst | 12 - kernel code should use uid_t and gid_t in kernel-private structures and
|