Skip to contentSkip to conversation

SELinux distro building

DISCUSSION Joshua Brindle 2 participants 2 messages Nov 12, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi, I'm trying to set up support for SELinux in Gentoo linux (a source based distro with a ports system for installing everything). Basically instead of delivering a prepackaged/compiled SELinux build it downloads and compiles right then and installs. The problems are numerous though and I kinda wanted your advice
1) it installs to /usr/local/selinux which is unacceptable, it needs to go to /usr/selinux (thats easily taken care of by patches to the Makefiles which i already did)
2) when compiling the selinux archive it needs libsecure to already be installed (and to have copied the .h files from the lsm kernel) before the policy compiler can be built. This is a problem because the ports system wants to compile everything, install it to a fake root so that it can enumerate the files for uninstallation, then copy them to the file system.
3) the Makefiles do not respect INSTALLPREFIX (which i also patched for, but it's dirty) because we *must* install to the fake root before installing to the filesystem, otherwise the sandbox kills it for permissions (which is it supposed to do)

it seems to me that the entire archive package desperatly needs a configure system so that it will be a little more flexible. What is your opinion on this?
Also, i haven't looked at the debian builds since i don't have any debian machines but how did you handle these problems, or did you?

Thanks for any information you can give me.

Joshua Brindle
UNIX Administrator
Southern Nazarene University

--
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 3 lines · Joshua Brindle

1) it installs to /usr/local/selinux which is unacceptable, it needs to go to /usr/selinux (thats easily taken care of by patches to the Makefiles which i already did)

I think that autoconf would be good for this. Also perhaps my script for extracting header files from the kernel patch (instead of from a kernel source tree) would be a good addition to the distribution.

Quoted 6 lines

2) when compiling the selinux archive it needs libsecure to already be installed (and to have copied the .h files from the lsm kernel) before the policy compiler can be built. This is a problem because the ports system wants to compile everything, install it to a fake root so that it can enumerate the files for uninstallation, then copy them to the file system.

I think it would be good to have the selinux-small split into two parts, one for the header files and library code for compiling applications, and the other for policy, run_init, etc.

Quoted 3 lines

it seems to me that the entire archive package desperatly needs a configure system so that it will be a little more flexible. What is your opinion on this?

I agree. Perhaps if I had posted patches here in the past rather than just talking about it then something would have happened. I suggest that you post your patches here.

Quoted 2 lines

Also, i haven't looked at the debian builds since i don't have any debian machines but how did you handle these problems, or did you?

Well I've got things basically solved for my use, but it is rather ugly.

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.