LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2009, 04:17 AM   #1
ls_010_angel
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Unhappy problem on installing printer


I just upgrade to Fedora 11.

I have problem in installing the printer, no matter add printer in local network or Windows Printer via Samba.

The summary is as follow:

SummarySELinux is preventing gs (cupsd_t) "execstack" cupsd_t.

Detailed DescriptionSE
Linux denied access requested by gs. It is not expected that this access is required by gs 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 Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended. Please file a bug report against this package.

Additional Information
Source Context:**system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context:**system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Objects:**None [ process ]
Source:**gs
Source Path:**/usr/bin/gs
Port:**<Unknown>
Host:**benq.localhost.localdomain
Source RPM Packages:**ghostscript-8.64-6.fc11T
arget RPM Packages:**
Policy RPM:**selinux-policy-3.6.12-86.fc11
Selinux Enabled:**True
Policy Type:**targeted
MLS Enabled:**True
Enforcing Mode:**Enforcing
Plugin Name:**catchall
Host Name:**benq.localhost.localdomain
Platform:**Linux benq.localhost.localdomain 2.6.30.9-96.fc11.i686.PAE #1 SMP Tue Nov 3 23:41:33 EST 2009 i686 athlon
Alert Count:**18
First Seen:**2009年11月09日 星期一 18:33:56
Last Seen:**2009年11月13日 星期五 08:10:29Local ID:**8d9e9ff3-bc63-4979-830b-9c662f099074
Line Numbers:**

Raw Audit Messages :

node=benq.localhost.localdomain type=AVC msg=audit(1258071029.983:30): avc: denied { execstack } for pid=2244 comm="gs" scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tclass=process

node=benq.localhost.localdomain type=SYSCALL msg=audit(1258071029.983:30): arch=40000003 syscall=125 per=400000 success=no exit=-13 a0=bfd3a000 a1=1000 a2=1000007 a3=bfd38f40 items=0 ppid=2242 pid=2244 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="gs" exe="/usr/bin/gs" subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

I have download a printer driver and had installed but got error when I tried to printer a test page.

Please help me.

Thanks a lot.
 
Old 11-23-2009, 04:24 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Ok can you disable the SELinux and see?
 
Old 11-23-2009, 04:26 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and welcome to LinuxQuestions,

The solution is in the error you get
Quote:
Allowing Access
You can generate a local policy module to allow this access - see FAQ Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended. Please file a bug report against this package.
Create local policy to allow it (SELinux FAQ) or disable SELinux.
More about SELinux

Kind regards,

Eric
 
Old 11-23-2009, 04:33 AM   #4
ls_010_angel
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
Ok can you disable the SELinux and see?

Thanks for your reply.

You mean set "system default enforcing mode" to Disable ?
 
Old 11-23-2009, 04:35 AM   #5
ls_010_angel
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hello and welcome to LinuxQuestions,

The solution is in the error you get


Create local policy to allow it (SELinux FAQ) or disable SELinux.
More about SELinux

Kind regards,

Eric

Hi, thanks for your reply.

However, I have no idea how to "generate a local policy module to allow this access".

Could you please teach me how to do it?

Thanks.
 
Old 11-23-2009, 04:37 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Yes. You can do that through editing the file /etc/selinux/config. Edit the file and change the option

SELINUX=disabled.

Else you can also change it using system-config-selinux
 
Old 11-23-2009, 04:45 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by linuxlover.chaitanya View Post
Yes. You can do that through editing the file /etc/selinux/config. Edit the file and change the option

SELINUX=disabled.

Else you can also change it using system-config-selinux
Hello,

This is for disabling SELinux entirely. If you just want to create a local policy have a look at this link: SELinux.

Kind regards,

Eric
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing HP 2200 Printer ltcolfury SUSE / openSUSE 2 04-02-2006 06:25 PM
problem installing Lexmark printer on ubuntu Ay-Karamba! Linux - Hardware 2 09-02-2005 05:51 AM
Problem installing a printer. aje Slackware 7 11-21-2004 08:43 PM
Problem installing printer in Mandrake 9.1 AnandKM Linux - Software 5 09-18-2003 08:54 AM
Problem installing printer in Mandrake 9.1 AnandKM Mandriva 1 09-16-2003 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration