[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dazuko-devel] Device file events
From: |
John Ogness |
Subject: |
Re: [Dazuko-devel] Device file events |
Date: |
Tue, 13 Sep 2005 16:03:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050718 Debian/1.7.8-1sarge1 |
Abhishek Nayani wrote:
> Currently, Dazuko only supports "Open" and "Exec" events on 2.6 using LSM.
> Since dazuko registers the "inode_permission" hook, all the events which are
> generated are because of open or exec, which are what we need. Can you expand
> on what you mean by "many" events ?
I have included a simple patch that will allow all the file types to
generate events. I recommend that you try it out and see how many events
(particularly directory events) are generated. Then you will understand what
I mean by "many".
> Also, the context switches happen only when the user registers for the dev
> directory, so I guess they do not come into the picture unless the user
> actually wants to listen to them.
Yes, you are correct.
If you try allowing all file types, you will see the number events. I found
this alarming (and a bit misleading for the registered application), so I
decided to filter out all non-file or non-link events.
John Ogness
--
Dazuko Maintainer
Index: dazuko_linux26.c
===================================================================
RCS file: /cvsroot/dazuko/dazuko/dazuko_linux26.c,v
retrieving revision 1.60
diff -u -r1.60 dazuko_linux26.c
--- dazuko_linux26.c 2 Sep 2005 13:09:08 -0000 1.60
+++ dazuko_linux26.c 13 Sep 2005 13:59:28 -0000
@@ -371,10 +371,12 @@
if (xfs->inode == NULL)
return 0;
+/*
#ifndef DAZUKO_FIST
if (!S_ISREG(xfs->inode->i_mode) && !S_ISLNK(xfs->inode->i_mode))
return 0;
#endif
+*/
if (xfs->nd == NULL || xfs->free_full_filename)
return 0;
- [Dazuko-devel] 2.1.0-pre8 posted, John Ogness, 2005/09/01
- [Dazuko-devel] Device file events, Abhishek Nayani, 2005/09/02
- Re: [Dazuko-devel] Device file events, John Ogness, 2005/09/02
- Re: [Dazuko-devel] Device file events, Abhishek Nayani, 2005/09/12
- Re: [Dazuko-devel] Device file events,
John Ogness <=
- Re: [Dazuko-devel] Device file events, Abhishek Nayani, 2005/09/14
- Re: [Dazuko-devel] Device file events, John Ogness, 2005/09/14
- [Dazuko-devel] DazukoFS (was Re: Device file events), Abhishek Nayani, 2005/09/14
- [Dazuko-devel] Re: DazukoFS (was Re: Device file events), John Ogness, 2005/09/14
- [Dazuko-devel] Re: DazukoFS (was Re: Device file events), Abhishek Nayani, 2005/09/15