LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 10-16-2011, 02:54 PM   #1
bashFUL
LQ Newbie
 
Registered: Oct 2011
Posts: 23

Rep: Reputation: Disabled
Question 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

Last edited by bashFUL; 10-16-2011 at 02:59 PM.
 
Old 10-16-2011, 05:01 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733
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
 
Old 10-16-2011, 09:40 PM   #3
bashFUL
LQ Newbie
 
Registered: Oct 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
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 View Post
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

Last edited by bashFUL; 10-16-2011 at 09:56 PM.
 
Old 10-17-2011, 01:16 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP and SELinux is preventing sshd "create" access djlinuxquestions Fedora 4 10-22-2010 12:34 AM
SELinux is preventing in.tftpd (tftpd_t) "write" to my tftp server designlogicmedia Linux - Newbie 4 09-07-2009 11:30 AM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
samba pdc selinux problem "rename" %m.log WorldIsNotFair Linux - Server 2 07-23-2008 09:15 PM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 08:16 PM


All times are GMT -5. The time now is 10:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration