Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: david
Date: Friday, June 8, 2007 - 10:38 pm

On Sat, 9 Jun 2007, Sean wrote:





so are you suggesting that SELinux would call out to userspace for every 
file open to get the label for that file?

just off the top of my head

what would all these kernel->userspace->kernel transitions do to 
performance?

would SELinux give userspace the full path to that file?

if so wouldn't it have to implement most of what AA adds to do this?

if not how would userspace figure out what label to hand back without this 
info?

how would SELinux figure out the permissions for the userspace Daemon?

how would you change both the rules for labels in the kernel and the 
policy for assigning labels in userspace without any race conditions?


yes, you could add all the AA code to SELinux and then say that the result 
is implemented in SELinux, you may even save a little bit of code in some 
parts of it (but I would argue that you add more code in others, say for 
the userpace interface and userspace labeling code), but the result 
wouldn't be in the spirit of SELinux.

it may be possible to write something that resembles AA in SELinux policy 
(once you solve the problem of how to label newly created files securely), 
but it's also possible to write a webserver in COBOL to run out of inetd, 
that doesn't mean that it makes any sort of sense to do either one.

on the other hand, it may be a good idea. let's see how people really use 
AA once they have it available and the SELinux folks can work on 
duplicating the functionality, if they do then the existing AA interface 
could be phased out over time, or the internal implementation could 
change. but arguing that SELinux _may_ be able to do the job of AA 
_someday_ should not prevent AA from being included today (especially when 
so many of the SELinux developers are so opposed to the very concept of 
AA, which doesn't indicate that they are about to rush out and implement 
the pieces needed to make it work)

David Lang


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

Messages in current thread:
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Mon Jun 4, 2:03 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Fri Jun 8, 3:03 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., david, (Fri Jun 8, 10:38 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Sat Jun 9, 8:05 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Sat Jun 9, 8:17 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Tue Jun 12, 10:03 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Thu Jun 21, 8:54 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Thu Jun 21, 9:01 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 9:08 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 12:24 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 12:35 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 12:54 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 1:21 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 2:17 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Thu Jun 21, 5:19 pm)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Andreas Gruenbacher, (Fri Jun 22, 2:59 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Fri Jun 22, 3:49 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Fri Jun 22, 4:37 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Fri Jun 22, 5:42 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Fri Jun 22, 5:54 am)
Re: [AppArmor 39/45] AppArmor: Profile loading and manipul ..., Lars Marowsky-Bree, (Tue Jun 26, 1:50 am)