[Devel] [PATCH RHEL7 COMMIT] ve/quota: allow to manage quota in top CT user ns

Konstantin Khorenko khorenko at virtuozzo.com
Tue Oct 20 02:07:38 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.8.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.8.8
------>
commit 692aa7865656bbe09b68ab365b620e327e30014d
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue Oct 20 13:07:30 2015 +0400

    ve/quota: allow to manage quota in top CT user ns
    
    CT owner (and Virtuozzo tools like vzctl, prlctl) should be
    able to manage 2nd level quota - quota inside the CT =>
    
    allow management in top CT user namespace.
    
    https://jira.sw.ru/browse/PSBM-40281
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/quota/quota.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index fe4d485..9f1d9c4 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -39,7 +39,7 @@ static int check_quotactl_permission(struct super_block *sb, int type, int cmd,
 			break;
 		/*FALLTHROUGH*/
 	default:
-		if (!capable(CAP_SYS_ADMIN))
+		if (!ve_capable(CAP_SYS_ADMIN))
 			return -EPERM;
 	}
 



More information about the Devel mailing list