Bug 440572 - scim-bridge causing avc denials with scim-chewing and scim-python-pinyin
Summary: scim-bridge causing avc denials with scim-chewing and scim-python-pinyin
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scim-bridge
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Peng Huang
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 441177 (view as bug list)
Depends On:
Blocks: F9Target 441177
TreeView+ depends on / blocked
 
Reported: 2008-04-04 05:10 UTC by Jens Petersen
Modified: 2008-04-11 05:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-11 05:47:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
selinux_alert.txt (4.71 KB, text/plain)
2008-04-04 05:55 UTC, Jens Petersen
no flags Details

Description Jens Petersen 2008-04-04 05:10:40 UTC
Description of problem:
scim-bridge seems to be causing avc denials whenever IM is started under GNOME:
ie when the first gtk application using scim-bridge is started, when Chinese
IMEs are installed.

How reproducible:
every time

Steps to Reproduce:
1. sudo yum groupinstall chinese-support
2. start SCIM with im-chooser
2. restart desktop
3. press F2 or open a gtk or gnome application like gedit or gnome-terminal
  
Actual results:
3. avc denial and setroubleshooting star icon in notification area.

Expected results:
3. no selinux warning

Comment 1 Jens Petersen 2008-04-04 05:53:02 UTC
Meant to add that this doesn't happen if scim-bridge is removed.


Comment 2 Jens Petersen 2008-04-04 05:55:18 UTC
Created attachment 300387 [details]
selinux_alert.txt

(sorry the output is in Japanese)

Comment 3 Daniel Walsh 2008-04-04 21:43:08 UTC
Looks like scim-bridge is leaking open file descriptors that ldconfig is looking at.

fcntl(fd, F_SETFD, FD_CLOEXEC)


Comment 4 Caius Chance 2008-04-07 03:37:50 UTC
The file was denied access has same context as normal:

$ ll -Z /usr/share/chewing/us_freq.dat 
-rw-r--r--  root root system_u:object_r:usr_t:s0      
/usr/share/chewing/us_freq.dat

$ ll -Z /usr/share/scim-python/helper/__init__.py
-rw-r--r--  root root system_u:object_r:usr_t:s0      
/usr/share/scim-python/helper/__init__.py


Comment 5 Daniel Walsh 2008-04-08 12:50:54 UTC
Yes but ldconfig would not try to access this file.  So the problem is someone
is leaking an open file descriptor to ldconfig, and SELinux checks the access on
the open file descriptor causing the AVC.

Comment 6 Jens Petersen 2008-04-11 05:47:49 UTC
Hmm seems fixed in rawhide anyway.  Thanks

Comment 7 Jens Petersen 2008-04-11 05:48:15 UTC
*** Bug 441177 has been marked as a duplicate of this bug. ***


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