diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 18:13:03 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 18:13:03 +0100 |
commit | 7352ec423fb99a7970b0765287503abee05a56cd (patch) | |
tree | 2673022d4099d587166a462dd00cddf25bbbfd75 | |
parent | d9ac7320c80a4629d678fbd905defa831094434c (diff) |
ubus: 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 <jow@openwrt.org>
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -679,7 +679,7 @@ static void uh_ubus_post_init(void) ubus_add_uloop(ctx); } -const struct uhttpd_plugin uhttpd_plugin = { +struct uhttpd_plugin uhttpd_plugin = { .init = uh_ubus_plugin_init, .post_init = uh_ubus_post_init, }; |