kernel/drivers/oprofile/event_buffer.c
.. .. @@ -113,7 +113,7 @@ 113 113 { 114 114 int err = -EPERM; 115 115 116 - if (!capable(CAP_SYS_ADMIN))116 + if (!perfmon_capable())117 117 return -EPERM; 118 118 119 119 if (test_and_set_bit_lock(0, &buffer_opened))