[PATCH v1 0/3] Introduce CAP_SYS_PERFMON capability for secure Perf users groups
alexey.budankov at linux.intel.com
Wed Dec 11 17:00:07 UTC 2019
On 11.12.2019 18:24, Peter Zijlstra wrote:
> On Wed, Dec 11, 2019 at 01:52:15PM +0300, Alexey Budankov wrote:
>> Undoubtedly, SELinux is the powerful, mature, whole level of functionality that
>> could provide benefits not only for perf_events subsystem. However perf_events
>> is built around capabilities to provide access control to its functionality,
>> thus perf_events would require considerable rework prior it could be controlled
>> thru SELinux.
> You mean this:
> da97e18458fb ("perf_event: Add support for LSM and SELinux checks")
Yes, I do.
This feature greatly adds up into MAC access control ,  for perf_events,
additionally to already existing DAC . However, there is still the whole
other part of MAC story on the user space side.
Fortunately MAC and DAC access control mechanisms designed in the way they are
naturally layered and coexist in the system so I don't see any contradiction
in advancing either mechanism to meet the demand of possible diverse use cases.
There is no much rationale in providing favor to one or the other mechanism
because together they constitute complete integrity of security access control
and configurability for diverse use cases of perf_events.
>> Then the adoption could also require changes to the installed
>> infrastructure just for the sake of adopting alternative access control mechanism.
> This is still very much true.
It is just enough to imaging some HPC cluster or Cloud lab with
several hundreds of nodes to be upgraded.
More information about the Linux-security-module-archive