[RHEL8,COMMIT] Kconfig.openvz: force CGROUP_PERF if compiling VZ Containers code

Submitted by Konstantin Khorenko on March 5, 2021, 2:08 p.m.

Details

Message ID 202103051408.125E8n4R613147@finist-co8.sw.ru
State New
Series "kexec/kasan: Increase automatic memory reservation for KASAN-enabled kernels"
Headers show

Commit Message

Konstantin Khorenko March 5, 2021, 2:08 p.m.
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@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@virtuozzo.com>
    
    (cherry picked from vz7 commit a35598ba04acf80424fd8f997686a2edd3c3dcb8)
    Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 kernel/Kconfig.openvz | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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