Bug 980475

Summary: Boolean use_samba_home_dirs allows some types access to autofs_t
Product: Red Hat Enterprise Linux 7 Reporter: Michal Trunecka <mtruneck>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-03 08:05:20 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 Michal Trunecka 2013-07-02 13:49:02 UTC
Description of problem:

I think this is a mistake, because it is use_SAMBA_home_dirs and it allows access to automounted device:

> # sesearch -b use_samba_home_dirs -A -C | grep autofs_t
> DT allow mozilla_t autofs_t : dir { ioctl read getattr lock search open } ; [ mozilla_read_content use_samba_home_dirs && ]
> DT allow cdrecord_t autofs_t : dir { ioctl read getattr lock search open } ; [ cdrecord_read_content use_samba_home_dirs && ]
> DT allow mock_t autofs_t : dir { ioctl read getattr lock search open } ; [ mock_enable_homedirs use_samba_home_dirs && ]


Version-Release number of selected component (if applicable):
selinux-policy-3.12.1-56.el7.noarch