Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 25 of 49) sorted by relevance

12

/linux-2.4.37.9/kernel/
Dsys.c235 if (p->uid != current->euid && in sys_setpriority()
499 (current->uid != 0 && current->euid != 0 && current->suid != 0) && in cap_emulate_setxuid()
504 if (old_euid == 0 && current->euid != 0) { in cap_emulate_setxuid()
507 if (old_euid != 0 && current->euid == 0) { in cap_emulate_setxuid()
545 asmlinkage long sys_setreuid(uid_t ruid, uid_t euid) in sys_setreuid() argument
550 new_euid = old_euid = current->euid; in sys_setreuid()
556 (current->euid != ruid) && in sys_setreuid()
561 if (euid != (uid_t) -1) { in sys_setreuid()
562 new_euid = euid; in sys_setreuid()
563 if ((old_ruid != euid) && in sys_setreuid()
[all …]
Duid16.c55 asmlinkage long sys_setreuid16(old_uid_t ruid, old_uid_t euid) in sys_setreuid16() argument
57 return sys_setreuid(low2highuid(ruid), low2highuid(euid)); in sys_setreuid16()
65 asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid) in sys_setresuid16() argument
67 return sys_setresuid(low2highuid(ruid), low2highuid(euid), in sys_setresuid16()
71 asmlinkage long sys_getresuid16(old_uid_t *ruid, old_uid_t *euid, old_uid_t *suid) in sys_getresuid16() argument
76 !(retval = put_user(high2lowuid(current->euid), euid))) in sys_getresuid16()
152 return high2lowuid(current->euid); in sys_geteuid16()
Dptrace.c65 if(((current->uid != task->euid) || in ptrace_attach()
Dsched.c987 if ((current->euid != p->euid) && (current->euid != p->uid) && in setscheduler()
Dkmod.c125 curtask->euid = curtask->uid = curtask->suid = curtask->fsuid = 0; in exec_usermodehelper()
/linux-2.4.37.9/fs/
Dfcntl.c303 filp->f_owner.euid = current->euid; in do_fcntl()
405 if ((fown->euid != 0) && in send_sigio_to_task()
406 (fown->euid ^ p->suid) && (fown->euid ^ p->uid) && in send_sigio_to_task()
Ddnotify.c110 filp->f_owner.euid = current->euid; in fcntl_dirnotify()
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()
709 bprm->e_uid = current->euid; in prepare_binprm()
812 current->suid = current->euid = current->fsuid = bprm->e_uid; in compute_creds()
Dfile_table.c57 if (files_stat.nr_free_files && !current->euid) in get_empty_filp()
Dquota.c96 if (((type == USRQUOTA && current->euid != id) || in check_quotactl_valid()
309 if (((type == USRQUOTA && current->euid != id) || in check_compat_quotactl_valid()
/linux-2.4.37.9/ipc/
Dutil.c161 new->cuid = new->uid = current->euid; in ipc_addid()
257 if (current->euid == ipcp->cuid || current->euid == ipcp->uid) in ipcperms()
Dshm.c508 if (current->euid != shp->shm_perm.uid && in sys_shmctl()
509 current->euid != shp->shm_perm.cuid && in sys_shmctl()
538 if (current->euid != shp->shm_perm.uid && in sys_shmctl()
539 current->euid != shp->shm_perm.cuid && in sys_shmctl()
/linux-2.4.37.9/include/asm-cris/
Deshlibld.h79 int euid, int is_suid);
/linux-2.4.37.9/drivers/net/
Dtun.c367 if (current->euid != tun->owner && !capable(CAP_NET_ADMIN)) in tun_set_iff()
520 file->f_owner.euid = current->euid; in tun_chr_fasync()
/linux-2.4.37.9/fs/proc/
Darray.c166 p->uid, p->euid, p->suid, p->fsuid, in task_state()
320 (current->uid == task->euid && current->uid == task->suid && in proc_pid_stat()
576 ((current->uid != task->euid) || (current->uid != task->suid) || in m_start()
/linux-2.4.37.9/mm/
Doom_kill.c97 p->uid == 0 || p->euid == 0) in badness()
/linux-2.4.37.9/include/linux/
Dsched.h371 uid_t uid,euid,suid,fsuid; member
723 if (!issecure(SECURE_NOROOT) && current->euid == 0) { in suser()
750 if (cap_is_fs_cap(cap) ? current->fsuid == 0 : current->euid == 0) in capable()
/linux-2.4.37.9/fs/intermezzo/
Ddir.c131 return (current->euid == izo_authorized_uid || in presto_can_ilookup()
147 current->euid, izo_authorized_uid); in presto_iget_ilookup()
972 if (current->euid != 0 && current->euid != izo_authorized_uid) { in presto_ioctl()
/linux-2.4.37.9/drivers/char/drm/
Ddrm_fops.h53 priv->uid = current->euid; in DRM()
/linux-2.4.37.9/fs/devfs/
Dbase.c1519 if (devfsd_notify_de (de, type, de->mode, current->euid, in devfsd_notify()
2427 current->euid, current->egid, fs_info, 0) ) in try_modload()
2816 inode->i_uid = current->euid; 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()
3115 de->inode.uid = current->euid; in devfs_symlink()
3146 de->inode.uid = current->euid; in devfs_mkdir()
3215 de->inode.uid = current->euid; in devfs_mknod()
/linux-2.4.37.9/net/core/
Dscm.c43 ((creds->uid == current->uid || creds->uid == current->euid || in scm_check_creds()
/linux-2.4.37.9/drivers/char/drm-4.0/
Dfops.c55 priv->uid = current->euid; in drm_open_helper()
/linux-2.4.37.9/fs/coda/
Dcoda_linux.c56 cred->cr_euid = (vuid_t) current->euid; in coda_load_creds()
/linux-2.4.37.9/fs/umsdos/
Dioctl.c113 if (current->euid != 0 && cmd != UMSDOS_GETVERSION) in UMSDOS_ioctl_dir()
/linux-2.4.37.9/arch/ia64/ia32/
Dsys_ia32.c3537 extern asmlinkage long sys_getresuid (uid_t *ruid, uid_t *euid, uid_t *suid);
3540 sys32_getresuid16 (u16 *ruid, u16 *euid, u16 *suid) in sys32_getresuid16() argument
3550 if (put_user(a, ruid) || put_user(b, euid) || put_user(c, suid)) in sys32_getresuid16()
4215 extern asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
4217 asmlinkage long sys32_setreuid(__kernel_uid_t32 ruid, __kernel_uid_t32 euid) in sys32_setreuid() argument
4222 seuid = (euid == (__kernel_uid_t32)-1) ? ((uid_t)-1) : ((uid_t)euid); in sys32_setreuid()
4226 extern asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
4229 sys32_setresuid(__kernel_uid_t32 ruid, __kernel_uid_t32 euid, in sys32_setresuid() argument
4235 seuid = (euid == (__kernel_uid_t32)-1) ? ((uid_t)-1) : ((uid_t)euid); in sys32_setresuid()

12