xtables-addons: rework uid/gid compat patch to use KUIDT_INIT() and KGIDT_INIT() macros
SVN-Revision: 35203
This commit is contained in:
parent
7399df1d69
commit
7250e27869
|
@ -58,8 +58,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
|
||||||
+# define XT_UID(x) make_kuid(current_user_ns(), x)
|
+# define XT_UID(x) KUIDT_INIT(x)
|
||||||
+# define XT_GID(x) make_kgid(current_user_ns(), x)
|
+# define XT_GID(x) KGIDT_INIT(x)
|
||||||
+#else
|
+#else
|
||||||
+# define XT_UID(x) (x)
|
+# define XT_UID(x) (x)
|
||||||
+# define XT_GID(x) (x)
|
+# define XT_GID(x) (x)
|
||||||
|
|
Loading…
Reference in New Issue