diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-11 18:20:17 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-11 18:20:17 +0000 |
commit | 0a7077f5364454de39fb1ac486d4bd233aa11798 (patch) | |
tree | 1eb1c74df8cde602e885f4817836cbd3c7567fbe /kernel/dir.c | |
parent | 8cffdb9707f6d2b19a8cf639f1ec159bb5f55695 (diff) | |
download | libfuse-0a7077f5364454de39fb1ac486d4bd233aa11798.tar.gz |
x
Diffstat (limited to 'kernel/dir.c')
-rw-r--r-- | kernel/dir.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/kernel/dir.c b/kernel/dir.c index 9a3d4ee..cd6394a 100644 --- a/kernel/dir.c +++ b/kernel/dir.c @@ -117,7 +117,8 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry) return ERR_PTR(ret); } -/* create needs to return a positive entry, so this also does a lookup */ +/* create needs to return a positive entry, so this is actually an + mknod+lookup */ static int fuse_mknod(struct inode *dir, struct dentry *entry, int mode, int rdev) { @@ -305,14 +306,11 @@ static int fuse_permission(struct inode *inode, int mask) { struct fuse_conn *fc = INO_FC(inode); - /* (too) simple protection for non-privileged mounts */ - if(fc->uid) { - if(current->fsuid == fc->uid) - return 0; - else - return -EACCES; - } - return 0; + /* (too) simple protection */ + if(current->fsuid == fc->uid) + return 0; + else + return -EACCES; } static int fuse_revalidate(struct dentry *entry) |