Bug 1547197 - selinux prevents dibbler-client from starting when using dibbler in neutron
Summary: selinux prevents dibbler-client from starting when using dibbler in neutron
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-selinux
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z8
: 10.0 (Newton)
Assignee: Lon Hohberger
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-20 17:24 UTC by David Hill
Modified: 2022-08-16 11:18 UTC (History)
5 users (show)

Fixed In Version: openstack-selinux-0.8.14-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-17 15:49:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-4857 0 None None None 2022-08-16 11:18:11 UTC
Red Hat Product Errata RHBA-2018:1596 0 None None None 2018-05-17 15:50:40 UTC

Description David Hill 2018-02-20 17:24:24 UTC
Description of problem:
selinux prevents dibbler-client from starting when using dibbler in neutron

type=AVC msg=audit(1519144859.347:11041): avc:  denied  { setpgid } for  pid=844370 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519144919.345:11090): avc:  denied  { setpgid } for  pid=848028 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519144979.346:11151): avc:  denied  { setpgid } for  pid=852082 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519145039.350:11204): avc:  denied  { setpgid } for  pid=855913 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Mike Burns 2018-02-28 18:53:46 UTC
Do we have any testing of dibbler client that would catch this in the future?

Comment 2 Mike Burns 2018-02-28 18:55:52 UTC
David -- if you have a full audit.log available, that may help.  We might be able to solve without it, but if you have it available can you attach it?

Comment 3 David Hill 2018-02-28 19:24:29 UTC
Here are the logs:

type=AVC msg=audit(1519145039.350:11204): avc:  denied  { setpgid } for  pid=855913 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519145099.348:11261): avc:  denied  { setpgid } for  pid=859738 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519145159.356:11362): avc:  denied  { setpgid } for  pid=864221 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process
type=AVC msg=audit(1519145219.357:11671): avc:  denied  { setpgid } for  pid=868604 comm="dibbler-client" scontext=system_u:system_r:neutron_t:s0 tcontext=system_u:system_r:neutron_t:s0 tclass=process

Comment 4 Assaf Muller 2018-03-06 19:48:40 UTC
There is no Neutron IPv6 prefix delegation testing at all, upstream or downstream. It's challenging because you need an upstream router to serve prefixes, however it should be possible to simulate one using something similar to a container using dibbler-server (using Neutron's "fullstack" testing infrastructure") or a Tempest test that would spawn a VM with a custom image that has a dhcp v6 server installed, but that requires special job configuration. We've never prioritized automating testing IPv6 with PD because of its relative niche factor and the complexity of its testing.

Comment 13 Lon Hohberger 2018-05-10 18:17:20 UTC
0.8.14-1 has /usr/share/openstack-selinux/0.8.14/tests/bz1547197; and all regression tests based on AVCs passed.

Comment 16 errata-xmlrpc 2018-05-17 15:49:28 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/RHBA-2018:1596


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