Bug 829410 - Selinux reports problems from gnash when using Youtube or Gmail
Summary: Selinux reports problems from gnash when using Youtube or Gmail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-06 16:07 UTC by Aidan Talerico
Modified: 2012-06-17 00:03 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-17 00:03:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Aidan Talerico 2012-06-06 16:07:53 UTC
Description of problem:
Selinux reports a problem stemming from gnash whenever I try to view videos on youtube.com or logon to my gmail account.

Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-128.fc17.noarch
gnash-0.8.10-2.fc17.x86_64
gnash-plugin-0.8.10-2.fc17.x86_64

How reproducible:
Always when using Firefox and the gnash plugin to view Gmail or a youtube video.
  
Actual results:
SELinux is preventing /usr/bin/gtk-gnash from write access on the file /home/orr/.gnash/SharedObjects/mail.google.com/wakeup.sol.

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

If you want to fix the label. 
/home/orr/.gnash/SharedObjects/mail.google.com/wakeup.sol default label should be mozilla_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/orr/.gnash/SharedObjects/mail.google.com/wakeup.sol

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

If you believe that gtk-gnash should be allowed write access on the wakeup.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 gtk-gnash /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:user_home_t:s0
Target Objects                /home/orr/.gnash/SharedObjects/mail.google.com/wak
                              eup.sol [ file ]
Source                        gtk-gnash
Source Path                   /usr/bin/gtk-gnash
Port                          <Unknown>
Host                          aidan-fedora
Source RPM Packages           gnash-0.8.10-2.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     aidan-fedora
Platform                      Linux aidan-fedora 3.3.7-1.fc17.x86_64 #1 SMP Mon
                              May 21 22:32:19 UTC 2012 x86_64 x86_64
Alert Count                   30
First Seen                    Tue 05 Jun 2012 12:55:26 PM CDT
Last Seen                     Wed 06 Jun 2012 10:59:09 AM CDT
Local ID                      3cec05ad-0c0e-4f37-ab55-7519db95c077

Raw Audit Messages
type=AVC msg=audit(1338998349.192:676): avc:  denied  { write } for  pid=7803 comm="gtk-gnash" name="wakeup.sol" dev="sda5" ino=23331255 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1338998349.192:676): arch=x86_64 syscall=open success=no exit=EACCES a0=12427a8 a1=241 a2=1b6 a3=238 items=0 ppid=11633 pid=7803 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=gtk-gnash exe=/usr/bin/gtk-gnash subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: gtk-gnash,mozilla_plugin_t,user_home_t,file,write

audit2allowunable to open /sys/fs/selinux/policy:  Permission denied


audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied

Expected results:
No Selinux alerts

Additional info:
Seems to be a regression of the bug reported in https://bugzilla.redhat.com/show_bug.cgi?id=804163.

Comment 1 Miroslav Grepl 2012-06-07 15:08:22 UTC
Where is the "wakeup.sol" exactly located in your homedir?

Comment 2 Daniel Walsh 2012-06-07 16:13:37 UTC
/home/devel/dwalsh/.macromedia/Flash_Player/#SharedObjects/5S8NLH5P/mail.google.com/wakeup.sol

restorecon -R -v /home

Should fix your problem.

Comment 3 Aidan Talerico 2012-06-07 19:38:05 UTC
Thank you, that seems to have worked.

Comment 4 Fedora Update System 2012-06-11 21:00:57 UTC
selinux-policy-3.10.0-130.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-130.fc17

Comment 5 Fedora Update System 2012-06-15 23:58:21 UTC
Package selinux-policy-3.10.0-130.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-130.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9520/selinux-policy-3.10.0-130.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-06-17 00:03:19 UTC
selinux-policy-3.10.0-130.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.