setcap does not recognize CAP_PERFMON
Bug #1934608 reported by
Nagle-animats
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcap (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 20.04 LTS, updated to July 3, 2021.
"setcap" command does not recognize the capability "CAP_PERFMON", in either upper or lower case.
It recognizes other named capabilities.
The same bug has been reported, and fixed, for RedHat/CentOS:
To post a comment you must log in.
Reproduce by:
echo foo > foo
sudo setcap cap_perfmon+ep foo
Result: "Fatal error: Invalid argument"
sudo setcap cap_net_raw_ep foo
Result: blank (success)
getcap foo
foo = cap_net_raw+ep
So cap_net_raw works, but cap_perfmon is not implemented.