Files
xiacong db3c7373e4 新增红黑树来记录进程的权限属性,比较前后的观测值是否一致
Signed-off-by: xiacong <xiacong4@huawei.com>
Change-Id: I4199675643372ce81dedca74fc52df3bec345a34
Signed-off-by: xiacong <xiacong4@huawei.com>
2023-12-08 14:12:46 +08:00

21 lines
588 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
*/
#ifndef _CED_DETECTION_H
#define _CED_DETECTION_H
#include <linux/cred.h>
#include <linux/sched.h>
void ced_initialize(void);
void detection_hook(struct task_struct *task);
void setattr_insert_hook(struct task_struct *task);
void exit_hook(struct task_struct *task);
void switch_task_namespaces_hook(const struct nsproxy *new);
void commit_creds_hook(const struct cred *new);
void kernel_clone_hook(struct task_struct *task);
bool ced_has_check_perm(void);
#endif /* _CED_DETECTION_H */