Home
last modified time | relevance | path

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

123456

/linux-3.4.99/include/linux/
Dcred.h29 #define NGROUPS_PER_BLOCK ((unsigned int)(PAGE_SIZE / sizeof(gid_t)))
35 gid_t small_block[NGROUPS_SMALL];
36 gid_t *blocks[0];
69 extern int groups_search(const struct group_info *, gid_t);
75 extern int in_group_p(gid_t);
76 extern int in_egroup_p(gid_t);
126 gid_t gid; /* real GID of the task */
128 gid_t sgid; /* saved GID of the task */
130 gid_t egid; /* effective GID of the task */
132 gid_t fsgid; /* GID for VFS ops */
Duser_namespace.h40 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid);
63 static inline gid_t user_ns_map_gid(struct user_namespace *to, in user_ns_map_gid()
64 const struct cred *cred, gid_t gid) in user_ns_map_gid()
Dipc.h93 gid_t gid;
95 gid_t cgid;
Dhighuid.h53 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
Dkey.h137 gid_t gid;
191 uid_t uid, gid_t gid,
259 extern struct key *keyring_alloc(const char *description, uid_t uid, gid_t gid,
Dsyscalls.h274 asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid);
278 asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
280 asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
281 asmlinkage long sys_setgid(gid_t gid);
285 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
287 asmlinkage long sys_setfsgid(gid_t gid);
290 asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
528 uid_t user, gid_t group);
530 uid_t user, gid_t group);
531 asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group);
[all …]
Dshmem_fs.h32 gid_t gid; /* Mount gid for root directory */
Dpid_namespace.h34 gid_t pid_gid;
/linux-3.4.99/kernel/
Dgroups.c23 group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER); in groups_alloc()
34 gid_t *b; in groups_alloc()
66 static int groups_to_user(gid_t __user *grouplist, in groups_to_user()
87 gid_t __user *grouplist) in groups_from_user()
120 gid_t tmp = GROUP_AT(group_info, right); in groups_sort()
135 int groups_search(const struct group_info *group_info, gid_t grp) in groups_search()
202 SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2()
231 SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) in SYSCALL_DEFINE2()
259 int in_group_p(gid_t grp) in in_group_p()
271 int in_egroup_p(gid_t grp) in in_egroup_p()
Duser_namespace.c111 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid) in user_ns_map_gid()
124 return (gid_t)0; in user_ns_map_gid()
Dsys.c579 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument
591 if (rgid != (gid_t) -1) { in SYSCALL_DEFINE2()
599 if (egid != (gid_t) -1) { in SYSCALL_DEFINE2()
609 if (rgid != (gid_t) -1 || in SYSCALL_DEFINE2()
610 (egid != (gid_t) -1 && egid != old->gid)) in SYSCALL_DEFINE2()
626 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
863 SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) in SYSCALL_DEFINE3() argument
876 if (rgid != (gid_t) -1 && rgid != old->gid && in SYSCALL_DEFINE3()
879 if (egid != (gid_t) -1 && egid != old->gid && in SYSCALL_DEFINE3()
882 if (sgid != (gid_t) -1 && sgid != old->gid && in SYSCALL_DEFINE3()
[all …]
/linux-3.4.99/arch/mips/include/asm/
Dstat.h25 gid_t st_gid;
61 gid_t st_gid;
102 gid_t st_gid;
/linux-3.4.99/arch/parisc/include/asm/
Dipcbuf.h15 gid_t gid;
17 gid_t cgid;
Dstat.h33 gid_t st_gid;
68 gid_t st_gid;
/linux-3.4.99/include/net/9p/
Dclient.h230 int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, gid_t gid,
233 gid_t gid, struct p9_qid *qid);
253 dev_t rdev, gid_t gid, struct p9_qid *);
255 gid_t gid, struct p9_qid *);
/linux-3.4.99/fs/cifs/
Dcifs_fs_sb.h59 gid_t mnt_gid;
61 gid_t mnt_backupgid;
/linux-3.4.99/net/sunrpc/
Dauth_unix.c20 gid_t uc_gid;
21 gid_t uc_gids[NFS_NGROUPS];
162 for (i = 0; i < 16 && cred->uc_gids[i] != (gid_t) NOGROUP; i++) in unx_marshal()
/linux-3.4.99/net/ipv4/
Dsysctl_net_ipv4.c80 static void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high) in inet_get_ping_group_range_table()
82 gid_t *data = table->data; in inet_get_ping_group_range_table()
93 static void set_ping_group_range(struct ctl_table *table, gid_t range[2]) in set_ping_group_range()
95 gid_t *data = table->data; in set_ping_group_range()
108 gid_t range[2]; in ipv4_ping_group_range()
/linux-3.4.99/usr/
Dgen_init_cpio.c103 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink()
152 uid_t uid, gid_t gid) in cpio_mkgeneric()
240 uid_t uid, gid_t gid, char dev_type, in cpio_mknod()
295 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile()
/linux-3.4.99/fs/nfsd/
Dacl.h47 int nfs4_acl_permission(struct nfs4_acl *acl, uid_t owner, gid_t group,
/linux-3.4.99/include/net/
Dping.h29 #define GID_T_MAX (((gid_t)~0U) >> 1)
/linux-3.4.99/arch/powerpc/include/asm/
Dstat.h40 gid_t st_gid;
/linux-3.4.99/arch/s390/kernel/
Dcompat_wrapper.S793 llgfr %r4,%r4 # gid_t
807 llgfr %r2,%r2 # gid_t
808 llgfr %r3,%r3 # gid_t
813 llgtr %r3,%r3 # gid_t *
818 llgtr %r3,%r3 # gid_t *
824 llgfr %r4,%r4 # gid_t
840 llgfr %r2,%r2 # gid_t
841 llgfr %r3,%r3 # gid_t
842 llgfr %r4,%r4 # gid_t
846 llgtr %r2,%r2 # gid_t *
[all …]
Dcompat_linux.c85 #define low2highgid(gid) ((gid) == (u16)-1) ? (gid_t)-1 : (gid_t)(gid)
117 return sys_setgid((gid_t)gid); in sys32_setgid16()
171 return sys_setfsgid((gid_t)gid); in sys32_setfsgid16()
196 GROUP_AT(group_info, i) = (gid_t)group; in groups16_from_user()
/linux-3.4.99/arch/sparc/include/asm/
Dstat.h14 gid_t st_gid;

123456