Skip to content

runc: fix broken build#15887

Open
xingyaner wants to merge 1 commit into
google:masterfrom
xingyaner:fix-runc
Open

runc: fix broken build#15887
xingyaner wants to merge 1 commit into
google:masterfrom
xingyaner:fix-runc

Conversation

@xingyaner

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown

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

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.

1 participant