| /linux/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 | 413 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() 424 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid() 426 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid() 435 if (rgid != (gid_t) -1) { in __sys_setregid() 443 if (egid != (gid_t) -1) { in __sys_setregid() 453 if (rgid != (gid_t) -1 || in __sys_setregid() 454 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 469 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument 479 long __sys_setgid(gid_t gid) in __sys_setgid() 515 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument [all …]
|
| H A D | user_namespace.c | 490 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 509 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() 533 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() 535 gid_t gid; in from_kgid_munged() 538 if (gid == (gid_t) -1) in from_kgid_munged() 639 gid_t lower; in gid_m_show()
|
| /linux/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/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/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()
|
| /linux/include/linux/ |
| 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 | 466 gid_t group, int flag); 467 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); 696 asmlinkage long sys_setregid(gid_t rgid, gid_t egid); 697 asmlinkage long sys_setgid(gid_t gid); 702 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 703 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); 705 asmlinkage long sys_setfsgid(gid_t gid); 711 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); 712 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); 1049 uid_t user, gid_t group); [all …]
|
| H A D | uidgid_types.h | 12 gid_t val;
|
| /linux/tools/include/nolibc/ |
| H A D | std.h | 27 typedef unsigned int gid_t; typedef
|
| H A D | types.h | 146 gid_t st_gid; /* group ID of owner */
|
| H A D | sys.h | 171 * int chown(const char *path, uid_t owner, gid_t group); 175 int _sys_chown(const char *path, uid_t owner, gid_t group) in sys_chown() 185 int chown(const char *path, uid_t owner, gid_t group) in chown()
|
| /linux/usr/ |
| H A D | gen_init_cpio.c | 122 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() 179 uid_t uid, gid_t gid) in cpio_mkgeneric() 274 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() 359 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
|
| /linux/fs/smb/server/ |
| H A D | xattr.h | 69 gid_t gid;
|
| H A D | smbacl.h | 119 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
| /linux/fs/hostfs/ |
| H A D | hostfs.h | 17 gid_t ia_gid;
|
| /linux/security/keys/ |
| H A D | keyctl.c | 949 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() 964 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key() 968 if (user == (uid_t) -1 && group == (gid_t) -1) in keyctl_chown_key() 993 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key() 1045 if (group != (gid_t) -1) in keyctl_chown_key() 1923 (gid_t) arg4); in SYSCALL_DEFINE5()
|
| /linux/tools/testing/selftests/filesystems/fuse/ |
| H A D | fusectl_test.c | 49 gid_t gid = getgid(); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | profiler.h | 67 gid_t gid;
|
| /linux/tools/testing/selftests/mount/ |
| H A D | nosymfollow-test.c | 97 gid_t gid = getgid(); in create_and_enter_ns()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 332 bool switch_ids(uid_t uid, gid_t gid) in switch_ids() 488 gid_t gid = getgid(); in setup_userns() 523 gid_t gid = getgid(); in caps_down()
|
| /linux/fs/coda/ |
| H A D | coda_linux.c | 118 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr()
|
| /linux/Documentation/security/ |
| H A 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 331 void current_uid_gid(uid_t *, gid_t *); 332 void current_euid_egid(uid_t *, gid_t *); 333 void current_fsuid_fsgid(uid_t *, gid_t *);
|
| /linux/fs/smb/client/ |
| H A D | cifsacl.c | 374 gid_t id; in sid_to_id() 376 id = (gid_t)unix_id; in sid_to_id() 414 BUILD_BUG_ON(sizeof(uid_t) != sizeof(gid_t)); in sid_to_id() 431 gid_t id; in sid_to_id() 432 memcpy(&id, &sidkey->payload.data[0], sizeof(gid_t)); in sid_to_id() 1432 gid_t id; in build_sec_desc()
|