diff options
author | NeilBrown <neilb@suse.de> | 2015-03-23 13:37:39 +1100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-10 22:18:29 -0400 |
commit | 37882db0546c759ff75b561c188539ac96fd0bfe (patch) | |
tree | 2bf5152d8ee7963d5d46d9fe25c1cb3c10be29c6 /security/security.c | |
parent | b4272646293b46fb8c7bc9b5176eb94d8141a278 (diff) | |
download | lwn-37882db0546c759ff75b561c188539ac96fd0bfe.tar.gz lwn-37882db0546c759ff75b561c188539ac96fd0bfe.zip |
SECURITY: remove nameidata arg from inode_follow_link.
No ->inode_follow_link() methods use the nameidata arg, and
it is about to become private to namei.c.
So remove from all inode_follow_link() functions.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c index 8e9b1f4b9b45..d7c30b03e144 100644 --- a/security/security.c +++ b/security/security.c @@ -581,11 +581,11 @@ int security_inode_readlink(struct dentry *dentry) return security_ops->inode_readlink(dentry); } -int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd) +int security_inode_follow_link(struct dentry *dentry) { if (unlikely(IS_PRIVATE(d_backing_inode(dentry)))) return 0; - return security_ops->inode_follow_link(dentry, nd); + return security_ops->inode_follow_link(dentry); } int security_inode_permission(struct inode *inode, int mask) |