Files
xiacong 5ceb44f5f4 新增容器逃逸检测模块
Signed-off-by: xiacong <xiacong4@huawei.com>
Change-Id: Ib9a158b9bf965bcf1cd28786c25a50fe718a6690
Signed-off-by: xiacong <xiacong4@huawei.com>
2023-11-17 14:49:48 +08:00

29 lines
654 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023 Huawei Device Co., Ltd.
#
set -e
OHOS_SOURCE_ROOT=$1
KERNEL_BUILD_ROOT=$2
PRODUCT_NAME=$3
KERNEL_VERSION=$4
CED_SOURCE_ROOT=$OHOS_SOURCE_ROOT/kernel/linux/common_modules/container_escape_detection
function main()
{
pushd .
if [ ! -d " $KERNEL_BUILD_ROOT/security/container_escape_detection" ]; then
mkdir $KERNEL_BUILD_ROOT/security/container_escape_detection
fi
cd $KERNEL_BUILD_ROOT/security/container_escape_detection
ln -s -f $(realpath --relative-to=$KERNEL_BUILD_ROOT/security/container_escape_detection/ $CED_SOURCE_ROOT)/* ./
popd
}
main