Skip to content

fix(seccomp): remove trailing colon in readlink policy to allow readlink calls #4739

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nan-zellic
Copy link
Contributor

In fd_batch_tile.seccomppolicy, the readlink: entry is incorrectly configured with a trailing colon and no follow-up expression. This causes generate_filters.py to treat the line as having an empty expression, ultimately denying readlink system calls rather than allowing them.

# Original (incorrect)
readlink:

# Correct (remove or properly define the policy)
readlink
# or
readlink: (conditional expressions if needed)

As a result, any function—such as produce_snapshot—that relies on readlink("/proc/self/fd/...") will fail, causing the snapshot process to abort with a “Failed to readlink the snapshot file” error.

@nan-zellic
Copy link
Contributor Author

Closes #4738

@mmcgee-jump
Copy link
Contributor

Thank you for the contribution! Nice find!

@mmcgee-jump mmcgee-jump enabled auto-merge April 8, 2025 17:09
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.

2 participants