Bug 983422 - Need policy for OpenLMI-Software
Summary: Need policy for OpenLMI-Software
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 19
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-11 07:56 UTC by Michal Minar
Modified: 2013-08-04 23:00 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.12.1-69.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-04 23:00:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of ausearch -m avc -ts recent (99.24 KB, text/x-log)
2013-07-11 07:56 UTC, Michal Minar
no flags Details

Description Michal Minar 2013-07-11 07:56:58 UTC
Created attachment 772062 [details]
output of ausearch -m avc -ts recent

OpenLMI-Software provider needs a policy. This is similar request as bz979037. The provider should be allowed to manipulate with software rpm packages. Remove them, install them, updated them etc. It uses yum APIs and rpmlib from python and should be allowed to do anything, that yum is allowed.

As instructed, I created dummy policy and put it into kernel:

$ cat >mypol.te 
policy_module(mypol,1.0)
pegasus_openlmi_domain_template(pycmpiLMI_Software)
^D
$ make -f /usr/share/selinux/devel/Makefile mypol.pp
$ semodule -i mypol.pp


$ chcon -t pegasus_openlmi_pycmpiLMI_Software_t /usr/libexec/pegasus/pycmpiLMI_Software-cimprovagt
(that's the provider executable)

Audit messages from my test suite are attached.

Comment 1 Miroslav Grepl 2013-07-26 08:19:11 UTC
I am thinking try to label it as rpm_exec_t. Could you add to your local policy

require{
 type pegasus_t;
}

rpm_domtrans(pegasus_t)


and run

$ make -f /usr/share/selinux/devel/Makefile mypol.pp
$ semodule -i mypol.pp
$ chcon -t rpm_exec_t /usr/libexec/pegasus/pycmpiLMI_Software-cimprovagt

and re-test it.

Thank you.

Comment 2 Michal Minar 2013-07-29 11:44:37 UTC
Thank you Mirek.

All passed :-), no AVCs.

Comment 3 Fedora Update System 2013-08-02 13:30:07 UTC
selinux-policy-3.12.1-69.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-69.fc19

Comment 4 Fedora Update System 2013-08-02 21:55:19 UTC
Package selinux-policy-3.12.1-69.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-69.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14089/selinux-policy-3.12.1-69.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-08-04 23:00:33 UTC
selinux-policy-3.12.1-69.fc19 has been pushed to the Fedora 19 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.