git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
fs
/
proc
/
kcore.c
diff --git
a/fs/proc/kcore.c
b/fs/proc/kcore.c
index
5c08a9c
..
adc2cd9
100644
(file)
--- a/
fs/proc/kcore.c
+++ b/
fs/proc/kcore.c
@@
-26,12
+26,12
@@
static int open_kcore(struct inode * inode, struct file * filp)
{
static int open_kcore(struct inode * inode, struct file * filp)
{
- return -EPERM;
+ return
capable(CAP_SYS_RAWIO) ? 0 :
-EPERM;
}
static ssize_t read_kcore(struct file *, char __user *, size_t, loff_t *);
}
static ssize_t read_kcore(struct file *, char __user *, size_t, loff_t *);
-
const
struct file_operations proc_kcore_operations = {
+struct file_operations proc_kcore_operations = {
.read = read_kcore,
.open = open_kcore,
};
.read = read_kcore,
.open = open_kcore,
};