Bug 1270134

Summary: ecryptfs cannot mount home directory on login, SELinux preventing
Product: [Fedora] Fedora Reporter: Paul DeStefano <prd-fedora>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 12:44:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul DeStefano 2015-10-09 04:23:00 UTC
Description of problem:
I think I have followed good instructions for building eCryptFS home directory and auto-mounting on login, but it does not work on fresh install of F22.  I did this a long time ago (F18?) and it has broken on at least two upgrades, but not F22.  On a fresh install of F22, however, I find yet another regression.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-128

How reproducible:
Always.

Steps to Reproduce:
1. Run through published instructions for setting up encrypted home and auto-mount on login (i.e. using ecryptfs-migrate-home).  See bug 1199287, that's exactly the procedure I used.
2. Try to login


Actual results:
3. Home diirectory is not write-able.

Expected results:
Should work as it has for many years.


Additional info:
Long history of breaking after upgrades.  Has policy just never been updated to allow this?  I thought I had removed the local policy and was using the official policy.  Using audit2allow over three iterations produces a workable local policy.

Comment 1 Miroslav Grepl 2015-10-12 12:44:05 UTC

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

Comment 2 Paul DeStefano 2015-11-07 10:06:44 UTC
Well, okay, but I happened again immediately after upgrade to F23.  I'll update the other but, but I cannot change the details on that one, so I'm also marking it here, too.