diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-06-16 23:41:43 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-06-16 23:41:43 +0000 |
| commit | 7251b7863cf8564c9325c5302f0548d14734c39f (patch) | |
| tree | 787b92698a00798f7eef6093395ee57f1e6c2cf0 /sys/kern/kern_fork.c | |
| parent | fab38de2d3d5c6f63f92797c00987ea93dee0579 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
| -rw-r--r-- | sys/kern/kern_fork.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index c0e320495e04..1a7f4a74dca0 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -293,9 +293,8 @@ fork1(td, flags, pages, procp) * processes, maxproc is the limit. */ sx_xlock(&allproc_lock); - if ((nprocs >= maxproc - 10 && - priv_check_cred(td->td_ucred, PRIV_MAXPROC, SUSER_RUID) != 0) || - nprocs >= maxproc) { + if ((nprocs >= maxproc - 10 && priv_check_cred(td->td_ucred, + PRIV_MAXPROC, 0) != 0) || nprocs >= maxproc) { error = EAGAIN; goto fail; } @@ -306,7 +305,7 @@ fork1(td, flags, pages, procp) * * XXXRW: Can we avoid privilege here if it's not needed? */ - error = priv_check_cred(td->td_ucred, PRIV_PROC_LIMIT, SUSER_RUID); + error = priv_check_cred(td->td_ucred, PRIV_PROC_LIMIT, 0); if (error == 0) ok = chgproccnt(td->td_ucred->cr_ruidinfo, 1, 0); else { |
