Home
last modified time | relevance | path

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

123

/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 Dsys.c413 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, egi argument
515 SYSCALL_DEFINE1(setgid,gid_t,gid) SYSCALL_DEFINE1() argument
872 SYSCALL_DEFINE3(setresgid,gid_t,rgid,gid_t,egid,gid_t,sgid) SYSCALL_DEFINE3() argument
984 SYSCALL_DEFINE1(setfsgid,gid_t,gid) SYSCALL_DEFINE1() argument
[all...]
/linux/Documentation/translations/zh_CN/security/
H A Dcredentials.rst271 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 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/include/linux/
H A Dhighuid.h54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
H A Dsyscalls.h459 gid_t group, int flag);
460 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group);
689 asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
690 asmlinkage long sys_setgid(gid_t gid);
695 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
696 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid);
698 asmlinkage long sys_setfsgid(gid_t gid);
704 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
705 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
1039 uid_t user, gid_t group);
[all …]
H A Duidgid_types.h12 gid_t val;
H A Dinit_syscalls.h8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
H A Daudit.h405 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()
H A Dtypes.h38 typedef __kernel_gid32_t gid_t; typedef
/linux/usr/
H A Dgen_init_cpio.c109 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/tools/include/nolibc/
H A Dstd.h27 typedef unsigned int gid_t; typedef
H A Dtypes.h178 gid_t st_gid; /* group ID of owner */
/linux/fs/smb/server/mgmt/
H A Duser_config.h22 gid_t *sgid;
H A Duser_config.c66 resp_ext->ngroups * sizeof(gid_t), in ksmbd_alloc_user()
/linux/fs/smb/server/
H A Dxattr.h69 gid_t gid;
H A Dsmbacl.h117 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
/linux/fs/bcachefs/
H A Dinode.h168 uid_t, gid_t, umode_t, dev_t,
171 uid_t, gid_t, umode_t, dev_t,
/linux/fs/
H A Dinternal.h198 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
200 int chown_common(const struct path *path, uid_t user, gid_t group);
/linux/include/net/
H A Dping.h19 #define GID_T_MAX (((gid_t)~0U) - 1)
/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()
1923 (gid_t) arg4); in SYSCALL_DEFINE5()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.h67 gid_t gid;
/linux/fs/smb/client/
H A Dcifsacl.c374 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()
1363 gid_t id; in build_sec_desc()
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c97 gid_t gid = getgid(); in create_and_enter_ns()

123