[Devel] [PATCH rh7] sysfs/ve: fix output cgroup/ve/ve.default_sysfs_permissions

Andrey Ryabinin aryabinin at virtuozzo.com
Wed Mar 20 13:11:21 MSK 2019


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 <aryabinin at 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



More information about the Devel mailing list