Commit 04187ec
committed
config-linux: Explicitly allow symlinks for providing devices
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 <[email protected]>1 parent e95b4f8 commit 04187ec
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments