projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/oprofile: Open access for CAP_PERFMON privileged process
[linux-2.6-block.git]
/
drivers
/
oprofile
/
event_buffer.c
diff --git
a/drivers/oprofile/event_buffer.c
b/drivers/oprofile/event_buffer.c
index 12ea4a4ad60779afc551aecfffd8c2886a5688cf..6c9edc8bbc9521b2aa00b8ee1dc1187fa4d072fe 100644
(file)
--- a/
drivers/oprofile/event_buffer.c
+++ b/
drivers/oprofile/event_buffer.c
@@
-113,7
+113,7
@@
static int event_buffer_open(struct inode *inode, struct file *file)
{
int err = -EPERM;
- if (!
capable(CAP_SYS_ADMIN
))
+ if (!
perfmon_capable(
))
return -EPERM;
if (test_and_set_bit_lock(0, &buffer_opened))