diff options
| author | elad <elad@NetBSD.org> | 2007-01-05 15:40:51 +0000 |
|---|---|---|
| committer | elad <elad@NetBSD.org> | 2007-01-05 15:40:51 +0000 |
| commit | 1113a3afe4c09d489facca249deba48b2bc0675e (patch) | |
| tree | aad64e3393c063419a9d53cc060288d6cbf102d6 /sys/compat/linux/common | |
| parent | ce903562f2ad85e8f02ee3e62b45b70cf7278733 (diff) | |
Consistent usage of KAUTH_GENERIC_ISSUSER.
Diffstat (limited to 'sys/compat/linux/common')
| -rw-r--r-- | sys/compat/linux/common/linux_sched.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/linux/common/linux_sched.c b/sys/compat/linux/common/linux_sched.c index 3f43d5ebe36..d39f5508e97 100644 --- a/sys/compat/linux/common/linux_sched.c +++ b/sys/compat/linux/common/linux_sched.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sched.c,v 1.37 2006/11/16 01:32:42 christos Exp $ */ +/* $NetBSD: linux_sched.c,v 1.38 2007/01/05 15:46:39 elad Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.37 2006/11/16 01:32:42 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.38 2007/01/05 15:46:39 elad Exp $"); #include <sys/param.h> #include <sys/mount.h> @@ -171,7 +171,7 @@ linux_sys_sched_setparam(struct lwp *cl, void *v, register_t *retval) if ((p = pfind(SCARG(uap, pid))) == NULL) return ESRCH; if (!(cl->l_proc == p || - kauth_cred_geteuid(pc) == 0 || + kauth_authorize_generic(pc, KAUTH_GENERIC_ISSUSER, NULL) == 0 || kauth_cred_getuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_geteuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_getuid(pc) == kauth_cred_geteuid(p->p_cred) || @@ -204,7 +204,7 @@ linux_sys_sched_getparam(struct lwp *cl, void *v, register_t *retval) if ((p = pfind(SCARG(uap, pid))) == NULL) return ESRCH; if (!(cl->l_proc == p || - kauth_cred_geteuid(pc) == 0 || + kauth_authorize_generic(pc, KAUTH_GENERIC_ISSUSER, NULL) == 0 || kauth_cred_getuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_geteuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_getuid(pc) == kauth_cred_geteuid(p->p_cred) || @@ -246,7 +246,7 @@ linux_sys_sched_setscheduler(struct lwp *cl, void *v, if ((p = pfind(SCARG(uap, pid))) == NULL) return ESRCH; if (!(cl->l_proc == p || - kauth_cred_geteuid(pc) == 0 || + kauth_authorize_generic(pc, KAUTH_GENERIC_ISSUSER, NULL) == 0 || kauth_cred_getuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_geteuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_getuid(pc) == kauth_cred_geteuid(p->p_cred) || @@ -286,7 +286,7 @@ linux_sys_sched_getscheduler(cl, v, retval) if ((p = pfind(SCARG(uap, pid))) == NULL) return ESRCH; if (!(cl->l_proc == p || - kauth_cred_geteuid(pc) == 0 || + kauth_authorize_generic(pc, KAUTH_GENERIC_ISSUSER, NULL) == 0 || kauth_cred_getuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_geteuid(pc) == kauth_cred_getuid(p->p_cred) || kauth_cred_getuid(pc) == kauth_cred_geteuid(p->p_cred) || |
