summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-10-02 21:36:12 -0700
committerNikolaus Rath <Nikolaus@rath.org>2016-10-02 21:38:27 -0700
commitc2d0e65057aa3b0627ee06711f8a6408accee63c (patch)
tree0d5b834df4a00cfdb3244e60e2c83d2f8079ffd7
parentdf499bf1ce634f6e67d4d366c4475d32143f00f0 (diff)
downloadfuse-c2d0e65057aa3b0627ee06711f8a6408accee63c.tar.gz
Document that client pid/gid/uid may be zero.
Fixes #67.
-rw-r--r--include/fuse_lowlevel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 8262d38..54bb84b 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -106,7 +106,14 @@ struct fuse_entry_param {
double entry_timeout;
};
-/** Additional context associated with requests */
+/**
+ * Additional context associated with requests.
+ *
+ * Note that the reported client uid, gid and pid may be zero in some
+ * situations. For example, if the FUSE file system is running in a
+ * PID or user namespace but then accessed from outside the namespace,
+ * there is no valid uid/pid/gid that could be reported.
+ */
struct fuse_ctx {
/** User ID of the calling process */
uid_t uid;