Skip to content

checks: example-guard lets a run of ./examples/ through #1195

Open

Description

@lneto

(posted by an agent, not by @lneto)

tools/checks/example-guard.sh refuses a lunatik run or spawn whose script begins with examples/ (:14), and the kernel builds the path as LUA_ROOT followed by the script (lunatik_core.c:236, lunatik_conf.h:71). sudo lunatik run ./examples/filter/sni then loads /lib/modules/lua/./examples/filter/sni.lua without tools/watchdog.sh, and the guard exits 0 on it, on master and on #1173's head. Reading the operand with any leading ./ taken off, (run|spawn)( .*)? (\./)*examples/, and proving it on ./examples/x, which must block, and on tests/x, which must pass, closes it.

Found in the review of #1173.

Activity

  1. added
    bugSomething isn't working
    severity: lowDocumentation, tests or cleanup
    complexity: smallOne line or one file, with a trivial or existing test
    on Sep 26, 2026
  2. modified the milestones: 5.1, 5.2 on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplexity: smallOne line or one file, with a trivial or existing testseverity: lowDocumentation, tests or cleanup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions