/linux-6.12.1/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 | 37 static int groups_to_user(gid_t __user *grouplist, in groups_to_user() 45 gid_t gid; in groups_to_user() 55 gid_t __user *grouplist) in groups_from_user() 62 gid_t gid; in groups_from_user() 161 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2() 198 SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2()
|
D | sys.c | 381 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 392 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 394 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 403 if (rgid != (gid_t) -1) { in __sys_setregid() 411 if (egid != (gid_t) -1) { in __sys_setregid() 421 if (rgid != (gid_t) -1 || in __sys_setregid() 422 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 437 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 447 long __sys_setgid(gid_t gid) in __sys_setgid() 483 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
D | user_namespace.c | 479 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 498 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 522 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 524 gid_t gid; in from_kgid_munged() 527 if (gid == (gid_t) -1) in from_kgid_munged() 628 gid_t lower; in gid_m_show()
|
/linux-6.12.1/include/linux/ |
D | uidgid.h | 31 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 41 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 110 return __kgid_val(gid) != (gid_t) -1; in gid_valid() 116 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 119 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 121 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 130 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 143 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() 153 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() 166 static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid) in from_kgid_munged() [all …]
|
D | mnt_idmapping.h | 20 gid_t val; 34 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 44 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 57 return __vfsgid_val(gid) != (gid_t)-1; in vfsgid_valid() 194 return from_kgid(userns, AS_KGIDT(vfsgid)) != (gid_t)-1; in vfsgid_has_mapping()
|
D | highuid.h | 54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
|
D | syscalls.h | 439 gid_t group, int flag); 440 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 669 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 670 asmlinkage long sys_setgid(gid_t gid); 675 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 676 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 678 asmlinkage long sys_setfsgid(gid_t gid); 684 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 685 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 1015 uid_t user, gid_t group); [all …]
|
D | uidgid_types.h | 12 gid_t val;
|
D | init_syscalls.h | 8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
|
D | audit.h | 405 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); 437 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in audit_ipc_set_perm() 634 gid_t gid, umode_t mode) in audit_ipc_set_perm()
|
/linux-6.12.1/fs/ |
D | mnt_idmapping.c | 122 gid_t gid; in make_vfsgid() 132 if (gid == (gid_t)-1) in make_vfsgid() 181 gid_t gid; in from_vfsgid() 188 if (gid == (gid_t)-1) in from_vfsgid()
|
D | open.c | 758 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 781 if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) in chown_common() 804 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 837 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 842 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 847 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 853 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() 866 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 878 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
D | internal.h | 193 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 195 int chown_common(const struct path *path, uid_t user, gid_t group);
|
/linux-6.12.1/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 136 static void ensure_group_exists(gid_t gid) in ensure_group_exists() 322 static void test_setgid(gid_t child_gid, bool expect_success) in test_setgid() 378 static void test_setgroups(gid_t* child_groups, size_t len, bool expect_success) in test_setgroups() 382 gid_t groupset[len]; in test_setgroups() 520 gid_t allowed_supp_groups[2] = {ALLOWED_CHILD1_UGID, ALLOWED_CHILD2_UGID}; in main() 521 gid_t disallowed_supp_groups[2] = {ROOT_UGID, NO_POLICY_UGID}; in main()
|
/linux-6.12.1/usr/ |
D | gen_init_cpio.c | 109 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 158 uid_t uid, gid_t gid) in cpio_mkgeneric() 246 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 324 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
/linux-6.12.1/tools/include/nolibc/ |
D | std.h | 29 typedef unsigned int gid_t; typedef
|
/linux-6.12.1/fs/bcachefs/ |
D | fs-common.h | 18 uid_t, gid_t, umode_t, dev_t,
|
D | inode.h | 148 uid_t, gid_t, umode_t, dev_t, 151 uid_t, gid_t, umode_t, dev_t,
|
/linux-6.12.1/fs/smb/server/mgmt/ |
D | user_config.h | 22 gid_t *sgid;
|
D | user_config.c | 66 resp_ext->ngroups * sizeof(gid_t), in ksmbd_alloc_user()
|
/linux-6.12.1/fs/smb/server/ |
D | xattr.h | 69 gid_t gid;
|
D | smbacl.h | 117 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
/linux-6.12.1/fs/hostfs/ |
D | hostfs.h | 49 gid_t ia_gid;
|
/linux-6.12.1/include/net/ |
D | ping.h | 19 #define GID_T_MAX (((gid_t)~0U) - 1)
|