Skip to content

feat: implement landlock - #638

Draft
C4illin wants to merge 5 commits into
mainfrom
feature/landlock
Draft

feat: implement landlock#638
C4illin wants to merge 5 commits into
mainfrom
feature/landlock

Conversation

@C4illin

@C4illin C4illin commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary by cubic

Runs every external converter through a per-job Landlock sandbox instead of invoking tools directly, limiting each process to its input, output, and temporary directories while blocking network access. Unsupported systems fall back to unsandboxed execution by default; SANDBOX_STRICT=true makes missing sandbox support fail conversions.

Bug Fixes

  • Download endpoint and archive generation now reject symlinked files.

Migration

  • The Docker image now builds and installs landlock-runner with gcc and enables strict mode.
  • Set SANDBOX_DISABLED=true to disable sandbox discovery or LANDLOCK_RUNNER_PATH to use a custom runner.
  • Sandboxed processes now use the job directory for TMPDIR, TEMP, TMP, and HOME.
  • Adds tests for runner discovery, strict-mode failures, environment propagation, and filesystem and network restrictions.

Written for commit b795d66. Summary will update on new commits.

Review in cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant