NETFILTER: Make sure xt_policy.h is unifdef'ed.
PATCH 1/1 NETFILTER: Make sure xt_policy.h is unifdef'ed.
Since the header file xt_policy.h tests __KERNEL__, it should be unifdef'ed before exporting to userspace.
Signed-off-by Robert P. J. Day <[email protected]>
---
include/linux/netfilter/Kbuild +1 -1
@@ -30,7 +30,6 @@ header-y += xt_mark.h header-y += xt_multiport.h header-y += xt_owner.h header-y += xt_pkttype.h -header-y += xt_policy.h header-y += xt_rateest.h header-y += xt_realm.h header-y += xt_sctp.h
@@ -47,3 +46,4 @@ unifdef-y += nfnetlink.h unifdef-y += nfnetlink_compat.h unifdef-y += x_tables.h unifdef-y += xt_physdev.h +unifdef-y += xt_policy.h
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Patrick McHardy
AppliedQuoted 2 lines · Robert P. J. Day
Since the header file
xt_policy.htests__KERNEL__, it should be unifdef'ed before exporting to userspace.
Applied, thanks.