mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Taehee Yoo](/assets/img/avatar_default.png)
Now, UMH process is killed, do_exit() calls the umh_info->cleanup callback to release members of the umh_info. This patch makes bpfilter_umh's cleanup routine to use the umh_info->cleanup callback. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
20 lines
601 B
C
20 lines
601 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_BPFILTER_H
|
|
#define _LINUX_BPFILTER_H
|
|
|
|
#include <uapi/linux/bpfilter.h>
|
|
#include <linux/umh.h>
|
|
|
|
struct sock;
|
|
int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval,
|
|
unsigned int optlen);
|
|
int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval,
|
|
int __user *optlen);
|
|
struct bpfilter_umh_ops {
|
|
struct umh_info info;
|
|
int (*sockopt)(struct sock *sk, int optname,
|
|
char __user *optval,
|
|
unsigned int optlen, bool is_set);
|
|
};
|
|
extern struct bpfilter_umh_ops bpfilter_ops;
|
|
#endif
|