[Devel] [PATCH RH6 v2] proc: fix mangling cgroup mount source path in container
Cyrill Gorcunov
gorcunov at virtuozzo.com
Tue Oct 6 04:13:34 PDT 2015
On Tue, Oct 06, 2015 at 01:21:50PM +0300, Pavel Tikhomirov wrote:
> Docker uses /proc/self/cgroup to know where he is in cgroup tree
> and also it uses /proc/self/mountinfo to get from where cgroup
> sub-tree(on which he is) is mounted, using both it can understand
> where his cgroups are in his /sys/fs/cgroup sub-tree.
>
> We need to mangle cgroup paths in mountinfo output consistently
> with cgroup output, in /proc/self/cgroup we remove prefix "/$ctid"
> do the same in mountinfo. It is not enought to show just "/" for
> docker in docker: docker will bindmount in container sub-tree of
> this container.
>
> v2: fix compilation
>
> https://jira.sw.ru/browse/PSBM-34295
>
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
This looks like uninlining of seq_dentry, but I fear there
no much options. Thus
Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>
More information about the Devel
mailing list