diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-04-27 01:56:32 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-04-27 01:56:32 +0000 |
commit | f786f0e0e3e07e612592765e22b947b1de9a9f5c (patch) | |
tree | c4eb374e157ea3bee745480701f82cce10025c43 | |
parent | 821062d7975fab76d720cc4cfd2883d62e726f09 (diff) | |
download | FreeBSD-src-f786f0e0e3e07e612592765e22b947b1de9a9f5c.zip FreeBSD-src-f786f0e0e3e07e612592765e22b947b1de9a9f5c.tar.gz |
o Remove the disabled p_cansched() test cases that permitted users to
modify the scheduling properties of processes with a different real
uid but the same effective uid (i.e., daemons, et al). (note: these
cases were previously commented out, so this does not change the
compiled code at al)
Obtained from: TrustedBSD Project
-rw-r--r-- | sys/kern/kern_prot.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 33095af..64fcbf9 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1143,17 +1143,6 @@ p_cansched(struct proc *p1, struct proc *p2, int *privused) return (0); if (p1->p_ucred->cr_uid == p2->p_cred->p_ruid) return (0); -#if 0 - /* - * XXX should a process be able to affect another process - * acting as the same uid (i.e., sendmail delivery, lpd, - * et al?) - */ - if (p1->p_cred->p_ruid == p2->p_ucred->cr_uid) - return (0); - if (p1->p_ucred->cr_uid == p2->p_ucred->cr_uid) - return (0); -#endif /* 0 */ if (!suser_xxx(0, p1, PRISON_ROOT)) { if (privused != NULL) |