OpenCloudOS-Kernel/include/linux/kill_block.h

20 lines
381 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_KILL_BLOCK_H
#define _LINUX_KILL_BLOCK_H
#include <linux/sched.h>
#define KILL_BLOCK_CMD_LEN 128
struct kill_block_rule {
struct list_head node;
char src_comm[TASK_COMM_LEN];
char dst_comm[TASK_COMM_LEN];
};
int kill_block_match(struct task_struct *p);
extern int sysctl_sig_kill_block;
#endif /*_LINUX_KILL_BLOCK_H*/