From: Jo-Philipp Wich Date: Sun, 25 Jan 2015 20:36:42 +0000 (+0100) Subject: lua: don't make uhttpd_plugin symbol constant X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=db79faae848e9ca5ed1c5b62cdd9d01650687fff lua: don't make uhttpd_plugin symbol constant uhttpd modifies the list_head member of the uhttpd_plugin struct when loading a plugin, therefore we cannot make it const, otherwise we trigger a security violation if uhttpd is built with RelRO support. Signed-off-by: Jo-Philipp Wich --- diff --git a/lua.c b/lua.c index f4a5743..2134904 100644 --- a/lua.c +++ b/lua.c @@ -295,6 +295,6 @@ static int lua_plugin_init(const struct uhttpd_ops *o, struct config *c) return 0; } -const struct uhttpd_plugin uhttpd_plugin = { +struct uhttpd_plugin uhttpd_plugin = { .init = lua_plugin_init, };