Home
last modified time | relevance | path

Searched refs:gid_t (Results 1 – 25 of 44) sorted by relevance

12

/linux/kernel/
H A Duid16.h6 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 Dgroups.c37 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 Duser_namespace.c490 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/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c136 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 Dmnt_idmapping.c123 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 Dhighuid.h54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
H A Duidgid_types.h12 gid_t val;
H A Dtypes.h37 typedef __kernel_gid32_t gid_t; typedef
/linux/tools/include/nolibc/
H A Dstd.h27 typedef unsigned int gid_t; typedef
H A Dtypes.h146 gid_t st_gid; /* group ID of owner */
H A Dsys.h196 * int chown(const char *path, uid_t owner, gid_t group); in sys_chroot()
200 int _sys_chown(const char *path, uid_t owner, gid_t group)
210 int chown(const char *path, uid_t owner, gid_t group)
/linux/usr/
H A Dgen_init_cpio.c122 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 Dxattr.h69 gid_t gid;
/linux/fs/hostfs/
H A Dhostfs.h17 gid_t ia_gid;
/linux/security/keys/
H A Dkeyctl.c949 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()
1935 (gid_t) arg4); in SYSCALL_DEFINE5()
H A Dinternal.h251 extern long keyctl_chown_key(key_serial_t, uid_t, gid_t);
/linux/tools/testing/selftests/filesystems/fuse/
H A Dfusectl_test.c49 gid_t gid = getgid(); in FIXTURE_SETUP()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.h67 gid_t gid;
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c97 gid_t gid = getgid(); in create_and_enter_ns()
H A Dunprivileged-remount-test.c157 gid_t gid; in create_and_enter_userns()
/linux/fs/coda/
H A Dcoda_linux.c118 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr()
/linux/tools/testing/selftests/filesystems/
H A Dutils.c332 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/smb/client/
H A Dcifsacl.c444 gid_t id; in sid_to_id()
446 id = (gid_t)unix_id; in sid_to_id()
484 BUILD_BUG_ON(sizeof(uid_t) != sizeof(gid_t)); in sid_to_id()
501 gid_t id; in sid_to_id()
502 memcpy(&id, &sidkey->payload.data[0], sizeof(gid_t)); in sid_to_id()
1499 gid_t id; in build_sec_desc()
/linux/fs/nilfs2/
H A Dthe_nilfs.h166 gid_t ns_resgid;
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c79 gid_t gid; in create_and_enter_userns()

12