Bug 227412

Summary: lspp: /root context isn't right on install
Product: Red Hat Enterprise Linux 5 Reporter: Linda Knippers <linda.knippers>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: iboverma, krisw, sgrubb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-13 21:32:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Linda Knippers 2007-02-05 20:53:13 UTC
Description of problem:
After doing an installation using the lspp kickstart script, the
context on root's home directory isn't right.

Version-Release number of selected component (if applicable):
rhel5-rc1

How reproducible:
very.

Steps to Reproduce:
1.install using the lspp ks script (rev 0.18 in my case)
2.log in as root
3.do a restorecon -v /root and see it be relabeled.  
  
Actual results:
ls -ldZ /root shows
root:object_r:user_home_dir_t:SystemLow-SystemHigh
#restorecond -v /root
restorecon reset /root context
root:object_r:user_home_dir_t:s0-s15:c0.c1012->root:object_r:sysadm_home_dir:t:s0-s15:c0.c1023


Expected results:
I think /root should have been sysadm_home_dir_t all along.

Additional info:
The lspp kickstart script used to touch /.autorelabel but was recently changed
to not do that so that's probably why this didn't show up before.  Putting
the autorelabel back in would work around the problem.

Comment 1 Steve Grubb 2007-02-13 21:32:30 UTC
Closing based on discussion at LSPP telecon.