Bug 1072011

Summary: SELinux is preventing /usr/sbin/ip from 'mounton' accesses on the directory .
Product: [Fedora] Fedora Reporter: Chester Knapp <cknapp>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl, wbirkhea
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:df90a52850aef8469f63147fc13ba9796bcfdb3c7e8ecda8fa8c3ce4e7c5dad6
Fixed In Version: selinux-policy-3.12.1-135.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-21 09:26:05 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:
Attachments:
Description Flags
File: packstack-answers-20140303-103051.txt none

Description Chester Knapp 2014-03-03 16:45:39 UTC
Description of problem:
Happened during RDO installation. Answer file attached. 
SELinux is preventing /usr/sbin/ip from 'mounton' accesses on the directory .

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that ip should be allowed mounton access on the  directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep ip /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:neutron_t:s0
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                 [ dir ]
Source                        ip
Source Path                   /usr/sbin/ip
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iproute-3.11.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.5-200.fc20.x86_64 #1 SMP Mon
                              Feb 24 16:51:35 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-03-03 11:31:41 EST
Last Seen                     2014-03-03 11:31:41 EST
Local ID                      279ff8e8-458b-4c05-853a-dd0e923551f7

Raw Audit Messages
type=AVC msg=audit(1393864301.27:12342): avc:  denied  { mounton } for  pid=30872 comm="ip" path="/run/netns" dev="tmpfs" ino=141299 scontext=system_u:system_r:neutron_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1393864301.27:12342): arch=x86_64 syscall=mount success=no exit=EACCES a0=43c234 a1=4370a2 a2=43818d a3=104000 items=0 ppid=30871 pid=30872 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ip exe=/usr/sbin/ip subj=system_u:system_r:neutron_t:s0 key=(null)

Hash: ip,neutron_t,var_run_t,dir,mounton

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.5-200.fc20.x86_64
type:           libreport

Comment 1 Chester Knapp 2014-03-03 16:45:43 UTC
Created attachment 870040 [details]
File: packstack-answers-20140303-103051.txt

Comment 2 Miroslav Grepl 2014-03-05 07:55:04 UTC
Please execute

# restorecon -R -v /run/netns


commit a25c5a7545cf465205385936c66260edb13bfa8c
Author: Miroslav Grepl <mgrepl>
Date:   Wed Mar 5 08:54:27 2014 +0100

    Allow neutron to create /run/netns with correct labeling

Comment 3 Chester Knapp 2014-03-05 15:24:27 UTC
(In reply to Miroslav Grepl from comment #2)
> Please execute
> 
> # restorecon -R -v /run/netns
> 
> 
> commit a25c5a7545cf465205385936c66260edb13bfa8c
> Author: Miroslav Grepl <mgrepl>
> Date:   Wed Mar 5 08:54:27 2014 +0100
> 
>     Allow neutron to create /run/netns with correct labeling

I'm not sure why, but that file doesn't exist anymore...

[root@dhcp-161-221 ~]# restorecon -R -v /run/netns
restorecon:  lstat(/run/netns) failed:  No such file or directory

Comment 4 Fedora Update System 2014-03-12 07:20:24 UTC
selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20

Comment 5 Fedora Update System 2014-03-13 05:11:27 UTC
Package selinux-policy-3.12.1-135.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-135.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-03-21 09:26:05 UTC
selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.