mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
5ceb44f5f4
Signed-off-by: xiacong <xiacong4@huawei.com> Change-Id: Ib9a158b9bf965bcf1cd28786c25a50fe718a6690 Signed-off-by: xiacong <xiacong4@huawei.com>
29 lines
654 B
Bash
Executable File
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
|