mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
29f2452461
commit
ad5b8fca45
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user