diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-17 16:05:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-17 16:05:30 +0000 |
commit | 7250e27869d5ee6e1b87bfff298ff308bc9100c1 (patch) | |
tree | e39b1d36f9ba4d469fbf2913e6a17f556d1f8fc0 /package/network | |
parent | 7399df1d698c1873ece51b23de8ee67702e4046d (diff) | |
download | upstream-7250e27869d5ee6e1b87bfff298ff308bc9100c1.tar.gz upstream-7250e27869d5ee6e1b87bfff298ff308bc9100c1.tar.bz2 upstream-7250e27869d5ee6e1b87bfff298ff308bc9100c1.zip |
xtables-addons: rework uid/gid compat patch to use KUIDT_INIT() and KGIDT_INIT() macros
SVN-Revision: 35203
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/utils/xtables-addons/patches/400-uid-gid-linux-3.7-compat.patch | 4 |
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) |