Bug 450196 - xguest breaks drag-and-drop from firefox
Summary: xguest breaks drag-and-drop from firefox
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-06-05 20:22 UTC by Bill Nottingham
Modified: 2008-11-17 22:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-11-17 22:04:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2008-06-05 20:22:56 UTC
Description of problem:

When using xguest, dragging images, or download links, or what have you, to the
Desktop (or to other folders), fails.

The error given is:

Error while copying.

There was an error getting information about "Falcon-0.8.8-3.fc9.x86_64.rpm"

> HTTP Error: Cannot connect to destination

[ Cancel ] [ Skip All ] [ Skip ] [ Retry ]

ausearch says:

type=AVC msg=audit(1212697130.615:61): avc:  denied  { name_connect } for 
pid=3196 comm="gvfsd-http" dest=80 scontext=xguest_u:xguest_r:xguest_t:s0
tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket

Version-Release number of selected component (if applicable):

nautilus-2.22.2-7.fc9.x86_64
gvfs-0.2.3-11.fc9.x86_64
firefox-3.0-0.60.beta5.fc9.x86_64
xguest-1.0.6-7.fc9.noarch
selinux-policy-3.3.1-55.fc9.noarch

How reproducible:

Every time

Steps to Reproduce:
1. Log in via xguest
2. Start firefox
3. Drag something
  
Actual results:

Error

Expected results:

No error

Comment 1 Bill Nottingham 2008-06-05 20:24:08 UTC
Similarly, 'Connect to Server' is broken for things like FTP:

type=AVC msg=audit(1212697375.944:65): avc:  denied  { name_connect } for 
pid=3281 comm="gvfsd-ftp" dest=21 scontext=xguest_u:xguest_r:xguest_t:s0
tcontext=system_u:object_r:ftp_port_t:s0 tclass=tcp_socket


Comment 2 Daniel Walsh 2008-06-09 19:55:25 UTC
So should we label these mozilla_exec_t?  Should we allow this for a limited
priv account like xguest?

Comment 3 Bill Nottingham 2008-06-09 20:07:03 UTC
CCing gvfs people.

Comment 4 Daniel Walsh 2008-06-10 20:37:32 UTC
If we believe this functionality should work for an xguest/kiosk user, we can
label these executables mozilla_exec_t which will just work with unconfined and
other confined users, but if you have a completely confined domain like xguest,
these apps will be allowed to access httpd/ftp ports.


Comment 5 Daniel Walsh 2008-11-17 22:04:29 UTC
Closing all bugs that have been in modified for over a month.  Please reopen if the bug is not actually fixed.


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