RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 989473 - Need policy for OpenLMI-PowerManagement
Summary: Need policy for OpenLMI-PowerManagement
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 989472
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-29 10:38 UTC by Radek Novacek
Modified: 2016-12-01 00:31 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-68.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 989472
Environment:
Last Closed: 2014-06-13 09:46:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Radek Novacek 2013-07-29 10:38:27 UTC
+++ This bug was initially created as a clone of Bug #989472 +++

OpenLMI-PowerManagement provider needs a policy. This is similar request as bz979037 and bz983422 and bz987951.

PowerManagement provider uses D-Bus to talk to the upower D-Bus service.

Audit messages are attached.

Result of `ausearch -m avc -ts 12:16 | audit2allow`:
#============= pegasus_openlmi_powermanagement_t ==============
allow pegasus_openlmi_powermanagement_t passwd_file_t:file { read getattr open };
allow pegasus_openlmi_powermanagement_t pegasus_data_t:dir write;
allow pegasus_openlmi_powermanagement_t self:capability { setuid setgid };
allow pegasus_openlmi_powermanagement_t self:netlink_route_socket { bind create getattr nlmsg_read };
allow pegasus_openlmi_powermanagement_t self:udp_socket { create connect getattr };
allow pegasus_openlmi_powermanagement_t system_dbusd_t:unix_stream_socket connectto;
allow pegasus_openlmi_powermanagement_t system_dbusd_var_run_t:dir search;
allow pegasus_openlmi_powermanagement_t system_dbusd_var_run_t:sock_file write;

Comment 2 Miroslav Grepl 2013-07-29 12:29:13 UTC
Should be probably covered by 

pegasus_openlmi_system_t

I am just thinking how to do it. We have

pegasus_openlmi_domain_template(account)
pegasus_openlmi_domain_template(logicalfile)
pegasus_openlmi_domain_template(networking)
pegasus_openlmi_domain_template(service)
pegasus_openlmi_domain_template(storage)
pegasus_openlmi_domain_template(system)
pegasus_openlmi_domain_template(unconfined)


I think I should merge "networking" to "system" and "service" should be probably "admin". We can not add a new type for each provider.

Comment 3 Miroslav Grepl 2013-07-30 12:51:57 UTC
Ok, I added fixes to F19, will back port.

Comment 6 Ludek Smid 2014-06-13 09:46:35 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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