Bug 905220

Summary: SELinux is preventing systemd-readahe from 'read' accesses on the sock_file klauncherMT1361.slave-socket.
Product: [Fedora] Fedora Reporter: Paul Smith <phhs80>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4daad187db84cf9f44c38a89563b738c835f3fe82bb8b15be749b526fbd2856d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 02:25:55 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:

Description Paul Smith 2013-01-28 21:58:12 UTC
Description of problem:
SELinux is preventing systemd-readahe from 'read' accesses on the sock_file klauncherMT1361.slave-socket.

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

If you believe that systemd-readahe should be allowed read access on the klauncherMT1361.slave-socket sock_file 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 systemd-readahe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:readahead_t:s0
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                klauncherMT1361.slave-socket [ sock_file ]
Source                        systemd-readahe
Source Path                   systemd-readahe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-204.fc18.x86_64 #1 SMP Wed
                              Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-01-28 20:35:05 WET
Last Seen                     2013-01-28 21:01:47 WET
Local ID                      aec11760-2e42-4fda-b8fe-dda6208adb6c

Raw Audit Messages
type=AVC msg=audit(1359406907.297:322): avc:  denied  { read } for  pid=338 comm="systemd-readahe" name="klauncherMT1361.slave-socket" dev="dm-1" ino=1311634 scontext=system_u:system_r:readahead_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=sock_file


Hash: systemd-readahe,readahead_t,user_tmp_t,sock_file,read

audit2allow

#============= readahead_t ==============
allow readahead_t user_tmp_t:sock_file read;

audit2allow -R

#============= readahead_t ==============
allow readahead_t user_tmp_t:sock_file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.4-204.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-01-30 00:03:26 UTC
Added a dontaudit to git for this.

Comment 2 Miroslav Grepl 2013-01-30 09:16:43 UTC
Fixed in  selinux-policy-3.11.1-74.fc18.noarch

Comment 3 Fedora Update System 2013-01-31 13:20:13 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 4 Fedora Update System 2013-02-01 16:41:12 UTC
Package selinux-policy-3.11.1-74.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-02-08 02:25:57 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.