aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2001-12-20 15:38:05 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2001-12-20 15:38:05 +0000
commitfe25def3344095825738deba119e1400b8e2315f (patch)
treea277304923d54e0495558c1e4e6720c2c114d78d /include/linux/fuse.h
parent2e50d4376f3124a87d5723ae66c09fa71c7ecf88 (diff)
downloadlibfuse-fe25def3344095825738deba119e1400b8e2315f.tar.gz
permission checking implemented
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r--include/linux/fuse.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index fd5ef9c..53cb3f0 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -9,7 +9,7 @@
/* This file defines the kernel interface of FUSE */
/** Version number of this interface */
-#define FUSE_KERNEL_VERSION 1
+#define FUSE_KERNEL_VERSION 2
/** The inode number of the root indode */
#define FUSE_ROOT_INO 1
@@ -35,6 +35,17 @@ struct fuse_mount_data {
unsigned int flags;
};
+/* FUSE mount flags: */
+
+/** If the FUSE_DEFAULT_PERMISSIONS flag is given, the filesystem
+module will check permissions based on the file mode. Otherwise no
+permission checking is done in the kernel */
+#define FUSE_DEFAULT_PERMISSIONS (1 << 0)
+
+/** If the FUSE_ALLOW_OTHER flag is given, then not only the user
+ doing the mount will be allowed to access the filesystem */
+#define FUSE_ALLOW_OTHER (1 << 1)
+
struct fuse_attr {
unsigned int mode;
unsigned int nlink;
@@ -149,6 +160,8 @@ struct fuse_in_header {
int unique;
enum fuse_opcode opcode;
unsigned long ino;
+ unsigned int uid;
+ unsigned int gid;
};
struct fuse_out_header {