Home
last modified time | relevance | path

Searched refs:egid (Results 1 – 23 of 23) sorted by relevance

/linux-2.4.37.9/kernel/
Dsys.c395 asmlinkage long sys_setregid(gid_t rgid, gid_t egid) in sys_setregid() argument
398 int old_egid = current->egid; in sys_setregid()
404 (current->egid==rgid) || in sys_setregid()
410 if (egid != (gid_t) -1) { in sys_setregid()
411 if ((old_rgid == egid) || in sys_setregid()
412 (current->egid == egid) || in sys_setregid()
413 (current->sgid == egid) || in sys_setregid()
415 new_egid = egid; in sys_setregid()
426 (egid != (gid_t) -1 && egid != old_rgid)) in sys_setregid()
429 current->egid = new_egid; in sys_setregid()
[all …]
Duid16.c45 asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid) in sys_setregid16() argument
47 return sys_setregid(low2highgid(rgid), low2highgid(egid)); in sys_setregid16()
82 asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid) in sys_setresgid16() argument
84 return sys_setresgid(low2highgid(rgid), low2highgid(egid), in sys_setresgid16()
88 asmlinkage long sys_getresgid16(old_gid_t *rgid, old_gid_t *egid, old_gid_t *sgid) in sys_getresgid16() argument
93 !(retval = put_user(high2lowgid(current->egid), egid))) in sys_getresgid16()
162 return high2lowgid(current->egid); in sys_getegid16()
Dptrace.c68 (current->gid != task->egid) || in ptrace_attach()
Dkmod.c126 curtask->egid = curtask->gid = curtask->sgid = curtask->fsgid = 0; in exec_usermodehelper()
Dtimer.c825 return current->egid; in sys_getegid()
/linux-2.4.37.9/fs/proc/
Darray.c167 p->gid, p->egid, p->sgid, p->fsgid); in task_state()
321 current->uid == task->uid && current->gid == task->egid && in proc_pid_stat()
577 (current->uid != task->uid) || (current->gid != task->egid) || in m_start()
Dbase.c140 (current->gid != task->egid) || in may_ptrace_attach()
777 inode->i_gid = task->egid; in proc_pid_make_inode()
/linux-2.4.37.9/fs/
Dexec.c627 if (current->euid == current->uid && current->egid == current->gid) { in flush_old_exec()
650 if (bprm->e_uid != current->euid || bprm->e_gid != current->egid) { in flush_old_exec()
710 bprm->e_gid = current->egid; in prepare_binprm()
813 current->sgid = current->egid = current->fsgid = bprm->e_gid; in compute_creds()
Dbinfmt_elf.c205 NEW_AUX_ENT(12, AT_EGID, (elf_addr_t) current->egid); in create_elf_tables()
/linux-2.4.37.9/fs/devfs/
Dbase.c1520 current->egid, &fs_info, 0) && wait) in devfsd_notify()
2427 current->euid, current->egid, fs_info, 0) ) in try_modload()
2817 inode->i_gid = current->egid; in devfs_open()
2821 current->euid, current->egid, fs_info, 0); in devfs_open()
2920 current->euid, current->egid, fs_info, 1); in devfs_d_delete()
3116 de->inode.gid = current->egid; in devfs_symlink()
3147 de->inode.gid = current->egid; in devfs_mkdir()
3216 de->inode.gid = current->egid; in devfs_mknod()
/linux-2.4.37.9/net/core/
Dscm.c45 ((creds->gid == current->gid || creds->gid == current->egid || in scm_check_creds()
/linux-2.4.37.9/fs/coda/
Dcoda_linux.c61 cred->cr_egid = (vgid_t) current->egid; in coda_load_creds()
/linux-2.4.37.9/ipc/
Dutil.c162 new->gid = new->cgid = current->egid; in ipc_addid()
/linux-2.4.37.9/arch/ia64/ia32/
Dsys_ia32.c3555 extern asmlinkage long sys_getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid);
3558 sys32_getresgid16 (u16 *rgid, u16 *egid, u16 *sgid) in sys32_getresgid16() argument
3571 return put_user(a, rgid) | put_user(b, egid) | put_user(c, sgid); in sys32_getresgid16()
4240 extern asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
4243 sys32_setregid(__kernel_gid_t32 rgid, __kernel_gid_t32 egid) in sys32_setregid() argument
4248 segid = (egid == (__kernel_gid_t32)-1) ? ((gid_t)-1) : ((gid_t)egid); in sys32_setregid()
4252 extern asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
4255 sys32_setresgid(__kernel_gid_t32 rgid, __kernel_gid_t32 egid, in sys32_setresgid() argument
4261 segid = (egid == (__kernel_gid_t32)-1) ? ((gid_t)-1) : ((gid_t)egid); in sys32_setresgid()
/linux-2.4.37.9/net/unix/
Daf_unix.c440 sk->peercred.gid = current->egid; in unix_listen()
968 newsk->peercred.gid = current->egid; in unix_stream_connect()
1029 ska->peercred.gid = skb->peercred.gid = current->egid; in unix_socketpair()
/linux-2.4.37.9/arch/sparc64/kernel/
Dsys_sparc32.c144 asmlinkage long sys32_setregid16(u16 rgid, u16 egid) in sys32_setregid16() argument
146 return sys_setregid(low2highgid(rgid), low2highgid(egid)); in sys32_setregid16()
181 asmlinkage long sys32_setresgid16(u16 rgid, u16 egid, u16 sgid) in sys32_setresgid16() argument
183 return sys_setresgid(low2highgid(rgid), low2highgid(egid), in sys32_setresgid16()
187 asmlinkage long sys32_getresgid16(u16 *rgid, u16 *egid, u16 *sgid) in sys32_getresgid16() argument
192 !(retval = put_user(high2lowgid(current->egid), egid))) in sys32_getresgid16()
261 return high2lowgid(current->egid); in sys32_getegid16()
/linux-2.4.37.9/arch/s390x/kernel/
Dlinux32.c126 asmlinkage long sys32_setregid16(u16 rgid, u16 egid) in sys32_setregid16() argument
128 return sys_setregid(low2highgid(rgid), low2highgid(egid)); in sys32_setregid16()
163 asmlinkage long sys32_setresgid16(u16 rgid, u16 egid, u16 sgid) in sys32_setresgid16() argument
165 return sys_setresgid(low2highgid(rgid), low2highgid(egid), in sys32_setresgid16()
169 asmlinkage long sys32_getresgid16(u16 *rgid, u16 *egid, u16 *sgid) in sys32_getresgid16() argument
174 !(retval = put_user(high2lowgid(current->egid), egid))) in sys32_getresgid16()
243 return high2lowgid(current->egid); in sys32_getegid16()
/linux-2.4.37.9/fs/smbfs/
Ddir.c638 attr.ia_gid = current->egid; in smb_make_node()
/linux-2.4.37.9/include/linux/
Dsched.h372 gid_t gid,egid,sgid,fsgid; member
/linux-2.4.37.9/arch/alpha/kernel/
Dosf_sys.c206 (&regs)->r20 = tsk->egid; in sys_getxgid()
/linux-2.4.37.9/arch/mips/kernel/
Dirixelf.c203 NEW_AUX_ENT (10, AT_EGID, (elf_addr_t) current->egid); in create_irix_tables()
Dsysirix.c613 regs->regs[3] = current->egid; in irix_getgid()
/linux-2.4.37.9/Documentation/filesystems/devfs/
DREADME380 changed to the current euid and egid of the opening process, and the