netfilter: switch xt_copy_counters to sockptr_t
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7e4b9dbabb
commit
ab214d1bf8
@@ -301,8 +301,8 @@ int xt_target_to_user(const struct xt_entry_target *t,
|
||||
int xt_data_to_user(void __user *dst, const void *src,
|
||||
int usersize, int size, int aligned_size);
|
||||
|
||||
void *xt_copy_counters_from_user(const void __user *user, unsigned int len,
|
||||
struct xt_counters_info *info);
|
||||
void *xt_copy_counters(sockptr_t arg, unsigned int len,
|
||||
struct xt_counters_info *info);
|
||||
struct xt_counters *xt_counters_alloc(unsigned int counters);
|
||||
|
||||
struct xt_table *xt_register_table(struct net *net,
|
||||
|
||||
Reference in New Issue
Block a user