[ubuntu-hardened] [PATCH] Initial policy load from load_policy

Russell Coker russell at coker.com.au
Sat Nov 10 01:50:22 GMT 2007


On Thursday 08 November 2007 09:10, "Chad Sellers" <csellers at tresys.com> 
wrote:
> >> sysvinit by init itself, which then re-exec's itself. Ubuntu uses
> >> upstart instead of sysvinit. In talks with the Ubuntu folks, they'd
> >> prefer to load policy from initramfs before upstart starts rather than
> >> patching upstart

Of course this means that you might need policy to allow the initramfs to do 
things.  But I guess an option is to just do it after the pivot_root but 
before executing upstart.

Your idea of running load_policy is better than the previous incarnation of 
this which had the policy loaded from a file in the initramfs (which meant an 
initramfs rebuild was required for significant policy changes and having a 
cut down policy for it was desired).

One thing that the Ubuntu people might consider is whether they want their 
distribution to work on systems that don't have an initramfs.  For example on 
Cobalt hardware the kernel is loaded by the BIOS and there is no support for 
loading an initramfs.  There are some new developments in terms of Linux BIOS 
etc in the pipeline at the moment, it would be bad to exclude them from SE 
Linux support.  One of the reasons for modifying init was to support such 
platforms (which incidentally includes a significant range of embedded 
devices).

-- 
russell at coker.com.au
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development



More information about the ubuntu-hardened mailing list