[prev in list] [next in list] [prev in thread] [next in thread]
List: fuse-devel
Subject: Re: [fuse-devel] [2.8.x] Context all zeros while release handler
From: Sebastian Pipping <webmaster () hartwork ! org>
Date: 2011-07-06 18:45:36
Message-ID: 4E14AD50.1080600 () hartwork ! org
[Download RAW message or body]
On 07/06/2011 02:26 PM, Miklos Szeredi wrote:
> Sebastian Pipping <webmaster@hartwork.org> writes:
>
>> It seems as if the pid, gid and uid I get from fuse_get_context() are
>> all zero during a call to my own release handler (i.e. inside
>> req->f->op.release(...)), always. Does it have to be like that? I
>> would benefit from that information filled with proper values.
>
> ->release() is called when the file refcount drops to zero in the
> kernel. This usually happens on close() but not always. It could
> happen from proc code or various other places. Giving info about the
> process that happens to trigger the release would not only be useless
> but a possible information leak.
Alright. I was asking because I would like to relate calls to open and
release 1:1 (in a scenario of logging calls and replaying these logs in
a test bed). Previously I believed that with the fd alone I could not
do that - which is why I was interested in a non-zero value for pid.
Now it seems that I actually could relate these calls by just looking at
the file descriptors as they all belong to the FUSE process and are
therefore unique (until closed and re-used).
Best,
Sebastian
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic