Bug 556856 - cups interface scripts in wrong selinux context
Summary: cups interface scripts in wrong selinux context
Keywords:
Status: CLOSED DUPLICATE of bug 550015
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cups
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 16:04 UTC by Tomas Edwardsson
Modified: 2010-01-19 16:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-19 16:21:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Edwardsson 2010-01-19 16:04:48 UTC
Description of problem:
SELinux prevents cupsd from executing interface scripts in /etc/cups/interfaces


How reproducible:
Create a printer with a interface script

lpadmin -p test-interface-printer -v file:/dev/null -i /tmp/interface-script.sh

Try to print on your test-interface-printer
  

Actual results:
SELinux is preventing cupsd (cupsd_t) "execute" to ./interface-script.sh (cupsd_etc_t). For complete SELinux messages. run sealert -l db5a0905-2c1f-4735-9d06-8ad6fcd7bb33 Jan 19 14:14:11 sofia setroubleshoot: SELinux is preventing test-interface-printer (cupsd_t) "execute_no_trans" to /etc/cups/interfaces/interface-script.sh (cupsd_etc_t). 


Fix:

semanage fcontext -a -t cupsd_exec_t "/etc/cups/interfaces(/.*)?"
restorecon -R /etc/cups/interfaces

Comment 1 Tim Waugh 2010-01-19 16:21:55 UTC

*** This bug has been marked as a duplicate of bug 550015 ***


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