diff options
| author | Christoph Hellwig <[email protected]> | 2005-11-09 05:35:04 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-11-09 15:55:58 +0000 |
| commit | e4543eddfd3bf3e0d625841377fa695a519edfd4 (patch) | |
| tree | b62546cb0038529bd8cd583333c556ad799f2081 /net/unix/af_unix.c | |
| parent | [PATCH] drivers/block/pktcdvd.c: remove write-only variable in pkt_iosched_pr... (diff) | |
| download | kernel-e4543eddfd3bf3e0d625841377fa695a519edfd4.tar.gz kernel-e4543eddfd3bf3e0d625841377fa695a519edfd4.zip | |
[PATCH] add a vfs_permission helper
Most permission() calls have a struct nameidata * available. This helper
takes that as an argument and thus makes sure we pass it down for lookup
intents and prepares for per-mount read-only support where we need a struct
vfsmount for checking whether a file is writeable.
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 41feca3bef86..acc73ba8bade 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -676,7 +676,7 @@ static struct sock *unix_find_other(struct sockaddr_un *sunname, int len, err = path_lookup(sunname->sun_path, LOOKUP_FOLLOW, &nd); if (err) goto fail; - err = permission(nd.dentry->d_inode,MAY_WRITE, &nd); + err = vfs_permission(&nd, MAY_WRITE); if (err) goto put_fail; |
