Fuse - Re: Know the uid, gid, or pid of the process performing the operation

Posted on Tue Jul 31 18:10:16 2007 by jaslong in response to 5815 (See the whole thread of 3)
Re: Know the uid, gid, or pid of the process performing the operation
Never mind, I see it was added to 0.09, just not documented. Here's a diff that adds documentation...
--- Fuse.pm.orig 2007-07-26 14:25:18.000000000 -0400 +++ Fuse.pm 2007-07-26 14:27:27.000000000 -0400 @@ -234,6 +234,15 @@ =back +=head3 Fuse::fuse_get_context + + use Fuse "fuse_get_context"; + my $caller_uid = fuse_get_context()->{"uid"}; + my $caller_gid = fuse_get_context()->{"gid"}; + my $caller_pid = fuse_get_context()->{"pid"}; + +Access context information about the current Fuse operation. + =head2 FUNCTIONS YOUR FILESYSTEM MAY IMPLEMENT =head3 getattr
Direct Responses: 6905 | Write a response