Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Update selinux support #839

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

glevand
Copy link
Contributor

@glevand glevand commented Mar 29, 2018

Test fixups for SELinux policy update.
Related to coreos/coreos-overlay#3155 (Update selinux support), coreos/portage-stable#654 (Update selinux support)

@glevand glevand force-pushed the for-merge-selinux branch from 5b4ca09 to 54a9356 Compare April 3, 2018 21:39
@glevand glevand force-pushed the for-merge-selinux branch from 54a9356 to 4a8f6db Compare April 20, 2018 18:51
@glevand
Copy link
Contributor Author

glevand commented Apr 20, 2018

Rebased to latest.

glevand added 5 commits May 29, 2018 11:29
With the current SELinux policy the core user does not have
rights to execute RestartUnit.  Set SELinux to permisive mode
so this test can run.

Fixes runtime errors like these:

  kolet: RestartUnit failed: Error: Timeout was reached

Signed-off-by: Geoff Levand <[email protected]>
With the current SELinux policy the docker daemon does not have
access to the '/root' directory.  Set SELinux to permisive mode
so this test can run.

Fixes runtime errors like these:

  Error response from daemon: OCI runtime create failed: "mkdir /var/lib/docker/overlay2/.../merged/root: permission denied

Signed-off-by: Geoff Levand <[email protected]>
A docker bug causes the docker daemon to fail in creating a container
when the '--userns-remap' option is used and SELinux is enforcing.
Set SELinux to permisive mode so this test can run.
See: opencontainers/runc#1562 (nsenter:
improve namespace creation and SELinux IPC handling).

Fixes runtime errors like these:

  OCI runtime create failed: running exec setns process for init caused exit

Signed-off-by: Geoff Levand <[email protected]>
Ensure that when SELinux is enforcing the docker daemon cannot create
container instances with  mounts to restricted directories.

Signed-off-by: Geoff Levand <[email protected]>
Checks that no audit AVC messages appear in boot logs.

Signed-off-by: Geoff Levand <[email protected]>
@glevand glevand force-pushed the for-merge-selinux branch from 4a8f6db to b973854 Compare May 29, 2018 18:29
@glevand
Copy link
Contributor Author

glevand commented May 29, 2018

Rebased to latest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant