diff --git a/scripts/add-exports.sh b/scripts/add-exports.sh index f2cca3bc..6b7056e0 100644 --- a/scripts/add-exports.sh +++ b/scripts/add-exports.sh @@ -5,6 +5,4 @@ cd "$KDIR" # Add critical exports to prevent them from being optimized-out echo "EXPORT_SYMBOL(change_page_attr_set_clr);" >> arch/x86/mm/pat/set_memory.c echo "EXPORT_SYMBOL(lookup_fast);" >> fs/namei.c -# keep symbol export inside the ifdef block defining the symbol -sed -i '/static void __seccomp_filter_release.*/iEXPORT_SYMBOL(__put_seccomp_filter);\n' kernel/seccomp.c echo "EXPORT_SYMBOL(do_seccomp);" >> kernel/seccomp.c