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

security_context: do not rely on /etc/hosts #164

Merged
merged 1 commit into from
Oct 20, 2017

Conversation

runcom
Copy link
Contributor

@runcom runcom commented Oct 19, 2017

It depends on runtime and CNI plugin used when testing. This patch uses
/etc/passwd which should be always available instead.

@feiskyer @Random-Liu @mrunalp @sameo PTAL

Signed-off-by: Antonio Murdaca runcom@redhat.com

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 19, 2017
@mrunalp
Copy link
Member

mrunalp commented Oct 19, 2017

👍

@rhatdan
Copy link

rhatdan commented Oct 19, 2017

You really should rely on /, which is the only thing guaranteed to be in the container. :^)

It depends on runtime and CNI plugin used when testing. This patch uses
/etc/passwd which should be always available instead.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
@runcom
Copy link
Contributor Author

runcom commented Oct 19, 2017

You really should rely on /, which is the only thing guaranteed to be in the container. :^)

changed to / - thanks Dan

@sameo
Copy link

sameo commented Oct 19, 2017

lgtm

@feiskyer
Copy link
Member

@runcom LGTM. Thanks for the fix.

@feiskyer feiskyer added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 20, 2017
@feiskyer feiskyer merged commit c068775 into kubernetes-sigs:master Oct 20, 2017
@runcom runcom deleted the no-net branch October 20, 2017 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants