1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2023 Huawei Device Co., Ltd.
4  */
5 
6 #ifndef _CED_DETECTION_H
7 #define _CED_DETECTION_H
8 
9 #include <linux/cred.h>
10 #include <linux/sched.h>
11 
12 void ced_initialize(void);
13 void detection_hook(struct task_struct *task);
14 void setattr_insert_hook(struct task_struct *task);
15 void exit_hook(struct task_struct *task);
16 void switch_task_namespaces_hook(const struct nsproxy *new);
17 void commit_creds_hook(const struct cred *new);
18 void kernel_clone_hook(struct task_struct *task);
19 bool ced_has_check_perm(void);
20 
21 #endif /* _CED_DETECTION_H */