Re: problem of DAZUKO
John Ogness <[email protected]>
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
akshay wrote: > I am using Dazuko in my application. > When i get accese to file ,i passed that file name to scan engine over > a socket > but it get hangs while reading socket. > > whats reason ? > I hv to mannually kill the application.. Hi, Only registered processes are allowed to open/close files. Since your scanner is not registered with Dazuko, its access is also being acknowledged by Dazuko. Here is the sequence of events that are occuring: 1. registered process receives access event 2. registered process sends event over socket to non-registered process 3. non-registered process opens file for scanning 4. Dazuko detects file access from non-registered process 5. Dazuko sends access event to registered process 6. goto step 1 Summary: The non-registered scanner process never is allowed to open the file and an infinite "chicken/egg" loop is created. Currently the only solution is for your scanning processes to register with Dazuko. If they register, they also have to be prepared to get/return access events. Using groups, you can have multiple registered processes working together. I am working on a idea to allow non-registered processes to be specified as trusted. This would allow your scenario to work. I haven't quite worked out all the details for my proposal yet. Hopefully something like this will be available for the 2.1.0 release (planned for February). John Ogness -- Dazuko Maintainer