Bug 448031 - Opening URL in Wine app corrupts Firefox contexts
Summary: Opening URL in Wine app corrupts Firefox contexts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-23 01:58 UTC by Michael Wiktowy
Modified: 2008-05-23 19:31 UTC (History)
3 users (show)

Fixed In Version: 55
Clone Of:
Environment:
Last Closed: 2008-05-23 19:31:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Sample setroubleshooter alert (2.56 KB, text/plain)
2008-05-23 01:58 UTC, Michael Wiktowy
no flags Details

Description Michael Wiktowy 2008-05-23 01:58:44 UTC
Description of problem:
An app (PokerStars client) that I ran under Wine opened a URL with the default
non-wine viewer, Firefox.

SETroubleshoot was not happy. Neither was Firefox at having selinux block access
to every file it needs to write to in ~.mozilla/. See attached sample
notification. You get several of the same type for Target Objects:
places.sqlite-journal [ filesystem ]
bookmarks-2008-05-22.json [ filesystem ]
localstore-1.rdf [ filesystem ]
patterns.ini [ filesystem ]
patterns.ini [ filesystem ]
urlclassifier3.sqlite-journal [ filesystem ]
cookies.sqlite-journal [ filesystem ]
formhistory.sqlite-journal [ filesystem ]
lock [ filesystem ]

Version-Release number of selected component (if applicable):
selinux-policy-3.3.1-51.fc9.noarch
selinux-policy-targeted-3.3.1-51.fc9.noarch
wine-0.9.58-1.fc9.i386

How reproducible:
Unknown since I didn't want to taunt selinux again but 'restorecon -R
~user/.mozilla/' fixes the issue with no data loss.

Steps to Reproduce:
1. Open a wine app that you can cause to load a URL (PokerStars client in my case)
2. Cause it to open a URL
3. Profit
  
Actual results:
Firefox unable to update or load bookmarks and other files under ~/.mozilla

Expected results:
Firefox should open and all should be well. I have done this sort of thing under
F8 with no ill effects.

Additional info:
If you don't use wine, let me know if you want any policies tested.

Comment 1 Michael Wiktowy 2008-05-23 01:58:44 UTC
Created attachment 306437 [details]
Sample setroubleshooter alert

Comment 2 Michael Wiktowy 2008-05-23 03:51:10 UTC
I cannot seem to recreate this bug after installing the following
updates-testing from koji:
selinux-policy-3.3.1-55.fc9.noarch
selinux-policy-devel-3.3.1-55.fc9.noarch
selinux-policy-targeted-3.3.1-55.fc9.noarch

Since I didn't try recreating this problem before updating I don't know if the
update fixed the problem (there didn't seem to be anything wine specific in the
latest changelogs) or it was not repeatable in the first place after a
restorecon to the .mozilla directory.

The good news is that things seem to work fine now :]

Comment 3 Daniel Walsh 2008-05-23 19:31:06 UTC
It might be a file system that we did not understand.

But for now, I will close as currentrelease, If you recreate reopen the bug.



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