Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with SELinux and grub [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Fri Oct 04, 2013 11:53 am    Post subject: Problem with SELinux and grub [solved] Reply with quote

Hi,

I've have installed the base system and have moved to Hardened/SELinux. I've been following the instructions here;

http://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml?part=2&chap=1

So far everything I've done has worked. On the link above I'm up to 'Enable the selinux_gentoo service'.

I've ran
Code:
rc-update add selinux_gentoo boot
and have edited my grub.conf file as follows;

Code:

title Gentoo Hardened/SELinux
root (hd0,0)
kernel /boot/kernel-3.10.1-r1-SELinux root=/dev/vg/root enforcing=0 nosetenforce


When I reboot and try and boot the SELinux kernel from the menu I get the following output;
Code:

Booting SELinux Gentoo Linux 3.10.1-r1
root(hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-3.10.1-r1-SELinux root=/dev/vg/root enforcing=0 nosetenforce

Error 15: file not found

press any key to continue...


I've tried changing the root option back to /dev/sda3 but get the same output;

Code:

Booting SELinux Gentoo Linux 3.10.1-r1
root(hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-3.10.1-r1-SELinux root=/dev/sda3 enforcing=0 nosetenforce

Error 15: file not found

press any key to continue...


Any help would be appreciated..


Last edited by bawig1 on Fri Oct 04, 2013 2:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 79
Location: Berlin (Germany)

PostPosted: Fri Oct 04, 2013 2:21 pm    Post subject: Reply with quote

The error is "File not found" - most likely you've got a typo either in the name of the kernel or in the grub config. Double-check that (e.g. case or switched letters)..
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 62
Location: Melbourne, Australia

PostPosted: Fri Oct 04, 2013 2:41 pm    Post subject: Reply with quote

yep you were correct. Typo in grub.conf...

Feeling pretty stupid right about now :oops:
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 79
Location: Berlin (Germany)

PostPosted: Fri Oct 04, 2013 2:57 pm    Post subject: Reply with quote

Don't - my guess is that there isn't somebody on this forum that didn't encounter any error in the "stupid-user-error" error class... ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum