| Summary: | SELinux is preventing /usr/lib64/nspluginwrapper/npviewer.bin from 'write' accesses on the file /root/.mozilla/firefox/h0i7vsgx.default/.parentlock. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Paolo Bonzini <pbonzini> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:4f3be969f24d7de481cdeb8aff38310649f60935f05f01e1a8d9d3e0eb027215 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-19 15:22:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Hmm, looks like the contexts are wrong on the /root/.mozilla directory (and below), however after restorecon -vR /root/.mozilla/firefox/ I still see them as admin_home_t rather than mozilla_home_t. Do not run firefox as root. it is unsupported by SELinux. Maybe worth a sealert plugin? |
SELinux is preventing /usr/lib64/nspluginwrapper/npviewer.bin from 'write' accesses on the file /root/.mozilla/firefox/h0i7vsgx.default/.parentlock. I believe both suggestions are wrong, however I could not get an nsplugin_home_t context on the file with semanage fcontext -a -t nsplugin_home_t \ 'HOME_DIR/\.mozilla/firefox(/[^/]*)/\.parentlock' Something like that should work though. ***** Plugin leaks (50.5 confidence) suggests ****************************** If you want to ignore npviewer.bin trying to write access the .parentlock file, because you believe it should not need this access. Then you should report this as a bug. You can generate a local policy module to dontaudit this access. Do # grep /usr/lib64/nspluginwrapper/npviewer.bin /var/log/audit/audit.log | audit2allow -D -M mypol # semodule -i mypol.pp ***** Plugin catchall (50.5 confidence) suggests *************************** If you believe that npviewer.bin should be allowed write access on the .parentlock 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:nsplugin_t:s0-s0:c0.c102 3 Target Context unconfined_u:object_r:admin_home_t:s0 Target Objects /root/.mozilla/firefox/h0i7vsgx.default/.parentloc k [ file ] Source npviewer.bin Source Path /usr/lib64/nspluginwrapper/npviewer.bin Port <Unknown> Host (removed) Source RPM Packages nspluginwrapper-1.3.0-16.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.12-8.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux playground.usersys.redhat.com 2.6.37-2.fc15.x86_64 #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Wed 19 Jan 2011 02:52:05 PM CET Last Seen Wed 19 Jan 2011 02:52:05 PM CET Local ID 36664d05-c26a-495f-a993-ee07a479521f Raw Audit Messages type=AVC msg=audit(1295445125.861:123): avc: denied { write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/.parentlock" dev=sda10 ino=134696 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/places.sqlite-shm" dev=sda10 ino=134707 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/XUL.mfasl" dev=sda10 ino=134704 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/Cache/_CACHE_MAP_" dev=sda10 ino=134719 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/Cache/_CACHE_001_" dev=sda10 ino=134737 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/Cache/_CACHE_002_" dev=sda10 ino=134738 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/Cache/_CACHE_003_" dev=sda10 ino=134739 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=AVC msg=audit(1295445125.861:123): avc: denied { read write } for pid=8665 comm="npviewer.bin" path="/root/.mozilla/firefox/h0i7vsgx.default/cookies.sqlite-shm" dev=sda10 ino=134741 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file type=SYSCALL msg=audit(1295445125.861:123): arch=x86_64 syscall=execve success=yes exit=0 a0=13c9290 a1=13c95e0 a2=13c68e0 a3=0 items=0 ppid=8145 pid=8665 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=npviewer.bin exe=/usr/lib64/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null) Hash: npviewer.bin,nsplugin_t,admin_home_t,file,write audit2allow #============= nsplugin_t ============== allow nsplugin_t admin_home_t:file { write read }; audit2allow -R #============= nsplugin_t ============== allow nsplugin_t admin_home_t:file { write read };