xtables-addons: rework uid/gid compat patch to use KUIDT_INIT() and KGIDT_INIT()...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Jan 2013 16:05:30 +0000 (16:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Jan 2013 16:05:30 +0000 (16:05 +0000)
SVN-Revision: 35203

package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch

index 1d9991a42ecf2002c5f9d8df8f4d28277d46d596..8a5be0d2760ad891c8b3ac350a5c86c5aafc3e16 100644 (file)
@@ -58,8 +58,8 @@
  #endif
  
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
-+#  define XT_UID(x) make_kuid(current_user_ns(), x)
-+#  define XT_GID(x) make_kgid(current_user_ns(), x)
++#  define XT_UID(x) KUIDT_INIT(x)
++#  define XT_GID(x) KGIDT_INIT(x)
 +#else
 +#  define XT_UID(x) (x)
 +#  define XT_GID(x) (x)