Re: [AppArmor 38/45] AppArmor: Module and LSM hooks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Smalley
Date: Tuesday, June 12, 2007 - 6:13 am

On Mon, 2007-06-11 at 17:55 +0200, Andreas Gruenbacher wrote:

I don't really see the specific reasons explained in the first posting;
the second one has a list of problems, but I'd question their validity:
- New files:  Adding the last component name as a further input to the
logic for determining the label of a new file would address many of the
concerns here.
- Renaming:  Do you honestly believe that renaming a file or directory
tree should automatically change its protection without explicit action
by the user/admin?  I don't, naturally, and Linux DAC certainly doesn't
work that way.  I view the change-protections-on-rename behavior of AA
as a flaw, not something to be emulated.
- New Policies:  So there may be more work to be done up front in the
label-based approach when developing policies.  Isn't that where you
want to front load the work?  Versus doing it at runtime?  Do you expect
users to be rewriting their policies constantly on their production
systems?
- File systems that do not support labels:  I'm a bit surprised that you
would advocate this given your experience in developing EA and ACL
support for local filesystems and NFS.  The pathname-based approach in
NFS seems even scarier than in the local case - the clients may have
different views of the namespace than one another or the server and the
potential for inconsistent views of the tree (particularly as it is
being modified) during access checks is only greater in the NFS case,
right?  It may be more expedient to implement, but is it the right
technical approach?

But possibly the larger question here is whether your abstraction is
fundamentally broken/leaky.  Even with your "native" implementation in
AA, you concede that there are cases where it breaks down, right?  e.g.
as the path returned by d_path may in fact differ from the path that was
looked up, as the tree can change between time-of-lookup and
time-of-path-generation?


I'm hoping you'll ultimately respond to the questions I have raised (a
couple times now) about why this fundamentally differs from audit and/or
inotify, which take pathnames as part of configuring the mechanism but
do not generate them and match them on each access.


Well, if you succeed in that, does that mean that the read-only bind
mount folks should go back to that approach?  Just looking for a little
bit of consistency among different efforts...

-- 
Stephen Smalley
National Security Agency

-
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[AppArmor 38/45] AppArmor: Module and LSM hooks, jjohansen, (Mon May 14, 4:06 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Tue May 15, 2:14 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Wed May 23, 9:16 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Mon Jun 4, 3:55 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Mon Jun 4, 4:25 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Mon Jun 4, 4:35 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Mon Jun 4, 4:42 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Mon Jun 4, 6:12 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Mon Jun 4, 7:30 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Stephen Smalley, (Wed Jun 6, 6:09 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Sat Jun 9, 5:58 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Sat Jun 9, 6:44 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Sun Jun 10, 4:10 pm)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Stephen Smalley, (Mon Jun 11, 7:33 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Mon Jun 11, 8:55 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Serge E. Hallyn, (Mon Jun 11, 12:02 pm)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Karl MacMillan, (Mon Jun 11, 10:17 pm)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Stephen Smalley, (Tue Jun 12, 6:00 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Pavel Machek, (Tue Jun 12, 6:06 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Stephen Smalley, (Tue Jun 12, 6:13 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Serge E. Hallyn, (Tue Jun 12, 8:34 am)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Serge E. Hallyn, (Tue Jun 12, 12:00 pm)
Re: [AppArmor 38/45] AppArmor: Module and LSM hooks, Andreas Gruenbacher, (Tue Jun 12, 4:50 pm)