Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th December 2010, 09:52 PM
skyxn3t's Avatar
skyxn3t Offline
Registered User
 
Join Date: Jul 2010
Posts: 210
linuxchrome
What does SELINUX got on CUPS/PRINTING? O_o

I have a samsung ML2525W printer. I installed the printer driver. I added the printer, everything went fine.
But when I try to print. SELINUX prevents it from printing.

Here's the message:


Code:
Summary:

SELinux is preventing /usr/lib/cups/daemon/cups-deviced "execute" access on mfp.

Detailed Description:

SELinux denied access requested by cups-deviced. It is not expected that this
access is required by cups-deviced and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                mfp [ file ]
Source                        cups-deviced
Source Path                   /usr/lib/cups/daemon/cups-deviced
Port                          <Unknown>
Host                          user
Source RPM Packages           cups-1.4.4-11.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-16.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     user
Platform                      Linux user 2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec
                              3 12:19:41 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 17 Dec 2010 05:46:02 PM EST
Last Seen                     Fri 17 Dec 2010 05:46:02 PM EST
Local ID                      bcd147da-4001-40a9-ad26-fb3d241de706
Line Numbers                  

Raw Audit Messages            

node=user type=AVC msg=audit(1292625962.425:288): avc:  denied  { execute } for  pid=7379 comm="cups-deviced" name="mfp" dev=sda3 ino=5774315 scontext=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=user type=SYSCALL msg=audit(1292625962.425:288): arch=c000003e syscall=59 success=no exit=-13 a0=7fff65f538f0 a1=7fff65f530e0 a2=7fff65f54650 a3=7fff65f52ce0 items=0 ppid=7365 pid=7379 auid=500 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=1 comm="cups-deviced" exe="/usr/lib/cups/daemon/cups-deviced" subj=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
I used to fix this problem using the following command:
Code:
restorecon -R -v /usr/lib/cups/filter
But it seems that SELinux keeps Fing up a new problem on each new installation of Fedora.

WHY DOESN'T"T REDHAT/FEDORA Fix the Printing problems with SELINUX?

Last edited by skyxn3t; 17th December 2010 at 09:56 PM.
Reply With Quote
  #2  
Old 19th December 2010, 09:19 AM
CSchwangler Offline
Registered User
 
Join Date: Feb 2009
Posts: 2,535
linuxfirefox
Re: What does SELINUX got on CUPS/PRINTING? O_o

Did you notice this bug

https://bugzilla.redhat.com/show_bug.cgi?id=577890

and the suggested workaround?
Reply With Quote
  #3  
Old 19th December 2010, 09:50 AM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
linuxfedorafirefox
Re: What does SELINUX got on CUPS/PRINTING? O_o

The mfp file was moved (mv) from the user home directory to /usr/lib/cups/filter

When you move a file, its selinux attributes are moved with it.

That is how i can see that this file was moved from the user home space.

To avoid issues like this either:

restorecon the target of the moved file.

or:

use cp.

( but cp in this case would not have fixed this issue either i believe because the target would have inherited the type of the parent directory ( /usr/lib/cups/filter ) which is usr_t and i believe usr_t is not executable by cups.

So when you move or copy files around, then you *may* need to restore the context of the moved or copied file.
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/
Reply With Quote
  #4  
Old 3rd July 2012, 12:17 PM
goodricm Offline
Registered User
 
Join Date: Jul 2012
Location: Baldock
Posts: 2
linuxfirefox
Re: What does SELINUX got on CUPS/PRINTING? O_o

Can anyone advise how I turn off SELinux. I don't need it and it's half arsed attempt at implementing a security model is getting on my tits. I mean if I'd wanted this much hassle getting CUPS to work I would have installed Microsoft right?
Reply With Quote
  #5  
Old 3rd July 2012, 01:47 PM
Colors Offline
Registered User
 
Join Date: Dec 2011
Location: Urziceni, Romania
Posts: 103
linuxfirefox
Re: What does SELINUX got on CUPS/PRINTING? O_o

I had also headaches with SELinux and printing with Samsung ML2525W. You dont have to install the drivers from Samsung. Instead use Fedoras way (system-config-printer), select device AppSocket/HP JetDirect, complete with your printer IP (192.168....), port 9100, forward, pick Samsung from the list, Model 2550, driver Samsung ML-2550 Foomatic/ljet4 en, forward, apply. Print a test page.

I have selinux enabled, enforcing mode.
Reply With Quote
  #6  
Old 4th July 2012, 08:34 AM
goodricm Offline
Registered User
 
Join Date: Jul 2012
Location: Baldock
Posts: 2
linuxfirefox
Re: What does SELINUX got on CUPS/PRINTING? O_o

Thanks for the heads up Colors. I don't have time to try out the solution right now but will have a go tonight when I get home. I'll let you knw how I get on.

Regds,
Martin
Reply With Quote
Reply

Tags
cups or printing, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
5 second delay printing from cups vieltech Using Fedora 2 16th September 2010 03:47 PM
please help with a CUPS printing problem minn Using Fedora 1 5th January 2007 10:08 AM
Samba/Cups printing error caused by /etc/cups/mime.types rioguia Servers & Networking 1 19th June 2006 03:32 AM
printing over network (cups) shiny day Using Fedora 5 20th February 2005 04:23 PM


Current GMT-time: 13:06 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat