OSDN Git Service

tracing/user_events: Move pages/locks into groups to prepare for namespaces
authorBeau Belgrave <beaub@linux.microsoft.com>
Sat, 1 Oct 2022 00:10:16 +0000 (17:10 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 3 Oct 2022 17:28:46 +0000 (13:28 -0400)
commite5d271812e7a4d527e65b0228b4a16795c0e0c6c
tree2a7621adfb0a0303c3e63c1ab35150fa1bc309cd
parent5d8d2bb946dd24d00c99384471ad8148571a9fbd
tracing/user_events: Move pages/locks into groups to prepare for namespaces

In order to enable namespaces or any sort of isolation within
user_events the register lock and pages need to be broken up into
groups. Each event and file now has a group pointer which stores the
actual pages to map, lookup data and synchronization objects.

This only enables a single group that maps to init_user_ns, as IMA
namespace has done. This enables user_events to start the work of
supporting namespaces by walking the namespaces up to the init_user_ns.
Future patches will address other user namespaces and will align to the
approaches the IMA namespace uses.

Link: https://lore.kernel.org/linux-kernel/20220915193221.1728029-15-stefanb@linux.ibm.com/#t
Link: https://lkml.kernel.org/r/20221001001016.2832-2-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_user.c