The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 ------> commit 88e3093251968c79ae8dcfdb422e2fb3412d27d5 Author: Konstantin Khorenko <khore...@virtuozzo.com> Date: Fri Sep 24 15:02:31 2021 +0300
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 <khore...@virtuozzo.com> https://jira.sw.ru/browse/PSBM-133986 (cherry picked from commit 4c271e2c17554d4c023ed9a4fa47121958b514cb) Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalit...@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 2bcc9a6f1bfc..55b4351b97bd 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c @@ -43,7 +43,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; } _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel