Bug 653104

Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from unlink access on the file /home/tom/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol.
Product: [Fedora] Fedora Reporter: Tom <thomasbelvin>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dmachop, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f44bd42d8e5a4bf62e7b01638d68c4f9aa91c98710ec6b0b0b7fa330777b4f23
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-15 11:52:44 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 Tom 2010-11-14 15:36:57 UTC
SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from unlink access on the file /home/tom/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label, settings.sol does not have the default system label.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/tom/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you want to allow npviewer.bin to have unlink access on the settings.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 /usr/lib/nspluginwrapper/npviewer.bin /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                /home/tom/.macromedia/Flash_Player/macromedia.com/
                              support/flashplayer/sys/settings.sol [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-14.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.8-4.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.36-1.fc15.i686.PAE #1 SMP Thu
                              Oct 21 04:31:09 UTC 2010 i686 i686
Alert Count                   3075
First Seen                    Sat 13 Nov 2010 05:38:16 PM EST
Last Seen                     Sun 14 Nov 2010 10:33:18 AM EST
Local ID                      2e3a89c0-0d78-4ed0-94cc-df0819c1a8d1

Raw Audit Messages
type=AVC msg=audit(1289748798.162:1360): avc:  denied  { unlink } for  pid=4355 comm="npviewer.bin" name="settings.sol" dev=dm-3 ino=3933078 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file

npviewer.bin,nsplugin_t,user_home_dir_t,file,unlink
type=SYSCALL msg=audit(1289748798.162:1360): arch=i386 syscall=unlink success=no exit=EACCES a0=8521408 a1=8545458 a2=151d26c a3=bfc5341c items=0 ppid=4343 pid=4355 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=npviewer.bin exe=/usr/lib/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)
npviewer.bin,nsplugin_t,user_home_dir_t,file,unlink

#============= nsplugin_t ==============
allow nsplugin_t user_home_dir_t:file unlink;

Comment 1 Miroslav Grepl 2010-11-15 11:51:35 UTC
*** Bug 653106 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2010-11-15 11:52:44 UTC
execute:

restorecon -R -v /home/tom/.macromedia

will fix it.