aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/xtables-addons
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-17 16:05:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-01-17 16:05:30 +0000
commitad5b8fca450a14b60b1b9c2cd66d533b2a584063 (patch)
treece25e8268f6094dd86556f586ee889198fdef418 /package/network/utils/xtables-addons
parent29f245246185ca2933269890ec7561d5c76e0771 (diff)
downloadupstream-ad5b8fca450a14b60b1b9c2cd66d533b2a584063.tar.gz
upstream-ad5b8fca450a14b60b1b9c2cd66d533b2a584063.tar.bz2
upstream-ad5b8fca450a14b60b1b9c2cd66d533b2a584063.zip
xtables-addons: rework uid/gid compat patch to use KUIDT_INIT() and KGIDT_INIT() macros
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35203 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/xtables-addons')
-rw-r--r--package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch b/package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch
index 1d9991a42e..8a5be0d276 100644
--- a/package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch
+++ b/package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch
@@ -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)