|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Mon, 02 Jun 2008
AppArmor and path-based security approaches vs object bound policies.
- So again, can you offer an alternative?It is not about AppArmor in general (although maybe about it too), but about security hooks which provide path information into inode callbacks. There are pros and cons for this decision, but things look like path based security hooks will not be accepted. There is a really trivial way to fix it. No kidding, it is simple: create own name cache and do not bind it to dentries, but instead index it by inode number. This allows you to have whatever you want callbacks and information in stricktly bound VFS operations. Need to have path info in ->inode_create()?
Put it into own tree indexed by inode number for parent inode, lookup that data in
security hook and make a decision. Yes, it is slower, but active security was never
a fast solution. It is still against the rules others created for security based
systems, but still formally it in the all boundaries of the created (maybe ugly
for someone) interfaces.And I will not point to project, which already uses such approach in different area though :) It is interesting to implement your ideas not by breaking something (although sometimes it is need, but that's likely an exeption or when you are hacking deeply internal kernel part), but instead by hacking around existing limitations. /devel/fs :: Link / Comments (4) Johannes Berg wrote at 2008-06-03 12:41:
sp wrote at 2008-06-08 11:07:
Zbr wrote at 2008-06-10 23:52:
Please solve this captcha to be allowed to post (need to reload in a minute): 19 - 29 Comments are closed for this story. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
M wrote at 2008-06-03 10:57: