Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156119 Details for
Bug 241362
kdump: read on /proc/kcore returns EPERM always
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
new version of patch to enable kcore access
kcore-enable.patch (text/plain), 1.03 KB, created by
Neil Horman
on 2007-06-04 20:00:11 UTC
(
hide
)
Description:
new version of patch to enable kcore access
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2007-06-04 20:00:11 UTC
Size:
1.03 KB
patch
obsolete
>--- linux-2.6.20.noarch/fs/proc/kcore.c.orig 2007-06-04 15:44:29.000000000 -0400 >+++ linux-2.6.20.noarch/fs/proc/kcore.c 2007-06-04 15:48:57.000000000 -0400 >@@ -23,10 +23,10 @@ > #include <asm/io.h> > > #define CORE_STR "CORE" >- >+unsigned int allow_kcore_access = 0; > static int open_kcore(struct inode * inode, struct file * filp) > { >- return -EPERM; >+ return (capable(CAP_SYS_RAWIO) && allow_kcore_access) ? 0 : -EPERM; > } > > static ssize_t read_kcore(struct file *, char __user *, size_t, loff_t *); >--- linux-2.6.20.noarch/arch/x86_64/kernel/machine_kexec.c.orig 2007-06-04 15:50:52.000000000 -0400 >+++ linux-2.6.20.noarch/arch/x86_64/kernel/machine_kexec.c 2007-06-04 15:52:14.000000000 -0400 >@@ -236,10 +236,12 @@ > * Useful for holding code to do something appropriate > * after a kernel panic. > */ >+extern int allow_kcore_access; > static int __init setup_crashkernel(char *arg) > { > unsigned long size, base; > char *p; >+ allow_kcore_access = 1; /*enable ability to read /proc/kcore*/ > if (!arg) > return -EINVAL; > size = memparse(arg, &p);
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 241362
:
156105
| 156119 |
304681