Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th May 2007, 11:19 PM
micagreenmachin Offline
Registered User
 
Join Date: Mar 2007
Posts: 40
SELinux broken after root disk mirror

I recently migrated to a mirrored root disk and in doing so, SELinux does not seem to be working...

I had to disable SELinux to get the system to boot after I configured RAID1 and now, when I go back to enable it in system-config-securitylevel, all of the settings except for /usr/sbin/getsebool are gone. Any idea how to reinstall/reinitialize selinux? I tried reinstalling all of the SELinux packages:
selinux-policy-targeted-2.4.6-62.fc6
libselinux-devel-1.33.4-2.fc6
libselinux-1.33.4-2.fc6
libselinux-python-1.33.4-2.fc6
selinux-policy-2.4.6-62.fc6

with rpm -ivh --replacefiles --replacepkgs but nothing changed...

FC6 1386

Thanks,
-Todd
Reply With Quote
  #2  
Old 14th May 2007, 11:51 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
Have you tried to force a re-label the filesytem ?

touch /.autorelabel

then reboot ?

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 15th May 2007, 01:02 AM
micagreenmachin Offline
Registered User
 
Join Date: Mar 2007
Posts: 40
I had tried that, but didn't re-enable selinux. Now, I enabled selinux, have the touch file in place, and get this error on boot:
/sbin/restorecon: error while loading shared libraries: libselinux.so.1: cannot open shared object file: no such file or directory

Then it disables selinux and drops me to a maintenance-prompt. I had to edit grub on startup with "selinux=disable" as a kernel option to boot after that.

Other than that, the system runs great. I'm just trying to be dilegent and learn selinux, so I want to fix this as it's aparently the way of the future...

Todd

EDIT: I did check to see if the file exists and it does. /lib/libselinux.so.1 - owned by root with perms -rwxr-xr-x.

Last edited by micagreenmachin; 15th May 2007 at 01:04 AM.
Reply With Quote
  #4  
Old 15th May 2007, 01:13 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
You could have a look at the restorecon man page to reset / restore the default SELinux security contexts.
restorecon(8) - Linux man page
I don't have any experience using it, however, you may want to give it a look see ?

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #5  
Old 15th May 2007, 02:22 AM
micagreenmachin Offline
Registered User
 
Join Date: Mar 2007
Posts: 40
Quote:
Originally Posted by Seve
Hello:
You could have a look at the restorecon man page to reset / restore the default SELinux security contexts.
restorecon(8) - Linux man page
I don't have any experience using it, however, you may want to give it a look see ?

Seve
That's actually a great idea... I don't know why I didn't think to do that...

I'll be back later.

---reading---
Reply With Quote
  #6  
Old 15th May 2007, 02:30 AM
micagreenmachin Offline
Registered User
 
Join Date: Mar 2007
Posts: 40
Read the man page... Even tried the command on a few files/directories. No output. even with the "vv" option. Command returns 0...
Reply With Quote
  #7  
Old 15th May 2007, 11:35 PM
micagreenmachin Offline
Registered User
 
Join Date: Mar 2007
Posts: 40
It fixed itself...

I honestly don't know what happened, but I booted up today and forgot that I had enabled selinux last night... It started up, complained about the missing library again, decided to relabeled the FS, rebooted itself and now selinux works.

I have no idea what changed.

But, as long as it works now, I'm happy.

Thanks for the help,
-Todd
Reply With Quote
  #8  
Old 15th May 2007, 11:52 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Quote:
Originally Posted by micagreenmachin
But, as long as it works now, I'm happy.
-Todd
Hello:

The magic that is Linux .......

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
Reply

Tags
broken, disk, mirror, root, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid mirror with LVM on root = kernel panic podd Using Fedora 10 8th August 2009 12:42 AM
I want to mirror the root disk glumbo Using Fedora 1 29th December 2007 12:05 PM
How to make 2 disk mirror after installation of FC5 jero EOL (End Of Life) Versions 0 22nd August 2006 11:46 AM


Current GMT-time: 15:14 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat