Bug 794517 - SELinux is preventing /usr/lib/cups/daemon/cups-driverd from 'open' accesses on the None /usr/share/cups/model/samsung/cms/CLX-6220sc.cts.
Summary: SELinux is preventing /usr/lib/cups/daemon/cups-driverd from 'open' accesses ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5863449ea14f56f6d2b6077ee9f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-17 01:34 UTC by alfredo_sulb2b@yahoo.com.br
Modified: 2012-03-15 17:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 17:11:07 UTC
Type: ---


Attachments (Terms of Use)

Description alfredo_sulb2b@yahoo.com.br 2012-02-17 01:34:31 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.5-3.fc16.i686
reason:         SELinux is preventing /usr/lib/cups/daemon/cups-driverd from 'open' accesses on the None /usr/share/cups/model/samsung/cms/CLX-6220sc.cts.
time:           Qui 16 Fev 2012 23:34:07 BRST

description:
:SELinux is preventing /usr/lib/cups/daemon/cups-driverd from 'open' accesses on the None /usr/share/cups/model/samsung/cms/CLX-6220sc.cts.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that cups-driverd should be allowed open access on the CLX-6220sc.cts <Desconhecido> by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep cups-driverd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /usr/share/cups/model/samsung/cms/CLX-6220sc.cts [
:                              None ]
:Source                        cups-driverd
:Source Path                   /usr/lib/cups/daemon/cups-driverd
:Port                          <Desconhecido>
:Host                          (removed)
:Source RPM Packages           cups-1.5.0-22.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.5-3.fc16.i686 #1
:                              SMP Thu Feb 9 02:24:08 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Qua 15 Fev 2012 17:59:46 BRST
:Last Seen                     Qua 15 Fev 2012 17:59:46 BRST
:Local ID                      b4b917a7-75f0-4331-8864-28d4106edd85
:
:Raw Audit Messages
:type=AVC msg=audit(1329335986.987:393): avc:  denied  { open } for  pid=4127 comm="cups-driverd" name="CLX-6220sc.cts" dev=sda4 ino=680895 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1329335986.987:393): arch=40000003 syscall=5 success=no exit=-13 a0=bf8bb15c a1=8000 a2=0 a3=538819 items=0 ppid=780 pid=4127 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="cups-driverd" exe="/usr/lib/cups/daemon/cups-driverd" subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: cups-driverd,cupsd_t,user_home_t,None,open
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-17 14:44:19 UTC
restorecon -R -v /usr/share/cups

Looks like the install of the samsung product is broken.  In that it is installing with the wrong SELinux labels.

Comment 2 alfredo_sulb2b@yahoo.com.br 2012-02-18 00:53:11 UTC
(In reply to comment #1)
> restorecon -R -v /usr/share/cups
> 
> Looks like the install of the samsung product is broken.  In that it is
> installing with the wrong SELinux labels.

Dear, 
I'm writing: restorecon -R -v /usr/share/cups  in The Terminal, but the error repeat.

How made instalations samsung drive?
Exist an archive call: istall.sh
I did run the Nautilus with root, and execute install.sh
Is this operation correct or exist other command more correct?

Thank for your help.
Alfredo

Comment 3 Miroslav Grepl 2012-02-20 15:47:52 UTC
Alfredo,
what does 

$ matchpathcon /usr/share/cups/model/samsung/cms/CLX-6220sc.cts

Comment 4 Miroslav Grepl 2012-03-15 17:11:07 UTC
I believe we solved your issues. If I am wrong, please reopen the bug. Thank you.


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