Bug 889717

Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'open' accesses on the file /home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg.
Product: [Fedora] Fedora Reporter: Roman Melihhov <roman>
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: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b5be2005aad214f674b6514763d02f9fc1b2ef041a2d6c0365402f0b33986b9a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-27 09:34:22 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Roman Melihhov 2012-12-22 21:34:00 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.10-2.fc17.x86_64

description:
:SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'open' accesses on the file /home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg default label should be user_home_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that plugin-container should be allowed open access on the 04a97132d98b0285d4b7a5803a.jpg 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 plugin-containe /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:var_run_t:s0
:Target Objects                /home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5
:                              803a.jpg [ file ]
:Source                        plugin-containe
:Source Path                   /usr/lib64/xulrunner/plugin-container
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           xulrunner-17.0.1-1.fc17.x86_64
: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.10-2.fc17.x86_64 #1 SMP Tue
:                              Dec 11 18:07:34 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-12-22 22:24:03 EET
:Last Seen                     2012-12-22 22:24:03 EET
:Local ID                      6b4bc34e-a8a1-4f09-aca1-827cc67a1ea2
:
:Raw Audit Messages
:type=AVC msg=audit(1356207843.450:77): avc:  denied  { open } for  pid=3022 comm="plugin-containe" path="/home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg" dev="dm-2" ino=36309155 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1356207843.450:77): arch=x86_64 syscall=open success=no exit=EACCES a0=7f08f3ccf080 a1=0 a2=1b6 a3=6574636f2f6e6f69 items=0 ppid=2250 pid=3022 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: plugin-containe,mozilla_plugin_t,var_run_t,file,open
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t var_run_t:file open;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t var_run_t:file open;
:

Comment 1 Roman Melihhov 2012-12-22 21:34:04 UTC
Created attachment 667842 [details]
File: type

Comment 2 Roman Melihhov 2012-12-22 21:34:06 UTC
Created attachment 667843 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-12-27 09:34:22 UTC
Basically the alert tells you what to do. You need to fix labeling using


# /sbin/restorecon -v /home/roman/Pictures/Webcam/04a97132d98b0285d4b7a5803a.jpg