Bug 1200080 - docker.pp policy module for docker should be a part of docker package
Summary: docker.pp policy module for docker should be a part of docker package
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1200079
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-09 16:21 UTC by Lukas Vrabec
Modified: 2015-03-22 08:41 UTC (History)
19 users (show)

Fixed In Version:
Clone Of: 1200079
Environment:
Last Closed: 2015-03-22 08:41:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Vrabec 2015-03-09 16:21:21 UTC
+++ This bug was initially created as a clone of Bug #1200079 +++

Description of problem:

Currently, we ship docker.pp policy module with SELinux policy for docker. We would like to move this policy out of the base policy and docker.pp would be shipped by docker-selinux.rpm.

How to do it:

1. We need to ship a new version of selinux-policy pgks without shipping of docker.pp and docker policy files. The docker.pp module will stay in memory but this is not any issue.

2. docker-selinux needs to package source files from:
https://github.com/fedora-selinux/selinux-policy/blob/rawhide-contrib/docker.fc
https://github.com/fedora-selinux/selinux-policy/blob/rawhide-contrib/docker.if
https://github.com/fedora-selinux/selinux-policy/blob/rawhide-contrib/docker.te

and docker.pp.

We won't ship these source policy files for docker.pp

3. docker-selinux needs to have a conflict with the policy without docker.pp.

Comment 1 Daniel Walsh 2015-03-09 18:49:01 UTC
Lokesh we have to work with Lukas to get the docker.pp file to be controlled by the docker package not to be shipped as part of the upstream selinux-policy package.

I will also help with this.

Comment 2 Lokesh Mandvekar 2015-03-09 18:50:30 UTC
Dan, yup, Lukas already sent me this rpm which I'll add as a subpackage to docker. Btw, my guess is this should be going into RHEL as well. WDYT?

Comment 3 Daniel Walsh 2015-03-09 19:04:41 UTC
Yes, it will give us greater flexibility.

Comment 4 Lukas Vrabec 2015-03-10 09:23:12 UTC
Great, 
When Lokesh add subpackage, we must be first with new selinux-policy package build without docker module due to prevent conflicts, so please let me know when to make new build without docker module. 

Thanks.

Comment 5 Lokesh Mandvekar 2015-03-22 08:41:36 UTC
release 21 takes care of this


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