ICSL排查:二进制文件FS和SP整改

Signed-off-by: lixiyuan <lixiyuan7@huawei.com>
This commit is contained in:
lixiyuan 2024-08-30 14:32:07 +08:00
parent e22b2fa71e
commit 7ba4d4b37c
5 changed files with 30 additions and 0 deletions

View File

@ -52,6 +52,11 @@ ohos_shared_library("storage_manager_acl") {
configs = [ ":private_config" ]
public_configs = [ ":public_config" ]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
external_deps = [
"c_utils:utils",
"hilog:libhilog",

View File

@ -56,6 +56,11 @@ ohos_shared_library("storage_manager_sa_proxy") {
configs = [ ":private_config" ]
public_configs = [ ":public_config" ]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
external_deps = [
"c_utils:utils",
"hilog:libhilog",

View File

@ -41,6 +41,11 @@ ohos_shared_library("storagestatistics") {
"${storage_service_path}/services/common/include",
]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
sources = [
"${storage_service_path}/services/storage_manager/kits_impl/src/storage_manager_connect.cpp",
"${storage_service_path}/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp",
@ -84,6 +89,11 @@ ohos_shared_library("volumemanager") {
"${storage_service_path}/services/common/include",
]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
sources = [
"${storage_service_path}/services/storage_manager/kits_impl/src/storage_manager_connect.cpp",
"${storage_service_path}/services/storage_manager/kits_impl/src/volumemanager_n_exporter.cpp",

View File

@ -257,6 +257,11 @@ ohos_shared_library("storage_common_utils") {
"LOG_DOMAIN = 0xD004301",
]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
sources = [
"./utils/disk_utils.cpp",
"./utils/file_utils.cpp",

View File

@ -22,6 +22,11 @@ config("storage_manager_config") {
"../storage_daemon/include",
"../common/include",
]
cflags = [
"-D_FORTIFY_SOURCE=2",
"-fstack-protector-strong",
]
}
ohos_shared_library("storage_manager") {