Bug 744457

Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'setattr' accesses on the directory at-spi2.
Product: [Fedora] Fedora Reporter: James <james>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:fd7579801a449fc9948d26c4da4a0ce40fe8b2f4a1f8bf45e6c430a531bb3ec7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 15:46:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James 2011-10-08 19:04:42 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc9.git0.fc16.jhe.fc15.i686
reason:         SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'setattr' accesses on the directory at-spi2.
time:           Sat Oct  8 20:04:31 2011

description:
:SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'setattr' accesses on the directory at-spi2.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that npviewer.bin should be allowed setattr access on the at-spi2 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 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                system_u:object_r:xdm_tmp_t:s0
:Target Objects                at-spi2 [ dir ]
:Source                        npviewer.bin
:Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           nspluginwrapper-1.4.4-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-32.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-0.rc9.git0.fc16.jhe.fc15.i686
:                              #1 SMP Sat Oct 8 17:51:11 BST 2011 i686 i686
:Alert Count                   1
:First Seen                    Sat 08 Oct 2011 19:22:09 BST
:Last Seen                     Sat 08 Oct 2011 19:22:09 BST
:Local ID                      90f8ddcd-7ba6-4392-941a-32dd761e85ad
:
:Raw Audit Messages
:type=AVC msg=audit(1318098129.959:78): avc:  denied  { setattr } for  pid=1923 comm="npviewer.bin" name="at-spi2" dev=sda3 ino=262188 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1318098129.959:78): arch=i386 syscall=chmod success=no exit=EACCES a0=29eb0a a1=3ff a2=2a6ff4 a3=2a7e68 items=0 ppid=1901 pid=1923 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=npviewer.bin exe=/usr/lib/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: npviewer.bin,nsplugin_t,xdm_tmp_t,dir,setattr
:
:audit2allow
:
:#============= nsplugin_t ==============
:allow nsplugin_t xdm_tmp_t:dir setattr;
:
:audit2allow -R
:
:#============= nsplugin_t ==============
:allow nsplugin_t xdm_tmp_t:dir setattr;
:

Comment 1 Miroslav Grepl 2011-10-10 15:07:57 UTC
Do you know what you were doing when this happened?

Comment 2 Daniel Walsh 2011-10-11 17:13:16 UTC
This definitely should not be allowed. Maybe we should dontaudit.


I would figure nothing actually broke.

Comment 3 James 2011-10-11 17:39:28 UTC
(In reply to comment #1)
> Do you know what you were doing when this happened?

Not entirely sure, this might've been older versions before an update. Haven't seen it since...