| /linux-6.15/kernel/ |
| H A 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);
|
| H A 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()
|
| H A D | sys.c | 383 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 405 if (rgid != (gid_t) -1) { in __sys_setregid() 439 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 780 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() 823 if (rgid != (gid_t) -1) in __sys_setresgid() 825 if (egid != (gid_t) -1) in __sys_setresgid() 827 if (sgid != (gid_t) -1) in __sys_setresgid() 842 SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) in SYSCALL_DEFINE3() argument 847 SYSCALL_DEFINE3(getresgid, gid_t __user *, rgidp, gid_t __user *, egidp, gid_t __user *, sgidp) in SYSCALL_DEFINE3() 851 gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() [all …]
|
| H A D | user_namespace.c | 487 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 506 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 530 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 532 gid_t gid; in from_kgid_munged() 535 if (gid == (gid_t) -1) in from_kgid_munged() 636 gid_t lower; in gid_m_show()
|
| /linux-6.15/include/linux/ |
| H A 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() 144 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() 154 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() 169 gid_t gid = from_kgid(to, kgid); in from_kgid_munged() [all …]
|
| H A D | mnt_idmapping.h | 20 gid_t val; 39 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 49 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() 62 return __vfsgid_val(gid) != (gid_t)-1; in vfsgid_valid() 199 return from_kgid(userns, AS_KGIDT(vfsgid)) != (gid_t)-1; in vfsgid_has_mapping()
|
| H A D | highuid.h | 54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
|
| H A D | syscalls.h | 452 gid_t group, int flag); 682 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 683 asmlinkage long sys_setgid(gid_t gid); 688 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 689 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 691 asmlinkage long sys_setfsgid(gid_t gid); 1032 uid_t user, gid_t group); 1036 uid_t user, gid_t group); 1258 gid_t group, int flag); 1261 gid_t group) in ksys_chown() [all …]
|
| H A D | uidgid_types.h | 12 gid_t val;
|
| H A D | init_syscalls.h | 8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
|
| /linux-6.15/Documentation/translations/zh_CN/security/ |
| H A D | credentials.rst | 271 gid_t current_gid(void) Current's real GID 273 gid_t current_egid(void) Current's effective GID 275 gid_t current_fsgid(void) Current's file access GID 281 void current_uid_gid(uid_t *, gid_t *); 282 void current_euid_egid(uid_t *, gid_t *); 283 void current_fsuid_fsgid(uid_t *, gid_t *);
|
| /linux-6.15/tools/testing/selftests/filesystems/ |
| H A D | utils.h | 29 extern bool switch_ids(uid_t uid, gid_t gid); 31 static inline bool switch_userns(int fd, uid_t uid, gid_t gid, bool drop_caps) in switch_userns()
|
| /linux-6.15/tools/testing/selftests/safesetid/ |
| H A 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.15/fs/ |
| H A D | mnt_idmapping.c | 123 gid_t gid; in make_vfsgid() 133 if (gid == (gid_t)-1) in make_vfsgid() 182 gid_t gid; in from_vfsgid() 189 if (gid == (gid_t)-1) in from_vfsgid()
|
| H A D | open.c | 747 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() 770 if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) in chown_common() 793 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() 826 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument 831 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 836 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument 842 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() 855 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() 865 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
|
| H A D | internal.h | 196 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, 198 int chown_common(const struct path *path, uid_t user, gid_t group);
|
| /linux-6.15/usr/ |
| H A 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.15/tools/include/nolibc/ |
| H A D | std.h | 29 typedef unsigned int gid_t; typedef
|
| /linux-6.15/fs/smb/server/mgmt/ |
| H A D | user_config.h | 22 gid_t *sgid;
|
| /linux-6.15/fs/bcachefs/ |
| H A D | namei.h | 18 uid_t, gid_t, umode_t, dev_t,
|
| H A D | inode.h | 157 uid_t, gid_t, umode_t, dev_t, 160 uid_t, gid_t, umode_t, dev_t,
|
| /linux-6.15/fs/smb/server/ |
| H A D | xattr.h | 69 gid_t gid;
|
| H A D | smbacl.h | 117 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
| /linux-6.15/fs/hostfs/ |
| H A D | hostfs.h | 49 gid_t ia_gid;
|
| /linux-6.15/include/net/ |
| H A D | ping.h | 19 #define GID_T_MAX (((gid_t)~0U) - 1)
|