diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 12:55:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:11 -0400 |
commit | 3bfa784a6539f91a27d7ffdd408efdb638e3bebd (patch) | |
tree | 2fb293076c98a4bbc18fd2ddad7fdc4cea08c384 /kernel | |
parent | 1b5d783c94c328d406e801566f161adcfb018dda (diff) |
kill file_permission() completely
convert the last remaining caller to inode_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 2731d115d72..e1c72c0f512 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -3542,7 +3542,8 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, } /* the process need read permission on control file */ - ret = file_permission(cfile, MAY_READ); + /* AV: shouldn't we check that it's been opened for read instead? */ + ret = inode_permission(cfile->f_path.dentry->d_inode, MAY_READ); if (ret < 0) goto fail; |