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 12void ced_initialize(void); 13void detection_hook(struct task_struct *task); 14void setattr_insert_hook(struct task_struct *task); 15void exit_hook(struct task_struct *task); 16void switch_task_namespaces_hook(const struct nsproxy *new); 17void commit_creds_hook(const struct cred *new); 18void kernel_clone_hook(struct task_struct *task); 19bool ced_has_check_perm(void); 20 21#endif /* _CED_DETECTION_H */