Bug 669933 - Default policy doesn't allow NFS home directories
Summary: Default policy doesn't allow NFS home directories
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-15 22:53 UTC by Tethys
Modified: 2011-05-26 20:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-26 20:41:09 UTC
Type: ---


Attachments (Terms of Use)

Description Tethys 2011-01-15 22:53:22 UTC
Description of problem:
Install F14 with authentication via NIS, and home directories mounted
via NFS. SELinux prevents remote logins.

Trivial to work around with "setsebool -P use_nfs_home_dirs 1", but I
shouldn't need to do this. If the user has configured remote authentication,
the chances that they're using NFS home directories are very high. The
default policy should allow it if remote authentication is configured.
Or at the very least, ask at install time if NFS home directories are
going to be used. Maybe this should be an anaconda bug?

Version-Release number of selected component (if applicable):
selinux-policy-3.9.7-19.fc14.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Install F14
2. Configure NIS authentication
3. Mount NFS home directories
4. ssh to F14 machine from elsewhere
  
Actual results:
setroubleshoot: SELinux is preventing /usr/sbin/sshd from search access on the directory .

Expected results:
Login

Additional info:

Comment 1 Daniel Walsh 2011-01-17 17:44:57 UTC
There is really  know way for us to know.  Since you could simply add 

remote:/home /home 

To /etc/fstab.

The type of authentication has no baring on whether or not you are using nfs homedirs.

Comment 2 Tethys 2011-01-18 08:16:13 UTC
Oh, I agree there's no guaranteed way to tell. But remote authentication
is a very strong hint. At the very least, the installer should be asking
if you're using NFS home directories and setting up SELinux appropriately.

Just having it fail out of the box isn't really a viable option IMHO.

Comment 3 Daniel Walsh 2011-01-18 15:15:04 UTC
But the installer did nothing about setting up nfs homedirs, it was done by the admin, and the admin should be responsible for configuring the machine.  Just like he would need to handle coordinating the UID MAPS.  I agree if there was a tool system-config-nfs then this should be done.  Maybe we could put better docs in NFS somewhere.  But I don't see this as an anaconda bug and saying it is broken out of the box when anaconda did not setup the NFS homedirs, is just wrong.


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