xref: /kernel/linux/common_modules/container_escape_detection/include/ced_detection.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/common_modules/container_escape_detection/include/
1419b0af8Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
2419b0af8Sopenharmony_ci/*
3419b0af8Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
4419b0af8Sopenharmony_ci */
5419b0af8Sopenharmony_ci
6419b0af8Sopenharmony_ci#ifndef _CED_DETECTION_H
7419b0af8Sopenharmony_ci#define _CED_DETECTION_H
8419b0af8Sopenharmony_ci
9419b0af8Sopenharmony_ci#include <linux/cred.h>
10419b0af8Sopenharmony_ci#include <linux/sched.h>
11419b0af8Sopenharmony_ci
12419b0af8Sopenharmony_civoid ced_initialize(void);
13419b0af8Sopenharmony_civoid detection_hook(struct task_struct *task);
14419b0af8Sopenharmony_civoid setattr_insert_hook(struct task_struct *task);
15419b0af8Sopenharmony_civoid exit_hook(struct task_struct *task);
16419b0af8Sopenharmony_civoid switch_task_namespaces_hook(const struct nsproxy *new);
17419b0af8Sopenharmony_civoid commit_creds_hook(const struct cred *new);
18419b0af8Sopenharmony_civoid kernel_clone_hook(struct task_struct *task);
19419b0af8Sopenharmony_cibool ced_has_check_perm(void);
20419b0af8Sopenharmony_ci
21419b0af8Sopenharmony_ci#endif /* _CED_DETECTION_H */

Indexes created Thu Nov 07 10:32:03 CST 2024