/linux-6.6.21/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 | 372 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 383 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 385 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 394 if (rgid != (gid_t) -1) { in __sys_setregid() 402 if (egid != (gid_t) -1) { in __sys_setregid() 412 if (rgid != (gid_t) -1 || in __sys_setregid() 413 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 428 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 438 long __sys_setgid(gid_t gid) in __sys_setgid() 474 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
D | user_namespace.c | 476 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 495 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 519 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 521 gid_t gid; in from_kgid_munged() 524 if (gid == (gid_t) -1) in from_kgid_munged() 625 gid_t lower; in gid_m_show()
|
/linux-6.6.21/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 | mnt_idmapping.h | 19 gid_t val; 33 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 43 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 56 return __vfsgid_val(gid) != (gid_t)-1; in vfsgid_valid() 190 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 | 431 gid_t group, int flag); 432 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 651 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 652 asmlinkage long sys_setgid(gid_t gid); 657 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 658 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 660 asmlinkage long sys_setfsgid(gid_t gid); 666 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 667 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 983 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);
|
D | audit.h | 404 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); 436 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in audit_ipc_set_perm() 633 gid_t gid, umode_t mode) in audit_ipc_set_perm()
|
D | types.h | 38 typedef __kernel_gid32_t gid_t; typedef
|
/linux-6.6.21/fs/ |
D | mnt_idmapping.c | 138 gid_t gid; in make_vfsgid() 147 if (gid == (gid_t)-1) in make_vfsgid() 195 gid_t gid; in from_vfsgid() 201 if (gid == (gid_t)-1) in from_vfsgid()
|
D | open.c | 748 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 771 if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) in chown_common() 794 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 827 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 832 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 837 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 843 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() 856 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 868 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
D | internal.h | 179 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 181 int chown_common(const struct path *path, uid_t user, gid_t group);
|
/linux-6.6.21/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.6.21/usr/ |
D | gen_init_cpio.c | 108 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 157 uid_t uid, gid_t gid) in cpio_mkgeneric() 245 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 323 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
/linux-6.6.21/tools/include/nolibc/ |
D | std.h | 29 typedef unsigned int gid_t; typedef
|
D | types.h | 212 gid_t st_gid; /* group ID of owner */
|
/linux-6.6.21/fs/smb/server/ |
D | xattr.h | 69 gid_t gid;
|
D | smbacl.h | 226 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
/linux-6.6.21/fs/hostfs/ |
D | hostfs.h | 49 gid_t ia_gid;
|
/linux-6.6.21/include/net/ |
D | ping.h | 19 #define GID_T_MAX (((gid_t)~0U) - 1)
|
/linux-6.6.21/security/keys/ |
D | keyctl.c | 949 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() 963 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key() 967 if (user == (uid_t) -1 && group == (gid_t) -1) in keyctl_chown_key() 992 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key() 1044 if (group != (gid_t) -1) in keyctl_chown_key() 1923 (gid_t) arg4); in SYSCALL_DEFINE5()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | profiler.h | 67 gid_t gid;
|
/linux-6.6.21/tools/testing/selftests/mount/ |
D | nosymfollow-test.c | 97 gid_t gid = getgid(); in create_and_enter_ns()
|