Bug 134364 - firefox not closing file descriptors on exec
Summary: firefox not closing file descriptors on exec
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christopher Aillon
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-01 17:53 UTC by Daniel Walsh
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-25 20:05:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Walsh 2004-10-01 17:53:02 UTC
Description of problem:

+allow $1_lpr_t $1_mozilla_t:tcp_socket { read write };
+allow $1_lpr_t $1_mozilla_t:unix_stream_socket { read write };

SELinux wants to generate the above commands when execing lpr from
within firefox.  This is caused because some file descriptors are not
being closed on the exec.

fcntl(fd,   F_SETFD, FD_CLOEXEC)

This is a potential security hole in that the spawning process would
be able to read/write from these open sockets.



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


How reproducible:


Steps to Reproduce:
1. Bring up a pdf in the viewer and attempt to print.
2.
3.
  
Actual results:
SELinux denial messages

Expected results:
No SELinux denial messages.

Additional info:

Comment 1 Daniel Walsh 2005-08-25 20:05:45 UTC
Closing since I have not seen this recently,


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