On Tue, Jun 03, 2008 at 01:29:33AM +0900, Toshiharu Harada (haradats@gmail.com) wrote:They can, if really want, to get vfsmount. A hint: there is security_sb_check_sb() and security_sb_post_addmount(). Store that vsmount in private cache, search the very root dentry for any inode inside that cache of vfsmounts and get a pointer. Looks a bit ugly though, and slower (really a bit), but it can solve a problem. It is also possible to implement own path cache isntead of using dentry cache, since apparently dentry is not needed neither to apparmor nor to tomoyo, but path info (in own format). And that will be even better solution, since it will be exactly what selinux does with its data. Only to different objects. This will complicate move/rename and other pathname manipulation. There are of course underwater rocks, but they can be worked out with existing inode-biased approach. -- Evgeniy Polyakov --
| Andrew Morton | Re: Linux 2.6.21-rc4 |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Balbir Singh | Re: [RFC][PATCH 2/7] RSS controller core |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Andreas Henriksson | [PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage. |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
