Bug 443852 - After upgrade from F7->F9, users have user_u instead of unconfined_u (su "missing")
Summary: After upgrade from F7->F9, users have user_u instead of unconfined_u (su "mis...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Blocker
TreeView+ depends on / blocked
 
Reported: 2008-04-23 17:55 UTC by Will Woods
Modified: 2008-04-29 22:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-29 22:30:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Will Woods 2008-04-23 17:55:04 UTC
I used preupgrade to upgrade two systems from F7 (with updates) to rawhide.

On both systems, my normal user (wwoods) unexpectedly ended up with the user_u
SELinux context, rather than unconfined_u. 

I only noticed it because su appeared to be missing.

Comment 1 Will Woods 2008-04-23 18:31:18 UTC
F7 users (as in RHEL5) have a default context of user_u:system_r:unconfined_t.

F8 has unconfined_u:system_r:unconfined_t:s0-s0:c0.c1023.

So I guess the problem is that we've redefined the meaning of user_u.

Comment 2 Will Woods 2008-04-23 20:38:11 UTC
A workaround for affected systems: 

  semanage login -m -s unconfined_u -r SystemLow-SystemHigh __default__

should give users the default SELinux context used for new F9 installs.

Comment 3 Daniel Walsh 2008-04-23 20:41:12 UTC
Yes we need to convert user_u to unconfined_u.  This is a blocker bug.

Needs to be fixed.

Will could you verify that
selinux-policy-3.3.1-39.fc9 fixes the problem.

Comment 4 Will Woods 2008-04-23 21:38:42 UTC
Does it need to be installed as part of the upgrade from F7? (That is, do I need
to wait for it to land in rawhide to test the fix?)

Comment 5 Daniel Walsh 2008-04-24 21:07:47 UTC
You can test it by executing 

rm -rf /etc/selinux
rpm -Uhv --oldpackage selinux-policy*f7  /* Whatever F7 policy was*/

Then update to F9 policy and check to see if you login in as unconfined_u

semanage login -l | grep __default__


Comment 6 Will Woods 2008-04-24 23:49:20 UTC
I think the fix is confirmed.

I upgraded from F7 to F9 (where my user had user_u). Next I installed the old f7
policy packages and rebooted into rescue mode (to simulate the installer). 

I then upgraded the system to selinux-policy-3.3.1-40.fc9. It took a *long* time
for %post to run, but now everything works fine.

Comment 7 Will Woods 2008-04-29 22:30:12 UTC
Yep, confirmed the fix with an upgrade to today's rawhide.


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