Bug 176839 - selinux-policy-targeted botched?
Summary: selinux-policy-targeted botched?
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-03 16:00 UTC by Horst H. von Brand
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-05 14:48:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
audit log (4.08 MB, text/plain)
2006-01-04 03:50 UTC, Jim Cornette
no flags Details
dmesg after relabeling (14.69 KB, text/plain)
2006-01-05 00:01 UTC, Jim Cornette
no flags Details

Description Horst H. von Brand 2006-01-03 16:00:56 UTC
Description of problem:
SELinux is set to enforcing, policy is targeted.

When booting the new kernel after updating today (kernel, selinux, etc) the
system won't boot. It goes to system maintenance. Giving the root password only
/ is mounted (it looks like the contexts for the LVM devices are incorrect, so
it can't access them). Only disabling SELinux completely (selinux=0 on the
kernel line) seems to be able to continue. "fixfiles relabel" doesn't fix the
problem.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.1.6-22

How reproducible:
Always

Steps to Reproduce:
1. Boot
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2006-01-03 16:52:43 UTC
Could you check to see if the problem is with libsetrans.

Edit the /etc/selinux/targeted/setrans.conf and uncomment the disable line and
see if it boots.



A new version of libsetrans is available at
Available on ftp://people.redhat.com/dwalsh/SELinux/Fedora/x86_64



Comment 2 Tom London 2006-01-03 17:38:24 UTC
The above edit to setrans.conf 'fixes' this for my x86 system too.

[BTW, I could boot by using 'enforcing=0' instead of 'selinux=0']

Comment 3 Daniel Walsh 2006-01-03 17:49:21 UTC
Ok try the new version of libsetrans available on 

ftp://people.redhat.com/dwalsh/SELinux/Fedora/

And you can turn back on translations.

Comment 4 Tom London 2006-01-03 18:17:19 UTC
libsetrans-0.1.14-1 and enabling translations WFM.

Thanks.

Comment 5 Bojan Smojver 2006-01-03 21:59:16 UTC
Same problem on i686 here. I'll try the new packages and I'll report back.

Comment 6 Bojan Smojver 2006-01-03 22:09:51 UTC
A little bit better, but now I have a problem with fixfiles. It won't run - it
just prints the usage for setfiles instead.

I noticed that policycoreutils got updated today as well...

Comment 7 Jim Cornette 2006-01-04 03:44:22 UTC
I don't know if the arch as 64-bit matters. I ran into several packages that
would download via yum but not actually install. I had to drop to selinux=0
single and run rpm -Uvh from the packages contained in the cache for yum.
Audit log attached.
I did not relabel my system yet. I started the network service and ran yum from
single user mode and several packages would not install but are available.
Audit log will be attached next.

Updated Packages
hpijs.i386                               1:0.9.7-6              development
hplip.i386                               0.9.7-6                development
libsane-hpaio.i386                       0.9.7-6                development
net-snmp-libs.i386                       5.3-1                  development

Comment 8 Jim Cornette 2006-01-04 03:50:55 UTC
Created attachment 122752 [details]
audit log

kdeutils-3.5.0-2.i386.rpm  kdeutils-devel-3.5.0-2.i386.rpm
and some php elements seem to be causing problems.

I hope the log helps. System only had missing files from mozilla and cups that
were discussed on the test-list.

Exit

Comment 9 Jim Cornette 2006-01-05 00:01:28 UTC
Created attachment 122800 [details]
dmesg after relabeling


After updating system, dropping to runlevel 1 and verifying packages installed
using 2.6.15-1.1819_FC5, I relabeled the system and rebooted with minor errors
related to /dev/hda6.
 df
Filesystem	     1K-blocks	    Used Available Use% Mounted on
/dev/hda2	      16425032	 4878912  10698292  32% /
/dev/hda1		101086	   12210     83657  13% /boot
/dev/shm		322364	       0    322364   0% /dev/shm
/dev/hda3	       9920624	  978660   8429896  11% /home
/dev/hda6	      10605128	  261408   9796308   3% /var

# rpm -qa |grep policy
selinux-policy-2.1.6-24
checkpolicy-1.28-2
policycoreutils-1.29.2-10
selinux-policy-targeted-2.1.6-24

The system seems to be mostly successful. Errors submitted for remaining
errors.

Comment 10 Bojan Smojver 2006-01-05 21:25:43 UTC
Indeed today's stuff does work. However, the stangest thing happened on
filesystem relabel during boot (forced by switch to SELinux enforcing) - my
notebook rebooted in the middle of it. File systems were dirty after the reboot,
so it wasn't a "planned" event. Later on, I relabeled from runlevel 5 successfully.

No idea what caused this. Kernel bug?


Note You need to log in before you can comment on or make changes to this bug.