Thread

Posted on Thu Jul 26 20:52:04 2007 by jaslong
Know the uid, gid, or pid of the process performing the operation
In the FAQ at fuse.sourceforge.net, is the following question...
Is there a way to know the uid, gid or pid of the process performing the operation? Yes: fuse_get_context()->uid, etc.
Any plans to expose the fuse_get_context() function to Perl?
Direct Responses: 5847 | Write a response
Posted on Tue Jul 31 18:10:16 2007 by jaslong in response to 5815
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
Posted on Mon Jan 21 18:13:35 2008 by dpavlin in response to 5847
Re: Know the uid, gid, or pid of the process performing the operation
Sorry for long delay, I somehow missed this patch, thanks.
Write a response