[Devel] [PATCH RHEL7 COMMIT] ve/acct: Allow process accounting in containers
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 11 06:42:43 PST 2015
The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.8
------>
commit 5683c6b51a4c8a7dc22d5edc7857ad3ff83bb7ed
Author: Evgenii Shatokhin <eshatokhin at odin.com>
Date: Wed Nov 11 18:42:43 2015 +0400
ve/acct: Allow process accounting in containers
Without this patch, process accounting (see accton tool from psacct
package) does not work in the containers. However, it is nice to have.
Note: only the processes inside of this container are visible to it.
https://jira.sw.ru/browse/PSBM-40587
Signed-off-by: Evgenii Shatokhin <eshatokhin at odin.com>
Acked-by: Andrew Vagin <avagin at virtuozzo.com>
---
kernel/acct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/acct.c b/kernel/acct.c
index 6ff7ea3..f916c28 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -256,7 +256,7 @@ SYSCALL_DEFINE1(acct, const char __user *, name)
{
int error = 0;
- if (!capable(CAP_SYS_PACCT))
+ if (!ve_capable(CAP_SYS_PACCT))
return -EPERM;
if (name) {
More information about the Devel
mailing list