Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELinux policy interfering with kaniko #981

Closed
bcressey opened this issue Jul 10, 2020 · 0 comments · Fixed by #983
Closed

SELinux policy interfering with kaniko #981

bcressey opened this issue Jul 10, 2020 · 0 comments · Fixed by #983
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@bcressey
Copy link
Contributor

What I expected to happen:
Kaniko should be able to run.

What actually happened:
Kaniko fails with a "permission denied" error.

How to reproduce the problem:

$ kubectl run -it --image gcr.io/kaniko-project/executor:debug-v0.19.0 test --restart Never --rm --command /busybox/sh
standard_init_linux.go:211: exec user process caused "permission denied"
pod "test" deleted
pod default/test terminated (Error)

A denial is logged for the entrypoint action.

[ 2665.498681] audit: type=1400 audit(1594349602.727:3): avc:  denied  { entrypoint } for  pid=54919 comm="runc:[2:INIT]" path="/busybox/busybox" dev="nvme1n1p1" ino=1062349 scontext=system_u:system_r:container_t:s0 tcontext=system_u:object_r:cache_t:s0 tclass=file permissive=0
@bcressey bcressey self-assigned this Jul 10, 2020
@bcressey bcressey added the type/bug Something isn't working label Jul 10, 2020
@bcressey bcressey added this to the v0.4.1 milestone Jul 10, 2020
@bcressey bcressey linked a pull request Jul 10, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant