{"record":{"id":"a5bc546dc6b5b8a8","repo":"deepseek-ai/deepseek-harness","slug":"125","errorCode":"125","errorMessage":"landlock-run: %s","messagePattern":"landlock-run: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"native/landlock-run/packages/entry/src/main.c","lineNumber":120,"sourceCode":"#define __NR_landlock_create_ruleset 444\n#define __NR_landlock_add_rule 445\n#define __NR_landlock_restrict_self 446\n#endif\n\n/*\n * Every fatal launcher error prints `landlock-run: <message>` to stderr\n * and exits 125 — a code the wrapped command itself is unlikely to use, so\n * the executor can tell launcher failures from command failures.\n */\n#define EXIT_LAUNCHER_FAILURE 125\n\nstatic const char NOT_ENFORCED_MESSAGE[] =\n  \"landlock is not enforced by this kernel (ABI unsupported or disabled)\";\n\n/* Print one fatal `landlock-run: ...` line; returns the fatal exit code. */\nstatic int fail(const char *prefix, const char *detail) {\n  if (detail == NULL) {\n    fprintf(stderr, \"landlock-run: %s\\n\", prefix);\n  } else {\n    fprintf(stderr, \"landlock-run: %s: %s\\n\", prefix, detail);\n  }\n  return EXIT_LAUNCHER_FAILURE;\n}\n\nstatic int fail_usage(const char *message, const char *detail) {\n  fprintf(stderr, \"landlock-run: usage error: %s%s\\n\", message, detail == NULL ? \"\" : detail);\n  return EXIT_LAUNCHER_FAILURE;\n}\n\n/* Parsed CLI: either a probe, or grants plus the command argv after `--`. */\nstruct cli {\n  int probe;\n  const char **ro;\n  size_t ro_count;\n  const char **rw;\n  size_t rw_count;","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/native/landlock-run/packages/entry/src/main.c#L102-L138","documentation":"Error \"landlock-run: %s\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at native/landlock-run/packages/entry/src/main.c:120 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the logged landlock-run message; check kernel Landlock support and the sandbox profile, then retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}