Skip to content

Commit

Permalink
scripts/add-exports.sh: Do not export __put_seccomp_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Aug 28, 2024
1 parent 2368380 commit 2c1b850
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/add-exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c1b850

Please sign in to comment.