LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Implementing SeLinux on Debian 5 (Lenny) -- can't install "selinux-basics" (http://www.linuxquestions.org/questions/linux-security-4/implementing-selinux-on-debian-5-lenny-cant-install-selinux-basics-908476/)

bashFUL 10-16-2011 02:54 PM

Implementing SeLinux on Debian 5 (Lenny) -- can't install "selinux-basics"
 
Hey guys, I need some help.

I am trying to implement SeLinux on my Debian 5 (Lenny) system. I have been reading about it and looking at guides, and most of them which apply to me tell me to do "apt-get install selinux-policy-default selinux-basics". I could install the selinux-policy-default but not the selinux-basics. It just tells me it can't find the package...

Also I tried doing "apt-get install selinux" and it referred me to checkpolicy package which I successfully installed. I am not sure if perhaps I actually have SeLinux installed now and I can move on, or if I'm still missing something. I have a feeling it's not correct though since the command "selinux-activate" results in a command not found error.

This is the guide I am currently looking at: Link

He says that the file "/.autorelabel" needs to exist, but it's not there... I am just unsure if I have to simply make it or if it is generated after proper installation.

I do have an /etc/selinux folder with config files in there.

I just need to find a good guide or something because everything I am currently finding seems like it doesn't actually work.

Thanks

unSpawn 10-16-2011 05:01 PM

I managed to get a completely standard installation of Lenny SELinux-ready in under 15 minutes using http://wiki.debian.org/SELinux/Setup w/o any problems:
Code:

apt-get install selinux-basics selinux-policy-default
selinux-activate
reboot
#in GRUB add security=selinux selinux=1 to the command line just to make sure
check-selinux-installation


bashFUL 10-16-2011 09:40 PM

Yeah I was originally at that site and thought it would work too... but my system does not find either selinux-basics, nor does the activate command work:

EDIT: btw, yes I am connected to the internet and the first time I ran these commands, I was able to successfully install the selinux-policy-default package -- just not the basics one.

EDIT: My kernel version is 2.6.26-2-686

Code:

compy:/# apt-get install selinux-basics selinux-policy-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package selinux-basics
compy:/# check-selinux-installation
bash: check-selinux-installation: command not found

Quote:

Originally Posted by unSpawn (Post 4500070)
I managed to get a completely standard installation of Lenny SELinux-ready in under 15 minutes using http://wiki.debian.org/SELinux/Setup w/o any problems:
Code:

apt-get install selinux-basics selinux-policy-default
selinux-activate
reboot
#in GRUB add security=selinux selinux=1 to the command line just to make sure
check-selinux-installation



unSpawn 10-17-2011 01:16 AM

Check your repo info? (And I'll move this to the Debian forum.)


All times are GMT -5. The time now is 09:27 PM.