2015-11-09 18:07 GMT+03:00 Evgenii Shatokhin <eshatok...@odin.com>: > 09.11.2015 17:39, Andrew Vagin пишет: >> >> On Mon, Nov 09, 2015 at 02:27:42PM +0300, Evgenii Shatokhin wrote: >>> >>> https://jira.sw.ru/browse/PSBM-40587 >>> >>> Without this patch, process accounting (see accton tool from psacct >>> package) does not work in the containers. However, it is nice to have. >> >> >> Does it account processes which live in this VE only? > > > Yes, in my experiments, only the processes inside of this container were > visible to it.
Acked-by: Andrew Vagin <ava...@virtuozzo.com> > >> >>> >>> Signed-off-by: Evgenii Shatokhin <eshatok...@odin.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) { >>> -- >>> 2.3.2 >>> >>> _______________________________________________ >>> Devel mailing list >>> Devel@openvz.org >>> https://lists.openvz.org/mailman/listinfo/devel >> >> . >> > > _______________________________________________ > Devel mailing list > Devel@openvz.org > https://lists.openvz.org/mailman/listinfo/devel _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel