GoogleContainerTools / GoogleContainerTools/container-structure-test

dynamic linkage checks

Open
#258 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Go
Stars
2.5k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

It would be great to be able to check linkage.
It's currently possible with `commandTests`, but only if `ldd` is present (often not the case for minimal images) and it requires matching the output, which can be tricky to actually implement.

Example:

```YAML
elfBinaryTests:
- name: "bash is dynamically linked"
path: "/bin/bash"
noMissingLibs: true
libraries:
- "linux-vdso.so.1"
- "libtinfo.so.6"
- "libdl.so.*"
- "libc.so.6"
- "ld-linux-*.so.*"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.