]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: Use cli_execute_unparsed instead of loader.interpret
authorkevans <kevans@FreeBSD.org>
Wed, 7 Mar 2018 18:31:01 +0000 (18:31 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 7 Mar 2018 18:31:01 +0000 (18:31 +0000)
commit16be7de42b871841fe75d43e5b8bcb6e712e34d2
treefa4f4cdcaa38684bd29506a3aea8a5e96554d45c
parent5a97a280a3861a071ad9d01c2b42ac8a75b47360
lualoader: Use cli_execute_unparsed instead of loader.interpret

loader.interpret should not be used for executing loader commands from an
untrusted source (e.g. environment vars) as it will allow execution of
arbitrary Lua. Replace it with a call to the recently introduced
cli_execute_unparsed, which parses it out as a loader command and then
dispatches it as a loader command. This effectively filters out arbitrary
Lua.
stand/lua/menu.lua