Skip to contentSkip to conversation

NETFILTER: Make sure xt_policy.h is unifdef'ed.

PATCH Applied Robert P. J. Day 2 participants 2 messages Feb 17, 2008 – Feb 19, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

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.

---

include/linux/netfilter/Kbuild +1 -1
index 91fef0c..3aff513 100644
@@ -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
========================================================================

#1 lore raw
Quoted 2 lines · Robert P. J. Day

Since the header file xt_policy.h tests __KERNEL__, it should be unifdef'ed before exporting to userspace.

Applied, thanks.