Skip to contentSkip to conversation

mkinitrd setup script problem

DISCUSSION Dale Amon 2 participants 2 messages Nov 26, 2003 – Nov 27, 2003 SELinux security module

lore
Share & tools
lore

Dale Amon

author
#0 lore raw

I seem to be having a little problem:

edbe policycoreutils/policycoreutils_1.2-0.2_i386.deb *

Installs
/sbin/load_policy
and a link

	/usr/sbin/load_policy -> /sbin/load_policy

edbe selinux-policy-default_1.2.real-10_all.deb

Installs
/etc/mkinitrd/scripts/selinux
which contains the line:
cp -a /usr/sbin/load_policy "$INITRDDIR/bin/load_policy

When you do mkinitrd, you end up with

/initrd/bin/load_policy linked to /initrd/sbin/load_policy

but there is no /initrd/sbin/load_policy.

Did this just happen in the last day or two???

Signature · 12 lines
------------------------------------------------------
   Dale Amon     [email protected]    +44-7802-188325
       International linux systems consultancy
     Hardware & software system design, security
    and networking, systems programming and Admin
	      "Have Laptop, Will Travel"
------------------------------------------------------

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 4 lines · Dale Amon

Installs
/sbin/load_policy
and a link

	/usr/sbin/load_policy -> /sbin/load_policy

This is because /sbin/init executes load_policy in the current Debian package. When I update it to match Dan's new code this won't matter, but until then load_policy needs to be on the root fs. For the long term I think that load_policy should be on the root fs to allow the most possible configuration options for users.

Quoted 4 lines

Installs
/etc/mkinitrd/scripts/selinux
which contains the line:
cp -a /usr/sbin/load_policy "$INITRDDIR/bin/load_policy

The next version of my policy package will fix this. I haven't tested this for a while as I don't use initrd any more.

When compiling a kernel for your own use an initrd usually does not offer much (except for unusual situations such as nfs-root - which often don't work with SE Linux). I have had some problems with the Debian mkinitrd script recently and decided not to use it for any of my machines.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.