Bug 174607

Summary: /root created with wrong selinux context
Product: [Fedora] Fedora Reporter: Alexandre Oliva <oliva>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
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: 2005-12-01 03:34: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 Alexandre Oliva 2005-11-30 17:34:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8) Gecko/20051118 Fedora/1.5-0.5.0.rc3 Firefox/1.5

Description of problem:
/root is created as system_u:object_r:default_t, but it needs system_u:object_r:user_home_dir_t to function properly.  Without it, you get errors as follows.

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


How reproducible:
Always

Steps to Reproduce:
1.Install FC5test1
2.Log in as some regular user
3.Run `su -'

Actual Results:  su: warning: cannot change directory to /root: Permission denied
su: warning: cannot change directory to /root: Permission denied
Yes, twice.

Expected Results:  No such warnings or failures to chdir.

Additional info:

restorecon /root is enough to fix the problem.

Comment 1 Jeremy Katz 2005-12-01 03:34:30 UTC

*** This bug has been marked as a duplicate of 174227 ***