Bug 869335 - cupsd_config_t type needs setgid and setuid capabilities
Summary: cupsd_config_t type needs setgid and setuid capabilities
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 865815
TreeView+ depends on / blocked
 
Reported: 2012-10-23 15:38 UTC by Marek Kašík
Modified: 2015-11-05 11:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-20 02:58:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
AVC messages (2.31 KB, application/x-bzip)
2012-10-23 15:38 UTC, Marek Kašík
no flags Details

Description Marek Kašík 2012-10-23 15:38:47 UTC
Created attachment 632167 [details]
AVC messages

Description of problem:
I've backported a security fix of cups-pk-helper, which uses setgid and setuid (see #865815), into Fedora. Running updated cups-pk-helper with cupsd_config_t without setgid and setuid capabilities results in AVC denial.


Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-91.fc16.noarch
selinux-policy-3.10.0-156.fc17.noarch
selinux-policy-3.11.1-36.fc18.noarch
and rawhide as well

How reproducible:
Always


Steps to Reproduce:
1. install cups-pk-helper-0.1.3-4.fc16 or cups-pk-helper-0.2.2-2.fc17 or cups-pk-helper-0.2.4-1.fc18 or cups-pk-helper-0.2.4-1.fc19

2. run 'touch /tmp/cupsd.conf'

3. run 'gdbus call --system --dest org.opensuse.CupsPkHelper.Mechanism --object-path / --method org.opensuse.CupsPkHelper.Mechanism.FileGet "/admin/conf/cupsd.conf" "/tmp/cupsd.conf"'

  
Actual results:
AVC denial.


Expected results:
No AVC denial.


Additional info:
Let me know if you want to have separate bugs for all those Fedora versions.
I haven't pushed updates for the cups-pk-helper yet because of this. I'll push them right after this will be resolved.

Comment 1 Miroslav Grepl 2012-10-24 18:02:01 UTC
Fixed in selinux-policy-3.11.1-44.fc18.noarch

Comment 2 Marek Kašík 2012-10-31 15:30:23 UTC
Hi,

do you plan to backport this to F16, F17 and rawhide?

Regards

Marek

Comment 3 Miroslav Grepl 2012-11-06 09:34:53 UTC
Yes, added.

Comment 4 Fedora Update System 2012-11-13 18:31:11 UTC
selinux-policy-3.10.0-96.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-96.fc16

Comment 5 Fedora Update System 2012-11-15 02:43:33 UTC
Package selinux-policy-3.10.0-96.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-96.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18243/selinux-policy-3.10.0-96.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-11-20 02:58:56 UTC
selinux-policy-3.10.0-96.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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