Bug 432509 - add miscfiles_read_hwdata(cupsd_config_t )
add miscfiles_read_hwdata(cupsd_config_t )
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-12 09:53 EST by Tim Waugh
Modified: 2008-02-12 12:58 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-12 12:58:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Tim Waugh 2008-02-12 09:53:35 EST
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 09:53:35 EST
Created attachment 294662 [details]
policy-hal-cups-utils.patch
Comment 2 Daniel Walsh 2008-02-12 12:58:30 EST
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.