Bug 1004494

Summary: SELinux is preventing /usr/lib/xulrunner/plugin-container from 'read' accesses on the directory /run/media/anurag/movies..
Product: [Fedora] Fedora Reporter: Anurag Kumar <anurag3rdsep>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:599fe428fb57e2bfa75c982b978211c608243f83b210f199f530b40ef22c7f2a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-04 19:22:16 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 Anurag Kumar 2013-09-04 18:20:34 UTC
Description of problem:
1.I tried uploading pics to flicker but the uploading plugin couldn't read files from my hard-disk
 2. Even after entering the root password , the error message was given "access denied".
3. this was not happening few days back.
SELinux is preventing /usr/lib/xulrunner/plugin-container from 'read' accesses on the directory /run/media/anurag/movies..

*****  Plugin mozplugger (89.7 confidence) suggests  *************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool unconfined_mozilla_plugin_transition 0

*****  Plugin catchall_boolean (10.0 confidence) suggests  *******************

If you want to allow use to fusefs home dirs
Then you must tell SELinux about this by enabling the 'use_fusefs_home_dirs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P use_fusefs_home_dirs 1

*****  Plugin catchall (1.69 confidence) suggests  ***************************

If you believe that plugin-container should be allowed read access on the movies. 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 pool /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                system_u:object_r:fusefs_t:s0
Target Objects                /run/media/anurag/movies. [ dir ]
Source                        pool
Source Path                   /usr/lib/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-23.0-2.fc19.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-73.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.9-200.fc19.i686 #1 SMP Wed
                              Aug 21 20:48:34 UTC 2013 i686 i686
Alert Count                   18
First Seen                    2013-09-02 13:20:47 IST
Last Seen                     2013-09-04 21:02:17 IST
Local ID                      324f2fb8-6efc-481c-ab14-14b5942bc4f1

Raw Audit Messages
type=AVC msg=audit(1378308737.642:467): avc:  denied  { read } for  pid=2888 comm="pool" name="/" dev="sda4" ino=5 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir


type=SYSCALL msg=audit(1378308737.642:467): arch=i386 syscall=openat success=no exit=EACCES a0=ffffff9c a1=a9e46580 a2=98800 a3=0 items=0 ppid=2274 pid=2888 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=pool exe=/usr/lib/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: pool,mozilla_plugin_t,fusefs_t,dir,read

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.9-200.fc19.i686
type:           libreport

Potential duplicate: bug 835566

Comment 1 Daniel Walsh 2013-09-04 19:22:16 UTC


The alert told you what to do


If you want to allow use to fusefs home dirs
Then you must tell SELinux about this by enabling the 'use_fusefs_home_dirs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P use_fusefs_home_dirs 1