mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
extensions: resolve compile error when CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
xt_DNETMAP.c: In function "dnetmap_tg_check": xt_DNETMAP.c:331:16: error: incompatible types when assigning to type "kuid_t" from type "unsigned int" xt_DNETMAP.c:332:16: error: incompatible types when assigning to type "kgid_t" from type "unsigned int" xt_DNETMAP.c:344:16: error: incompatible types when assigning to type "kuid_t" from type "unsigned int" xt_DNETMAP.c:345:16: error: incompatible types when assigning to type "kgid_t" from type "unsigned int" xt_condition.c: In function "condition_mt_check": xt_condition.c:158:24: error: incompatible types when assigning to type "kuid_t" from type "unsigned int" xt_condition.c:159:24: error: incompatible types when assigning to type "kgid_t" from type "unsigned int" xt_quota2.c: In function "q2_get_counter": xt_quota2.c:134:18: error: incompatible types when assigning to type "kuid_t" from type "unsigned int" xt_quota2.c:135:18: error: incompatible types when assigning to type "kgid_t" from type "unsigned int"
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/uidgid.h>
|
||||
#include <linux/version.h>
|
||||
#include <asm/atomic.h>
|
||||
|
||||
@@ -131,8 +132,8 @@ q2_get_counter(const struct xt_quota_mtinfo2 *q)
|
||||
p->data = e;
|
||||
p->read_proc = quota_proc_read;
|
||||
p->write_proc = quota_proc_write;
|
||||
p->uid = quota_list_uid;
|
||||
p->gid = quota_list_gid;
|
||||
p->uid = make_kuid(&init_user_ns, quota_list_uid);
|
||||
p->gid = make_kgid(&init_user_ns, quota_list_gid);
|
||||
list_add_tail(&e->list, &counter_list);
|
||||
spin_unlock_bh(&counter_list_lock);
|
||||
return e;
|
||||
|
Reference in New Issue
Block a user