FreeBSD Bugzilla – Attachment 95622 Details for
Bug 134050
cpuset allows change of the jail's set from inside the jail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 578 bytes, created by
Miroslav Lachman
on 2009-04-27 20:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Miroslav Lachman
Created:
2009-04-27 20:10:00 UTC
Size:
578 bytes
patch
obsolete
>Index: sys/kern/kern_cpuset.c >=================================================================== >--- sys/kern/kern_cpuset.c (revision 190341) >+++ sys/kern/kern_cpuset.c (working copy) >@@ -357,6 +357,15 @@ > if (error) > return (error); > /* >+ * In case we are called from within the jail >+ * we do not allow modifying the dedicated root >+ * cpuset of the jail but may still allow to >+ * change child sets. >+ */ >+ if (jailed(curthread->td_ucred) && >+ set->cs_flags & CPU_SET_ROOT) >+ return (EPERM); >+ /* > * Verify that we have access to this set of > * cpus. > */
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 134050
: 95622