From: Nikolaus Rath Date: Mon, 3 Oct 2016 04:36:12 +0000 (-0700) Subject: Document that client pid/gid/uid may be zero. X-Git-Tag: fuse-2.9.8~10 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c2d0e65057aa3b0627ee06711f8a6408accee63c;p=qemu-gpiodev%2Flibfuse.git Document that client pid/gid/uid may be zero. Fixes #67. --- 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;