Bug 1232892 - Merge Ipxe tripleo selinux policy into openstack-selinux
Summary: Merge Ipxe tripleo selinux policy into openstack-selinux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-selinux
Version: Director
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ga
: 7.0 (Kilo)
Assignee: Ryan Hallisey
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-17 18:32 UTC by Ryan Hallisey
Modified: 2023-02-22 23:02 UTC (History)
7 users (show)

Fixed In Version: openstack-selinux-0.6.34-1.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-05 13:27:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:1548 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 17:07:06 UTC

Description Ryan Hallisey 2015-06-17 18:32:59 UTC
Merge tripleo selinux element into openstack-selinux

module ironic-ipxe 1.0;
require {
type httpd_t;
type tftpdir_t;
class file { read getattr open };
}
#============= httpd_t ==============
allow httpd_t tftpdir_t:file { read getattr open };

Comment 3 Ryan Hallisey 2015-06-18 15:19:51 UTC
Additional policy needed for openstack-selinux so that we can remove tripleo selinux.  All set to build just need acks.

Comment 4 Ryan Hallisey 2015-06-23 14:54:00 UTC
whoops.  Ignore the blocker flag reset.

Comment 7 Omri Hochman 2015-07-22 19:42:37 UTC
Verified openstack-selinux-0.6.37-1.el7ost.noarch : 

According to comment #6
Added selinux to "exclude-element : 

    "exclude-element": [
      "pip-and-virtualenv",
      "ironic",
      "os-collect-config",
      "selinux",
      "openstack-clients"
    ],

(1) successful deployment of undercloud: 
#############################################################################
instack-install-undercloud complete.

(2) successful deployment of overcloud :
DEBUG: os_cloud_config.utils.clients Creating nova client.
Overcloud Endpoint: http://10.19.184.50:5000/v2.0/
Overcloud Deployed
DEBUG: openstackclient.shell clean_up DeployOvercloud

Comment 8 Ryan Hallisey 2015-07-23 19:39:59 UTC
    "exclude-element": [
      "pip-and-virtualenv",
      "ironic",
      "os-collect-config",
      "selinux",
      "ipxe",
      "openstack-clients"
    ],

This is actually still applying the ipxe rule.  You need to exclude the two elements linked below.  I think the above will do it.

https://github.com/rdo-management/instack-undercloud/tree/master/elements/ipxe/selinux

https://github.com/rdo-management/instack-undercloud/blob/master/elements/ipxe/os-refresh-config/configure.d/00-apply-selinux-policy

Comment 9 Omri Hochman 2015-07-28 19:43:27 UTC
Following the instructions on Comment #8 , probably caused to following side effect :

1) this file was missing /tftpboot/undionly.kpxe
2) the http wasn't running on port 8088

we need to find another way to verify..

Comment 11 errata-xmlrpc 2015-08-05 13:27:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548


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