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

Submitted by Andrey Ryabinin on March 20, 2019, 10:11 a.m.

Details

Message ID 20190320101121.5405-1-aryabinin@virtuozzo.com
State New
Series "sysfs/ve: fix output cgroup/ve/ve.default_sysfs_permissions"
Headers show

Commit Message

Andrey Ryabinin March 20, 2019, 10:11 a.m.
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@virtuozzo.com>
---
 fs/sysfs/ve.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;
 }