[Devel] [PATCH RHEL8 COMMIT] Kconfig.openvz: force CGROUP_PERF if compiling VZ Containers code
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Mar 5 17:08:49 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.8
------>
commit 2690cc49812b353f493e2028fe90839a8a5808e0
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date: Thu Mar 2 16:13:00 2017 +0400
Kconfig.openvz: force CGROUP_PERF if compiling VZ Containers code
The perf_event_open() syscall is available from Containers. The
CONFIG_CGROUP_PERF option is set in current OpenVZ kernel configs, but let's
force-enable it if CONFIG_VE is enabled to prevent possible non-secure kernel
config if someone rebuilds the kernel with own config.
https://jira.sw.ru/browse/PSBM-51360
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
(cherry picked from vz7 commit a35598ba04acf80424fd8f997686a2edd3c3dcb8)
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
kernel/Kconfig.openvz | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/Kconfig.openvz b/kernel/Kconfig.openvz
index fe6cbdb44b1a..41f0bc78c631 100644
--- a/kernel/Kconfig.openvz
+++ b/kernel/Kconfig.openvz
@@ -15,6 +15,7 @@ config VE
select CGROUPS
select CGROUP_DEVICE
select CGROUP_FREEZER
+ select CGROUP_PERF
help
This option adds support of virtual Linux running on the original box
with fully supported virtual network driver, tty subsystem and
More information about the Devel
mailing list