FreeBSD Bugzilla – Attachment 8573 Details for
Bug 17878
Jail user can change priority of outside processes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.63 KB, created by
sam
on 2000-04-09 14:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
sam
Created:
2000-04-09 14:40:00 UTC
Size:
1.63 KB
patch
obsolete
>--- kern_resource.c.orig Sun Apr 9 12:06:38 2000 >+++ kern_resource.c Sun Apr 9 12:31:53 2000 >@@ -86,7 +86,7 @@ > p = curp; > else > p = pfind(uap->who); >- if (p == 0) >+ if (p == 0 || !PRISON_CHECK(curp, p)) > break; > low = p->p_nice; > break; >@@ -98,6 +98,8 @@ > pg = curp->p_pgrp; > else if ((pg = pgfind(uap->who)) == NULL) > break; >+ if (!PRISON_CHECK(curp, LIST_FIRST(&pg->pg_members))) >+ break; > LIST_FOREACH(p, &pg->pg_members, p_pglist) { > if (p->p_nice < low) > low = p->p_nice; >@@ -110,7 +112,8 @@ > uap->who = curp->p_ucred->cr_uid; > LIST_FOREACH(p, &allproc, p_list) > if (p->p_ucred->cr_uid == uap->who && >- p->p_nice < low) >+ p->p_nice < low && >+ PRISON_CHECK(curp, p)) > low = p->p_nice; > break; > >@@ -146,7 +149,7 @@ > p = curp; > else > p = pfind(uap->who); >- if (p == 0) >+ if (p == 0 || !PRISON_CHECK(curp, p)) > break; > error = donice(curp, p, uap->prio); > found++; >@@ -159,6 +162,8 @@ > pg = curp->p_pgrp; > else if ((pg = pgfind(uap->who)) == NULL) > break; >+ if (!PRISON_CHECK(curp, LIST_FIRST(&pg->pg_members))) >+ break; > LIST_FOREACH(p, &pg->pg_members, p_pglist) { > error = donice(curp, p, uap->prio); > found++; >@@ -170,7 +175,8 @@ > if (uap->who == 0) > uap->who = curp->p_ucred->cr_uid; > LIST_FOREACH(p, &allproc, p_list) >- if (p->p_ucred->cr_uid == uap->who) { >+ if (p->p_ucred->cr_uid == uap->who && >+ PRISON_CHECK(curp, p)) { > error = donice(curp, p, uap->prio); > found++; > } >@@ -239,7 +245,7 @@ > else > p = pfind(uap->pid); > >- if (p == 0) >+ if (p == 0 || !PRISON_CHECK(curp, p)) > return (ESRCH); > > switch (uap->function) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17878
: 8573