Files
handyohos 3041dfa8d2 #150 Fix container_escape_detection and xpm apply scripts
- Fix path quoting issue in container_escape_detection/apply_ced.sh
- Add xpm header symlinks in xpm/apply_xpm.sh
- Use mkdir -p for safer directory creation
- Add ohoe_headers directory for OpenHarmony specific headers

Co-Authored-By: Agent <noreply@anthropic.com>
Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: Ibb407412ab60cea209d0a3b40f17b1febf0ffedb
2026-05-15 10:22:25 +08:00

29 lines
656 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 -p $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