aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-27 13:51:59 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-27 13:57:19 -0700
commit131955ff7c7e2f32ea152cdf8cba782fb836bbe8 (patch)
treec26bbfcf7c2b14e7223850dce7f2ec82d03cd806 /include
parent11f07d10339500044718f6cea9f1fa1bc6428051 (diff)
Recommend when to use -o default_permissions automatically
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h12
-rw-r--r--include/fuse_lowlevel.h6
2 files changed, 12 insertions, 6 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 312818e..ff1475d 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -280,13 +280,13 @@ struct fuse_config {
* init and destroy are special purpose methods, without which a full
* featured filesystem can still be implemented.
*
- * Almost all operations take a path which can be of any length.
- *
- * Changed in fuse 2.8.0 (regardless of API version)
- * Previously, paths were limited to a length of PATH_MAX.
+ * In general, all methods are expected to perform any necessary
+ * permission checking. However, a filesystem may delegate this task
+ * to the kernel by passing the `default_permissions` mount option to
+ * `fuse_new()`. In this case, methods will only be called if
+ * the kernel's permission check has succeeded.
*
- * See http://fuse.sourceforge.net/wiki/ for more information. There
- * is also a snapshot of the relevant wiki pages in the doc/ folder.
+ * Almost all operations take a path which can be of any length.
*/
struct fuse_operations {
/** Get file attributes.
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index f876975..503b682 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -154,6 +154,12 @@ struct fuse_forget_data {
* after the call has returned, so if they are needed later, their
* contents have to be copied.
*
+ * In general, all methods are expected to perform any necessary
+ * permission checking. However, a filesystem may delegate this task
+ * to the kernel by passing the `default_permissions` mount option to
+ * `fuse_session_new()`. In this case, methods will only be called if
+ * the kernel's permission check has succeeded.
+ *
* The filesystem sometimes needs to handle a return value of -ENOENT
* from the reply function, which means, that the request was
* interrupted, and the reply discarded. For example if