Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154532417
D56580.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
361 B
Referenced Files
None
Subscribers
None
D56580.diff
View Options
diff --git a/sys/kern/kern_kexec.c b/sys/kern/kern_kexec.c
--- a/sys/kern/kern_kexec.c
+++ b/sys/kern/kern_kexec.c
@@ -342,6 +342,9 @@
{
int error;
+ error = securelevel_gt(td->td_ucred, 0);
+ if (error != 0)
+ return (error);
// FIXME: Do w need a better privilege check than PRIV_REBOOT here?
error = priv_check(td, PRIV_REBOOT);
if (error != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 8:29 PM (3 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32032168
Default Alt Text
D56580.diff (361 B)
Attached To
Mode
D56580: kexec: Disallow kexec_load if securelevel > 0
Attached
Detach File
Event Timeline
Log In to Comment