Bug 250245 - SELinux CUPS Bug for Brother MFC420CN Networked FAX/Scanner/Printer
Summary: SELinux CUPS Bug for Brother MFC420CN Networked FAX/Scanner/Printer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 7
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: 2007-07-31 12:09 UTC by Larry Perritt-Hayes
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: Current
Clone Of:
Environment:
Last Closed: 2007-09-12 17:08:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Selinux Troubleshooting Browser (2.32 KB, text/plain)
2007-07-31 12:09 UTC, Larry Perritt-Hayes
no flags Details

Description Larry Perritt-Hayes 2007-07-31 12:09:21 UTC
Description of problem:
Trying to print anything to my MFC420CN on the LAN.


Version-Release number of selected component (if applicable):
Current CUPS driver for MFC420CN.


How reproducible:
When the printer is activated.


Steps to Reproduce:
1. Open printer manager.
2. Enable printer.
3. Printing a test page or any other document.
  
Actual results:
A setroubleshoot browser pops--giving the information attached.

Expected results:
A test page or any other document to print normally.


Additional info:
I need a fix--this works fine for XP--it's on our wireless LAN.  The printer,
obviously, is plugged into the Ethernet router.

Comment 1 Larry Perritt-Hayes 2007-07-31 12:09:21 UTC
Created attachment 160307 [details]
Selinux Troubleshooting Browser

Comment 2 Larry Perritt-Hayes 2007-07-31 12:11:03 UTC
Thank you for your work on this problem.

Comment 3 Daniel Walsh 2007-07-31 15:00:33 UTC
You can 

chcon -t bin_t FULLPATH/brlpdwrapperMFC

This will make it executable by cupsd.  You can also make this change permanent
by executing

semanage fcontext -a -t bin_t FULLPATH/brlpdwrapperMFC

Also please give me the FULLPATH/brldwrapperMFS so I can make the policy correct
so other users don't stumble on this problem.

Comment 4 Larry Perritt-Hayes 2007-07-31 17:26:51 UTC
Still not printing.

Same message.

FULLPATH= /usr/lib/cups/filter/brlpdwrapperMFC420CN, per your request.

"SEMANAGE" is not a valid command, it seems.

Please reply.

Thank you.

Comment 5 Daniel Walsh 2007-07-31 17:43:51 UTC
restorecon -v /usr/lib/cups/filter/brlpdwrapperMFC420CN
should fix the context.

Comment 6 Daniel Walsh 2007-07-31 17:44:36 UTC
selinux-policy-2.6.4-30 will fix the labeling of this directory to default to bin_t

Comment 7 Larry Perritt-Hayes 2007-07-31 18:39:27 UTC
"restorecon" is not a valid command.

...and..how do I quickly set the suggested selinux policy?

Comment 8 Daniel Walsh 2007-07-31 19:48:04 UTC
/sbin/restorecon -v /usr/lib/cups/filter/brlpdwrapperMFC420CN

You don't need it if you run this command.  

30 will go into fedora-testing tonight.

Comment 9 Larry Perritt-Hayes 2007-07-31 20:11:48 UTC
Ok, the command executed, however, I still get the same message without printer
throughput.

Keep me posted with PTF.

Thank you.

Comment 10 Daniel Walsh 2007-08-01 14:58:55 UTC
Could you attach you /var/log/audit/audit.log?

Comment 11 Larry Perritt-Hayes 2007-08-01 15:20:48 UTC
Sure, I would, but it's empty.

Thanks for the progress.  Let me know.

Comment 12 Daniel Walsh 2007-08-01 15:38:46 UTC
Ok in that case, if you setenforce 0 does it work?  If not, then it is probably
not an SELinux problem.

Comment 13 Larry Perritt-Hayes 2007-08-01 17:26:09 UTC
Ok, I'll keep worrking on it and keep you updated when it works.

Thanks for your time.

Comment 14 Daniel Walsh 2007-09-12 17:08:20 UTC
Moving modified bugs to closed



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