Bug 187079 - HPLIP policy fix: usb_device_t:chr_file
HPLIP policy fix: usb_device_t:chr_file
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-28 06:12 EST by Tim Waugh
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-28 16:03:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2006-03-28 06:12:34 EST
Description of problem:
The 'hp' CUPS backend needs to use USB device files to do its job.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.2.23-15

How reproducible:
100%

Steps to Reproduce:
1. setenforce 0
2. Run /usr/lib/cups/backend/hp (with HP multi-function device plugged in)
  
Actual results:
audit(1143543819.520:190): avc:  denied  { read write } for  pid=27691
comm="hpiod" name="001" dev=tmpfs ino=3990 scontext=user_u:system_r:hplip_t:s0
tcontext=system_u:object_r:usb_device_t:s0 tclass=chr_file
audit(1143543819.520:191): avc:  denied  { ioctl } for  pid=27691 comm="hpiod"
name="001" dev=tmpfs ino=3990 scontext=user_u:system_r:hplip_t:s0
tcontext=system_u:object_r:usb_device_t:s0 tclass=chr_file

(With 'setenforce 1', no device is found.)

Additional info:
This should fix it:

allow hplip_t usb_device_t:chr_file { ioctl read write };
Comment 1 Tim Waugh 2006-03-28 06:25:40 EST
Also needs this when running hp-toolbox:

allow hplip_t self:fifo_file { read write };
Comment 2 Tim Waugh 2006-03-30 09:41:40 EST
FWIW, this is blocking FC5 updates for hplip and (transitively) CUPS.
Comment 3 Daniel Walsh 2006-03-30 11:49:45 EST
Fixed in selinux-policy-2.2.25-3.fc5
Comment 4 Tim Waugh 2006-03-31 04:57:10 EST
Great, works perfectly here.  Thanks!
Comment 6 Daniel Walsh 2007-03-28 16:03:52 EDT
Closing bugs

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