Bug 887042 - SELinux is preventing /usr/bin/perl from 'create' accesses on the file MS.ownertest.z36Ypx.
Summary: SELinux is preventing /usr/bin/perl from 'create' accesses on the file MS.own...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7fc621f1c79498fb7ef8003245d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-13 22:24 UTC by Jose Mendoza
Modified: 2013-01-07 04:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-07 04:04:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jose Mendoza 2012-12-13 22:24:13 UTC
Description of problem:
SELinux is preventing /usr/bin/perl from 'create' accesses on the file MS.ownertest.z36Ypx.

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

If you believe that perl should be allowed create access on the MS.ownertest.z36Ypx 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 4D61696C5363616E6E65723A207374 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mscan_t:s0
Target Context                system_u:object_r:tmp_t:s0
Target Objects                MS.ownertest.z36Ypx [ file ]
Source                        4D61696C5363616E6E65723A207374
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov
                              20 19:40:01 UTC 2012 x86_64 x86_64
Alert Count                   290516
First Seen                    2012-11-26 18:49:05 PST
Last Seen                     2012-12-13 14:25:07 PST
Local ID                      2b97077a-a7ca-4838-8475-db42cacc3054

Raw Audit Messages
type=AVC msg=audit(1355437507.786:301928): avc:  denied  { create } for  pid=27761 comm=4D61696C5363616E6E65723A207374 name="MS.ownertest.z36Ypx" scontext=system_u:system_r:mscan_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1355437507.786:301928): arch=x86_64 syscall=open success=no exit=EACCES a0=2fa67b0 a1=200c2 a2=180 a3=0 items=0 ppid=1542 pid=27761 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=4D61696C5363616E6E65723A207374 exe=2F7573722F62696E2F7065726C202864656C6574656429 subj=system_u:system_r:mscan_t:s0 key=(null)

Hash: 4D61696C5363616E6E65723A207374,mscan_t,tmp_t,file,create

audit2allow

#============= mscan_t ==============
allow mscan_t tmp_t:file create;

audit2allow -R

#============= mscan_t ==============
allow mscan_t tmp_t:file create;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.7-4.fc17.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2012-12-14 09:20:03 UTC
added.

commit fe9713c6d7af04692613be117142ec692f9f2436
Author: Miroslav Grepl <mgrepl>
Date:   Fri Dec 14 10:17:17 2012 +0100

    Backport mscan policy from F18

Comment 2 Fedora Update System 2012-12-17 18:44:47 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 3 Fedora Update System 2012-12-18 02:41:13 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-05 06:46:17 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-01-07 04:04:40 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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