Files
nethack/include
nhkeni 6bd2172ba7 Lua sandbox
This is enough to prevent abuse by denying access to functions and
    denial of service (RAM and instruction step limits), but not enough
    to allow restricted use of things that require finer control (e.g.
    filesystem access).

    If something goes wrong, the whole thing can be turned off, for
    now, in config.h (see NHL_SANDBOX).

    None of the current functionality requires changes to build systems;
    some of the possible future functionality may require some #defines
    - TBD.  There is lots of dead code (#ifdef notyet) for bits of that
    additional functionality; we can rip it out if we don't want those
    additions or we can complete (parts of) it depending on our needs.

    All current uses of Lua are connected to sandboxes and guarded with
    nhl_pcall (sandbox and lua_pcall wrapper); options and limits can
    be set at the callsites in the passed nhl_sandbox_info.  Some of
    the error handling may be wrong - panic() vs.  impossible() vs
    silence.

    Memory and instruction step limits should be tuned prior to release;
    there's no point tuning them now.
2022-04-29 19:46:33 -04:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2021-02-07 22:25:25 -06:00
2020-10-14 09:25:45 -07:00
2022-01-29 11:13:01 -08:00
2022-04-29 19:46:33 -04:00
2022-03-04 13:07:14 -08:00
2022-04-29 12:44:26 -07:00
2022-04-27 11:22:12 -07:00
2022-04-27 15:43:18 -07:00
2021-01-26 21:06:16 -05:00
2022-04-29 19:46:33 -04:00
2022-04-29 19:46:33 -04:00
2022-04-27 11:22:12 -07:00
2022-03-11 07:33:28 -05:00
2021-01-20 22:18:34 -06:00
2021-12-26 00:16:55 -08:00
2020-12-04 09:30:21 +02:00
2022-02-16 23:04:02 +02:00
2022-03-18 10:19:04 +02:00
2022-03-26 11:23:06 -07:00
2022-02-02 05:26:03 -08:00
2022-01-28 08:30:08 +02:00
2022-04-06 12:08:58 -07:00
2021-12-19 19:31:19 -08:00
2022-04-27 15:43:18 -07:00
2022-03-09 07:06:37 -08:00
2022-04-27 11:22:12 -07:00
2022-03-02 13:09:42 -08:00
2022-02-01 13:03:41 -05:00
2020-08-12 16:15:28 -07:00
2022-03-15 13:46:56 +02:00
2022-04-27 11:22:12 -07:00
2021-10-21 08:48:23 -04:00
2022-03-16 21:27:06 -04:00
2021-12-20 08:16:13 -08:00
2021-09-20 09:32:40 -04:00
2022-01-29 16:28:06 -05:00
2021-01-26 10:27:51 -05:00
2022-04-27 11:04:12 -07:00
2022-01-11 10:25:50 -08:00