Bug 234003 - -l option of opcontrol does not work as advertised
-l option of opcontrol does not work as advertised
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: oprofile (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: William Cohen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-26 12:09 EDT by Ulrich Drepper
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 0.9.3-6.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-10-08 10:42:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
include the "-l" and "-d" short versions of user options (668 bytes, patch)
2007-07-31 17:13 EDT, William Cohen
no flags Details | Diff
allows short from of --list-events (-l) and --dump (-d) for normal users (1003 bytes, patch)
2007-10-05 11:50 EDT, William Cohen
no flags Details | Diff

  None (edit)
Description Ulrich Drepper 2007-03-26 12:09:19 EDT
Description of problem:
The --help message of opcontrol shows:

   -l/--list-events list event types and unit masks

But if I use -l as an unprivileged user I get

$  opcontrol -l
Normal users are limited to either '--dump' or '--list-events'.

This is even the case after running opcontrol --init.


Version-Release number of selected component (if applicable):
oprofile-0.9.2-3.fc7.x86_64

How reproducible:
Always

Steps to Reproduce:
1.run opcontrol --init as privileged user
2.as unprovileged user run opcontrol -l
3.
  
Actual results:
above message

Expected results:
list of events

Additional info:
Comment 1 William Cohen 2007-07-31 17:13:55 EDT
Created attachment 160361 [details]
include the "-l" and "-d" short versions of user options

The attached patch includes tests for the short versions of the "--dump" and
"--list-events" options. See about getting this correction in the upstream
oprofile.
Comment 2 William Cohen 2007-10-05 11:50:20 EDT
Created attachment 217651 [details]
allows short from of --list-events (-l) and --dump (-d) for normal users

The attached patchs has been email to the oprofile mailing list. Assuming this
goes into the upstream, it will be applied to the oprofile rawhide to close out
this problem.
Comment 3 William Cohen 2007-10-08 10:42:51 EDT
A patch has been put in the upstream oprofile to address this problem. The patch
has been backported to the fedora devel oprofile, oprofile-0_9_3-6_fc8.

Note You need to log in before you can comment on or make changes to this bug.