Bug 442603 - cups-pdf generates SELinux error
cups-pdf generates SELinux error
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-15 15:15 EDT by Paul W. Frields
Modified: 2008-04-15 15:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-15 15:48:57 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 Paul W. Frields 2008-04-15 15:15:36 EDT
Packages:
  selinux-policy-targeted-3.3.1-33.fc9.noarch
  cups-pdf-2.4.7-1.fc9.x86_64

Summary:

SELinux is preventing cups-pdf (cups_pdf_t) "write" to ./cups (cupsd_log_t).

Detailed Description:

SELinux denied access requested by cups-pdf. It is not expected that this access
is required by cups-pdf 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:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for ./cups,

restorecon -v './cups'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:cups_pdf_t:s0-s0:c0.c1023
Target Context                system_u:object_r:cupsd_log_t:s0
Target Objects                ./cups [ dir ]
Source                        cups-pdf
Source Path                   /usr/lib/cups/backend/cups-pdf
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           cups-pdf-2.4.7-1.fc9
Target RPM Packages           
Policy RPM                    selinux-policy-3.3.1-33.fc9
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain
                              2.6.25-0.218.rc8.git7.fc9.x86_64 #1 SMP Wed Apr 9
                              19:55:19 EDT 2008 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 15 Apr 2008 03:09:55 PM EDT
Last Seen                     Tue 15 Apr 2008 03:09:55 PM EDT
Local ID                      ddf5d8b6-9642-400a-90ea-3831d0e206a0
Line Numbers                  

Raw Audit Messages            

host=localhost.localdomain type=AVC msg=audit(1208286595.197:24): avc:  denied 
{ write } for  pid=5310 comm="cups-pdf" name="cups" dev=dm-1 ino=360473
scontext=system_u:system_r:cups_pdf_t:s0-s0:c0.c1023
tcontext=system_u:object_r:cupsd_log_t:s0 tclass=dir

host=localhost.localdomain type=SYSCALL msg=audit(1208286595.197:24):
arch=c000003e syscall=2 success=no exit=-13 a0=7fff9fa50720 a1=441 a2=1b6
a3=7f1397a386f0 items=0 ppid=2545 pid=5310 auid=4294967295 uid=0 gid=7 euid=0
suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="cups-pdf"
exe="/usr/lib/cups/backend/cups-pdf"
subj=system_u:system_r:cups_pdf_t:s0-s0:c0.c1023 key=(null)
Comment 1 Daniel Walsh 2008-04-15 15:48:57 EDT
Fixed in selinux-policy-3.3.1-36.fc9

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