Bug 551773 - hp-pkservice should not be shipped
Summary: hp-pkservice should not be shipped
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 11
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:122a6d20681...
: 562670 577060 585830 (view as bug list)
Depends On:
Blocks: 552536
TreeView+ depends on / blocked
 
Reported: 2010-01-01 23:04 UTC by Edson Duarte
Modified: 2010-04-26 09:40 UTC (History)
7 users (show)

Fixed In Version: 3.9.8-28.fc12
Clone Of:
: 552536 (view as bug list)
Environment:
Last Closed: 2010-02-05 01:20:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Edson Duarte 2010-01-01 23:04:09 UTC
Summary:

SELinux is preventing /bin/env "execute" access on
/usr/share/hplip/pkservice.py.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by hp-pkservice. It is not expected that this
access is required by hp-pkservice 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:hplip_exec_t:s0
Target Objects                /usr/share/hplip/pkservice.py [ file ]
Source                        dbus-daemon-lau
Source Path                   /lib64/dbus-1/dbus-daemon-launch-helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.6-8.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-59.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.9-174.fc12.x86_64 #1 SMP Mon
                              Dec 21 05:33:33 UTC 2009 x86_64 x86_64
Alert Count                   9
First Seen                    Fri 01 Jan 2010 07:29:07 PM BRT
Last Seen                     Fri 01 Jan 2010 07:47:04 PM BRT
Local ID                      9155b2bb-f49c-4f33-b1eb-ae822d5736d2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1262386024.84:75): avc:  denied  { execute } for  pid=10495 comm="dbus-daemon-lau" name="pkservice.py" dev=sda2 ino=184285 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:hplip_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1262386024.84:75): avc:  denied  { read open } for  pid=10495 comm="dbus-daemon-lau" name="pkservice.py" dev=sda2 ino=184285 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:hplip_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1262386024.84:75): avc:  denied  { execute_no_trans } for  pid=10495 comm="dbus-daemon-lau" path="/usr/share/hplip/pkservice.py" dev=sda2 ino=184285 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:hplip_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1262386024.84:75): arch=c000003e syscall=59 success=yes exit=0 a0=e33880 a1=e336e0 a2=e32010 a3=16 items=0 ppid=10494 pid=10495 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="hp-pkservice" exe="/bin/env" subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-59.fc12,catchall,dbus-daemon-lau,system_dbusd_t,hplip_exec_t,file,execute
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-01-04 14:44:51 UTC
Tim, is this a transition problem.  Does dbus execute hp-pkservice directly or is this started by a different dbus service?

Comment 2 Daniel Walsh 2010-01-04 14:46:24 UTC
This looks like a dbus service did not transition to cupsd_t or cupds_config_t.

Comment 3 Tim Waugh 2010-01-05 12:28:21 UTC
It's some kind of PolicyKit mechanism from HPLIP for installing their proprietary plugin.  This is not something that was intended to be shipped in Fedora.  I'll remove it properly.

Comment 4 Tim Waugh 2010-01-05 12:48:34 UTC
Also affects Fedora 11.

Comment 5 Fedora Update System 2010-01-07 00:53:49 UTC
hplip-3.9.8-23.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12227

Comment 6 Fedora Update System 2010-01-07 00:54:06 UTC
hplip-3.9.8-26.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12253

Comment 7 Fedora Update System 2010-01-14 01:19:09 UTC
hplip-3.9.8-27.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12253

Comment 8 Fedora Update System 2010-01-14 01:23:54 UTC
hplip-3.9.8-24.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12227

Comment 9 Fedora Update System 2010-01-22 22:40:43 UTC
hplip-3.9.8-25.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12227

Comment 10 Fedora Update System 2010-01-22 22:42:40 UTC
hplip-3.9.8-28.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12253

Comment 11 Edson Duarte 2010-01-23 14:19:51 UTC
this is ok! now! thanks.

Comment 12 Fedora Update System 2010-02-05 01:20:41 UTC
hplip-3.9.8-25.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2010-02-05 01:32:43 UTC
hplip-3.9.8-28.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Daniel Walsh 2010-02-08 20:28:51 UTC
*** Bug 562670 has been marked as a duplicate of this bug. ***

Comment 15 Miroslav Grepl 2010-03-26 07:26:26 UTC
*** Bug 577060 has been marked as a duplicate of this bug. ***

Comment 16 Miroslav Grepl 2010-04-26 09:40:55 UTC
*** Bug 585830 has been marked as a duplicate of this bug. ***


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