runc: fix broken build#15887
Open
xingyaner wants to merge 1 commit into
Open
Conversation
|
xingyaner is a new contributor to projects/runc. The PR must be approved by known contributors before it can be merged. The past contributors are: kyakdan, 0roman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the runc fuzzing integration to follow the current runc and opencontainers/cgroups package layout while preserving all existing fuzz targets.
The previous build relied on stale harnesses from cncf-fuzzing. Those harnesses still referenced APIs and source paths that no longer exist in current runc: stripRoot is now implemented as internal/pathrs.LexicallyStripRoot; the cgroup implementation, Resources, and the systemd manager are provided by github.com/opencontainers/cgroups; the former runc-local user package is now built from github.com/moby/sys/user; and NewIntelRdtTestUtil was removed when the Intel RDT tests were simplified to use the current package-level root setup. As a result, the build failed on undefined symbols and missing libcontainer/cgroups/* directories.
This change keeps the compatibility logic in OSS-Fuzz: it updates the legacy harness imports and calls, injects the cgroup harnesses into the vendored opencontainers/cgroups packages, adds a current Intel RDT harness using NewManager and the package-level root function, and retains go-fuzz-headers during vendor generation.