login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Gruenbacher <agruen@...>
Cc: Pavel Machek <pavel@...>, <jjohansen@...>, <linux-kernel@...>, <linux-security-module@...>, <linux-fsdevel@...>
Date: Wednesday, June 6, 2007 - 9:09 am

On Mon, 2007-06-04 at 16:30 +0200, Andreas Gruenbacher wrote:

I don't mean this as a flame, but isn't the above statement the very
crux of this discussion?  Why should AppArmor be different from the rest
of the kernel in its usage of pathnames (basis for decisions vs.
informational reporting to userspace)?  And if it is ok for AppArmor to
generate and use pathnames as its basis of decisions on each open, then
is it also ok for audit, inotify, and others to use them in the same
manner?  If the audit developers or inotify developers had come with
patches that used d_path or equivalent in the same manner as AppArmor,
don't you think they would have gotten the same resistance?  And if you
are truly trying to create a mechanism (in AppArmor) that you can
ultimately apply widely to the system (going beyond AppArmor's original
limited focus on a small set of network-facing daemons), aren't you
concerned about the implications of having to generate a pathname on
each open just to decide what to do?  Is this really the "path" you want
to take ;)?

Another question:  it seems like the read-only bind mount folks gave up
on propagating the vfsmounts down and switched to a rather different
approach (checking near the entry points, using mount writer counters).
So similarly, what makes AppArmor fundamentally different that it
wouldn't take a similar approach to what they are doing vs. propagating
the vfsmounts down?  Or do you think they made the wrong choice?  If so,
why?

Just trying to understand your position better...

-- 
Stephen Smalley
National Security Agency

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

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