[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dazuko-devel] meaning of set in struct dazuko_access
From: |
John Ogness |
Subject: |
Re: [Dazuko-devel] meaning of set in struct dazuko_access |
Date: |
Mon, 29 Aug 2005 19:35:23 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050817) |
Tushar wrote:
> What is meaning of set_xxx fields in struct dazuko_accee ?
> I have seen it almost for all fields of dazuko_access, e.g there is a
> field "event" and "set_event", "filename" and "filename_set" etc.
Hi,
It is not possible that all information is filled in with each event.
For example, there is no "mode" for ON_CLOSE events. This value only
makes sense for ON_OPEN events.
Since there is no guarenteed way to represent an unset value, each value
has a separate set_xxx boolean. If the boolean is set to false, then
Dazuko was not able to determine a value for that item.
For example, if uid == 0 and set_uid != 0, then you know that the event
was triggered by a root process. But if uid == 0 and set_uid == 0, then
this means that Dazuko was unable to determine which user triggered the
event.
In summary, the field XXX only has meaning if set_XXX is nonzero.
John
--
Dazuko Maintainer