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

config-linux: Explicitly allow symlinks for providing devices #873

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

wking
Copy link
Contributor

@wking wking commented Jun 6, 2017

I'd rather address runtime compliance by breaking this down into explicit checks based on POSIX stat(3) calls. But with that approach rejected, mentioning symlinks here helps motivate runtime-tools' choice of os.Stat (which follows symlinks) vs. os.Lstat (which does not).

Spun off as a non-controversial portion of the rejected #829, as requested by @crosbymichael on 2017-06-01 (although that request didn't make it into the log).

I'd rather address runtime compliance by breaking this down into
explicit checks based on POSIX stat(3) calls.  But with that approach
rejected [1], mentioning symlinks here helps motivate runtime-tools'
choice of os.Stat [2,3] (which follows symlinks) vs. os.Lstat (which
does not [4]).

[1]: opencontainers#829 (comment)
[2]: https://github.com/opencontainers/runtime-tools/blob/f5c82b3918bdfc3ed4b594dcfab4d1554beaf992/cmd/runtimetest/main.go#L319
[3]: https://golang.org/pkg/os/#Stat
[4]: https://golang.org/pkg/os/#Lstat

Signed-off-by: W. Trevor King <wking@tremily.us>
@tianon
Copy link
Member

tianon commented Jun 21, 2017

LGTM

(although in my opinion, the existing wording already covers this case with "however it likes" and "etc.")

Approved with PullApprove

@mrunalp
Copy link
Contributor

mrunalp commented Jun 21, 2017

LGTM

Approved with PullApprove

@tianon tianon merged commit fd0b0b6 into opencontainers:master Jun 21, 2017
@wking wking deleted the symlinks-for-devices branch June 21, 2017 17:04
wking added a commit to wking/opencontainer-runtime-spec that referenced this pull request Jun 21, 2017
Through fd0b0b6 (Merge pull request opencontainers#873 from
wking/symlinks-for-devices, 2017-06-21).

Signed-off-by: W. Trevor King <wking@tremily.us>
@vbatts vbatts mentioned this pull request Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants