Document that client pid/gid/uid may be zero.
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 3 Oct 2016 04:36:12 +0000 (21:36 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 3 Oct 2016 04:38:27 +0000 (21:38 -0700)
Fixes #67.

include/fuse_lowlevel.h

index 8262d38a87d1a4858738706d711da86412bed807..54bb84bc54fd70ae9819116c9843d5ff2e41fb1b 100644 (file)
@@ -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;