sysfs_perms_open() replaces ve0 with NULL which results in always empty output from cgroup/ve/ve.default_sysfs_permissions file. Fix that by passing correct ve0 address.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/sysfs/ve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/sysfs/ve.c b/fs/sysfs/ve.c index 1e8abec8296b..ea89e41d4b9e 100644 --- a/fs/sysfs/ve.c +++ b/fs/sysfs/ve.c @@ -111,7 +111,7 @@ static int sysfs_perms_open(struct inode *inode, struct file *file) ret = seq_open(file, &sysfs_perms_sops); if (!ret) { m = file->private_data; - m->private = ve_is_super(ve) ? NULL : ve; + m->private = ve; } return ret; } -- 2.19.2 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel