Bug 432509 - add miscfiles_read_hwdata(cupsd_config_t )
Summary: add miscfiles_read_hwdata(cupsd_config_t )
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
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-02-12 14:53 UTC by Tim Waugh
Modified: 2008-02-12 17:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-12 17:58:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
policy-hal-cups-utils.patch (524 bytes, patch)
2008-02-12 14:53 UTC, Tim Waugh
no flags Details | Diff

Description Tim Waugh 2008-02-12 14:53:35 UTC
Description of problem:
In Fedora 9, the hal_lpadmin script included in hal-cups-utils uses the output
from lsusb.  As a result, we need to add "miscfiles_read_hwdata(cupsd_config_t)"
to policy/modules/cups.te.

Version-Release number of selected component (if applicable):
selinux-policy-3.2.7-3.fc9

How reproducible:
100% with hal-cups-utils-0.6.14-1.fc9

Steps to Reproduce:
1.Plug in an HP USB printer
  
Actual results:
type=AVC msg=audit(1202825512.698:150): avc:  denied  { search } for  pid=8087
comm="lsusb" name="hwdata" dev=sda3 ino=671236
scontext=system_u:system_r:cupsd_config_t:s0
tcontext=system_u:object_r:hwdata_t:s0 tclass=dir
type=AVC msg=audit(1202825512.698:150): avc:  denied  { read } for  pid=8087
comm="lsusb" name="usb.ids" dev=sda3 ino=671239
scontext=system_u:system_r:cupsd_config_t:s0
tcontext=system_u:object_r:hwdata_t:s0 tclass=file
type=AVC msg=audit(1202825512.703:151): avc:  denied  { getattr } for  pid=8087
comm="lsusb" path="/usr/share/hwdata/usb.ids" dev=sda3 ino=671239
scontext=system_u:system_r:cupsd_config_t:s0
tcontext=system_u:object_r:hwdata_t:s0 tclass=file

Expected results:
No AVC message.

Additional info:
Tested patch attached.

For the time being this only affects Fedora 9.  I may release a hal-cups-utils
update for Fedora 8 in the future.

Comment 1 Tim Waugh 2008-02-12 14:53:35 UTC
Created attachment 294662 [details]
policy-hal-cups-utils.patch

Comment 2 Daniel Walsh 2008-02-12 17:58:30 UTC
Fixed in selinux-policy-3.0.8-85.fc8

Fixed in selinux-policy-3.2.7-4.fc9


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