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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joshua Brindle
Date: Monday, June 18, 2007 - 4:29 am

Casey Schaufler wrote:

There are only about 850 file type_transition rules in the policy 
shipped with RHEL and the vast majority of them are templated so this 
isn't as hard as you think. Most are things like:
   type_transition ftpd_t tmp_t : file ftpd_tmp_t;

which 1) don't require relabeling to something else and 2) very easy to 
audit. A quick look suggests that the potentially less-restrictive label 
is never chosen, for example you'll see:
   type_transition groupadd_t etc_t : file shadow_t;
   type_transition useradd_t etc_t : file shadow_t;

Instead of the default transition being etc_t they are labeled as 
shadow_t (more restrictive) and then potentially relabled to etc_t.

That said, the lack of a type_transition in this case is as important as 
having one if the default type (the parent directory) is less 
restrictive. We already have tools that analyze policy and even tools to 
warn about potential errors in policy (apol and sechecker). It might be 
a good idea to add some more analysis to these tools to point out 
potential labeling errors that can be used in automatic analysis, which 
shouldn't be hard, I'll be sure to suggest that to the setools developers.


Several systems have gone off to ct&e and none of them use restorecond. 
These are custom build systems and relabeling is kept to a minimum and 
the applications are architected in a way that precludes this being 
necessary so I don't know what you are trying to get at here.


The "if" for SELinux is alot easier than you suggest. It certainly 
outweighs the disadvantages of the path based scheme IMHO.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" 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:
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 ..., 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 ..., Joshua Brindle, (Mon Jun 18, 4:29 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)