[Devel] [PATCH RHEL10 COMMIT] fixup! ve/cred: add ve_capable to check capabilities relative to the current VE (v2)

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 5 21:32:20 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit 915bd6660ee4e1372c2393e4e8682aa25f306d36
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date:   Tue Jun 2 21:10:49 2026 +0000

    fixup! ve/cred: add ve_capable to check capabilities relative to the current VE (v2)
    
    kernel/capability.c:388:5: warning: "CONFIG_VE" is not defined,
    evaluates to 0
    
    https://virtuozzo.atlassian.net/browse/VSTOR-130116
    
    Feature: !CONFIG_VE build
    Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
    Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
 kernel/capability.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/capability.c b/kernel/capability.c
index 9615498e637d5..e507c62d8660e 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -385,7 +385,7 @@ bool ns_capable(struct user_namespace *ns, int cap)
 }
 EXPORT_SYMBOL(ns_capable);
 
-#if CONFIG_VE
+#ifdef CONFIG_VE
 bool ve_capable(int cap)
 {
 	struct cred *cred;


More information about the Devel mailing list