Bug 753375

Summary: vsftpd can't access home dir on server with selinux enforcing
Product: [Fedora] Fedora Reporter: Jim Haynes <jhhaynes>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: carlg, dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-13 02:00:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jim Haynes 2011-11-12 02:44:07 UTC
Description of problem:selinux enforcing doesn't allow vsftpd to access
/home, so I can't get into my home directory on the ftpd server from
another machine on the local network.


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.10.0-55.fc16.noarch

How reproducible: absolutely


Steps to Reproduce:
1. having enabled and started vsftpd on the ftp server

2. connect with ftp client from another host on the same local network

3. giving login name and password
  
Actual results:  reports it cannot change to my home directory on the server


Expected results:  should have let me into my home directory on the server


Additional info:  worked around by turning SELinux to permissive

Comment 1 Carl G. 2011-11-13 02:00:51 UTC
You have to enable the boolean ftp_home_dir

# setsebool -P ftp_home_dir 1

Comment 2 Jim Haynes 2011-11-13 02:44:16 UTC
OK, but which file contains that magic line?

Comment 3 Miroslav Grepl 2011-11-14 10:03:47 UTC
Jim,
the sealert should tell it.

Also you can check the the ftpd_selinux man page

# man ftpd_selinux