switch security_inode_getattr() to struct path *

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2015-03-08 19:28:30 -04:00
parent 2247386243
commit 3f7036a071
10 changed files with 24 additions and 35 deletions

View File

@@ -144,10 +144,9 @@ static int tomoyo_bprm_check_security(struct linux_binprm *bprm)
*
* Returns 0 on success, negative value otherwise.
*/
static int tomoyo_inode_getattr(struct vfsmount *mnt, struct dentry *dentry)
static int tomoyo_inode_getattr(const struct path *path)
{
struct path path = { mnt, dentry };
return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, &path, NULL);
return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL);
}
/**