Bug 828104

Summary: SELinux is preventing npviewer.bin from 'unlink' accesses on the file wakeup.sol.
Product: [Fedora] Fedora Reporter: Khalid El-dehairy <kdehairy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:d955fc398a3528c2bac8558cb40d10f0fdd29d2306d8541b75e7fdbdb3185f71
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-04 09:13:26 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 Khalid El-dehairy 2012-06-04 09:02:17 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.i686
time:           Mon 04 Jun 2012 11:01:42 AM EET

description:
:SELinux is preventing npviewer.bin from 'unlink' accesses on the file wakeup.sol.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that npviewer.bin should be allowed unlink access on the wakeup.sol 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 npviewer.bin /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:user_home_dir_t:s0
:Target Objects                wakeup.sol [ file ]
:Source                        npviewer.bin
:Source Path                   npviewer.bin
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-125.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.i686 #1
:                              SMP Mon May 21 22:50:24 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Mon 04 Jun 2012 10:51:11 AM EET
:Last Seen                     Mon 04 Jun 2012 10:51:11 AM EET
:Local ID                      5ccf7879-ea16-467c-a028-b166051df99f
:
:Raw Audit Messages
:type=AVC msg=audit(1338799871.438:131): avc:  denied  { unlink } for  pid=23795 comm="npviewer.bin" name="wakeup.sol" dev="sda3" ino=4596484 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:Hash: npviewer.bin,mozilla_plugin_t,user_home_dir_t,file,unlink
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-06-04 09:13:26 UTC
You will need to run

# restorecon -Rv ~/