diff --git a/kerneldriver/core/hook_unit/secDetector_hook.c b/kerneldriver/core/hook_unit/secDetector_hook.c index f4ac8df88638839801abb4b5a4dd3c9cc0e86d81..16107e11402a7fd34661a8fe8c18c9f15d7bbf74 100644 --- a/kerneldriver/core/hook_unit/secDetector_hook.c +++ b/kerneldriver/core/hook_unit/secDetector_hook.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-21 @@ -113,11 +105,11 @@ static bool timer_callback_exists(struct secDetector_workflow *workflow) static int insert_timer_callback(struct secDetector_workflow *workflow) { struct secDetector_timer *timer = NULL; - if (workflow == NULL) - return -1; + if (workflow == NULL) + return -1; - list_for_each_entry(timer, &secDetector_timer_list, list) { - if (workflow->interval != timer->interval) { + list_for_each_entry(timer, &secDetector_timer_list, list) { + if (workflow->interval != timer->interval) { list_add_rcu(&workflow->list, &timer->callback_list); return 0; } @@ -141,12 +133,12 @@ static int insert_timer_callback(struct secDetector_workflow *workflow) static int unlink_timer_callback(struct secDetector_workflow *workflow) { - struct secDetector_timer *timer = NULL; - if (workflow == NULL) - return -1; + struct secDetector_timer *timer = NULL; + if (workflow == NULL) + return -1; - list_for_each_entry(timer, &secDetector_timer_list, list) { - if (workflow->interval != timer->interval) { + list_for_each_entry(timer, &secDetector_timer_list, list) { + if (workflow->interval != timer->interval) { list_del_rcu(&workflow->list); synchronize_rcu(); if (list_empty(&timer->callback_list) == 1) { @@ -166,9 +158,9 @@ int insert_callback(struct secDetector_workflow *workflow) int i; int ret = -EFAULT; struct hook_list_func *list_func = NULL; - if (workflow == NULL) - return ret; - + if (workflow == NULL) + return ret; + for (i = 0; i < ARRAY_SIZE(hook_list_funcs); i++) { list_func = &hook_list_funcs[i]; if (workflow->hook_type >= list_func->type_min && @@ -185,23 +177,23 @@ int insert_callback(struct secDetector_workflow *workflow) int delete_callback(struct secDetector_workflow *workflow) { - int i; - int ret = -EFAULT; - struct hook_list_func *list_func = NULL; - if (workflow == NULL) - return ret; - - for (i = 0; i < ARRAY_SIZE(hook_list_funcs); i++) { - list_func = &hook_list_funcs[i]; - if (workflow->hook_type >= list_func->type_min && - workflow->hook_type <= list_func->type_max) { - if (!list_func->exists(workflow)) - return 0; - ret = list_func->delete(workflow); - break; - } - } - - return ret; + int i; + int ret = -EFAULT; + struct hook_list_func *list_func = NULL; + if (workflow == NULL) + return ret; + + for (i = 0; i < ARRAY_SIZE(hook_list_funcs); i++) { + list_func = &hook_list_funcs[i]; + if (workflow->hook_type >= list_func->type_min && + workflow->hook_type <= list_func->type_max) { + if (!list_func->exists(workflow)) + return 0; + ret = list_func->delete(workflow); + break; + } + } + + return ret; } diff --git a/kerneldriver/core/hook_unit/secDetector_hook.h b/kerneldriver/core/hook_unit/secDetector_hook.h index 381f9eecb2e15feac7cb307033e623e8ede573f0..a4448d49de5bae76f89a9a3f12af5e29c46d7a9f 100644 --- a/kerneldriver/core/hook_unit/secDetector_hook.h +++ b/kerneldriver/core/hook_unit/secDetector_hook.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-21 diff --git a/kerneldriver/core/hook_unit/secDetector_hook_tracepoint.c b/kerneldriver/core/hook_unit/secDetector_hook_tracepoint.c index c25312ad4a0250f206ce72683298ef302c260bc7..559fc7ceb44718695b52101c021a0dfbbac62975 100644 --- a/kerneldriver/core/hook_unit/secDetector_hook_tracepoint.c +++ b/kerneldriver/core/hook_unit/secDetector_hook_tracepoint.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-21 @@ -38,13 +30,13 @@ static void create_file_handler(void *cb_data __attribute__ ((unused)), struct f static void write_file_handler(void *cb_data __attribute__ ((unused)), struct filename *pathname) { - do_secDetector_hook_callback(write_file, TRACEPOINT_WRITE_FILE, PARAMS(pathname)); + do_secDetector_hook_callback(write_file, TRACEPOINT_WRITE_FILE, PARAMS(pathname)); } static void create_process_handler(void *cb_data __attribute__ ((unused)), int pid) { - do_secDetector_hook_callback(create_process, TRACEPOINT_CREATE_PROCESS, PARAMS(pid)); + do_secDetector_hook_callback(create_process, TRACEPOINT_CREATE_PROCESS, PARAMS(pid)); } @@ -54,21 +46,21 @@ static struct secDetector_tracepoint secDetector_tracepoint_hook_functions[] = { .register_func = tracepoint_register_call(secDetector_createfile), .unregister_func = tracepoint_unregister_call(secDetector_createfile), }, - { - .handler = write_file_handler, - .register_func = tracepoint_register_call(secDetector_writefile), - .unregister_func = tracepoint_unregister_call(secDetector_writefile), - }, - { - .handler = create_process_handler, - .register_func = tracepoint_register_call(secDetector_createprocess), - .unregister_func = tracepoint_unregister_call(secDetector_createprocess), - }, - { - .handler = NULL, - .register_func = NULL, - .unregister_func = NULL, - } + { + .handler = write_file_handler, + .register_func = tracepoint_register_call(secDetector_writefile), + .unregister_func = tracepoint_unregister_call(secDetector_writefile), + }, + { + .handler = create_process_handler, + .register_func = tracepoint_register_call(secDetector_createprocess), + .unregister_func = tracepoint_unregister_call(secDetector_createprocess), + }, + { + .handler = NULL, + .register_func = NULL, + .unregister_func = NULL, + } }; int insert_tracepoint_hook(struct secDetector_workflow *workflow) @@ -101,27 +93,27 @@ int insert_tracepoint_hook(struct secDetector_workflow *workflow) int delete_tracepoint_hook(struct secDetector_workflow *workflow) { - int ret = 0; - struct secDetector_tracepoint *tp = NULL; + int ret = 0; + struct secDetector_tracepoint *tp = NULL; - if (workflow == NULL) - return -1; + if (workflow == NULL) + return -1; - if (workflow->hook_type < TRACEPOINT_HOOK_START || workflow->hook_type > TRACEPOINT_HOOK_END) - return -1; + if (workflow->hook_type < TRACEPOINT_HOOK_START || workflow->hook_type > TRACEPOINT_HOOK_END) + return -1; - list_del_rcu(&workflow->list); + list_del_rcu(&workflow->list); synchronize_rcu(); - if (list_empty(&secDetector_hook_array[workflow->hook_type]) == 1) { - tp = &secDetector_tracepoint_hook_functions[workflow->hook_type - TRACEPOINT_HOOK_START]; - if (tp == NULL || tp->register_func == NULL || tp->handler == NULL) - return -1; + if (list_empty(&secDetector_hook_array[workflow->hook_type]) == 1) { + tp = &secDetector_tracepoint_hook_functions[workflow->hook_type - TRACEPOINT_HOOK_START]; + if (tp == NULL || tp->register_func == NULL || tp->handler == NULL) + return -1; - ret = tp->unregister_func(tp->handler, NULL); - } + ret = tp->unregister_func(tp->handler, NULL); + } - return ret; + return ret; } bool tracepoint_exists(struct secDetector_workflow *workflow) @@ -131,8 +123,8 @@ bool tracepoint_exists(struct secDetector_workflow *workflow) if (workflow == NULL) return false; - if (workflow->hook_type < TRACEPOINT_HOOK_START || workflow->hook_type > TRACEPOINT_HOOK_END) - return -1; + if (workflow->hook_type < TRACEPOINT_HOOK_START || workflow->hook_type > TRACEPOINT_HOOK_END) + return -1; head = &secDetector_hook_array[workflow->hook_type]; list_for_each_entry(tmp_wf, head, list) { diff --git a/kerneldriver/core/response_unit/secDetector_proc.c b/kerneldriver/core/response_unit/secDetector_proc.c index 53f488cb1ee46121bee25a771e8ceca8cf3b24f0..d7c3357b2c02142467c34908e1e9dcdcc5fc4de3 100644 --- a/kerneldriver/core/response_unit/secDetector_proc.c +++ b/kerneldriver/core/response_unit/secDetector_proc.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-22 diff --git a/kerneldriver/core/response_unit/secDetector_proc.h b/kerneldriver/core/response_unit/secDetector_proc.h index c19bb4e031c560660e5579ab8e143525e9889015..56e3a6d1a9c1eeb10eac251e1522f770e5f048f2 100644 --- a/kerneldriver/core/response_unit/secDetector_proc.h +++ b/kerneldriver/core/response_unit/secDetector_proc.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * */ diff --git a/kerneldriver/core/response_unit/secDetector_response.c b/kerneldriver/core/response_unit/secDetector_response.c index 164c5c6573cff1df197efa1674efb75e7a8b7717..9f5abc7675a2b598843d45fbdc973cd83119b563 100644 --- a/kerneldriver/core/response_unit/secDetector_response.c +++ b/kerneldriver/core/response_unit/secDetector_response.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: chenjingwen * Create: 2023-09-21 diff --git a/kerneldriver/core/secDetector_main.c b/kerneldriver/core/secDetector_main.c index 91252aa5b4e73ac1b6f39ecef59f866e81d54aca..1aa6d63d461b7a24373ffa7857847d26c7e4bf74 100644 --- a/kerneldriver/core/secDetector_main.c +++ b/kerneldriver/core/secDetector_main.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-21 diff --git a/kerneldriver/core/secDetector_manager.c b/kerneldriver/core/secDetector_manager.c index 22fa2b2877f214f9fac59edb573a8f1926b5b3a1..7c11be15821afd758bb0bb4e9026cc2c1d75f9e0 100644 --- a/kerneldriver/core/secDetector_manager.c +++ b/kerneldriver/core/secDetector_manager.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: zcfsite * create: 2023-09-21 diff --git a/kerneldriver/core/secDetector_workflow.c b/kerneldriver/core/secDetector_workflow.c index c51c5a6bb13a85b9d6e8884912c3e26e2331a0e5..2d65b6bc344960a32848206417aba6d5067911c0 100644 --- a/kerneldriver/core/secDetector_workflow.c +++ b/kerneldriver/core/secDetector_workflow.c @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_analyze.h b/kerneldriver/include/secDetector_analyze.h index dd41d43bb906782d7c3888d46a2c2eb5968be2da..c4e6fc6ad2860d09699c2c1c2268aad8273af147 100644 --- a/kerneldriver/include/secDetector_analyze.h +++ b/kerneldriver/include/secDetector_analyze.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_analyze_type.h b/kerneldriver/include/secDetector_analyze_type.h index 9ae648c5771329f35ac3e9c90975a4adc90b11f3..39f2cec63937459d7f95c22ef3b366f5cfa9d39c 100644 --- a/kerneldriver/include/secDetector_analyze_type.h +++ b/kerneldriver/include/secDetector_analyze_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 @@ -16,7 +8,7 @@ #ifndef SECDETECTOR_ANALYZE_TYPE_H #define SECDETECTOR_ANALYZE_TYPE_H -enum ANALYZE_TYPE{ +enum ANALYZE_TYPE { ANALYZE_RECORD, ANALYZE_PRESET_START, ANALYZE_PRESET_SAVE_CHECK = ANALYZE_PRESET_START, diff --git a/kerneldriver/include/secDetector_collect.h b/kerneldriver/include/secDetector_collect.h index 2a032af0d3a4e59a9b90144072e2a145411a3cc8..d5da0410be65bd2f622d2b87b04002f0e7e0f9e9 100644 --- a/kerneldriver/include/secDetector_collect.h +++ b/kerneldriver/include/secDetector_collect.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_collect_type.h b/kerneldriver/include/secDetector_collect_type.h index d2c6b5d9dea71761733a6943097049292c38cad9..5f364b804854a4db40c39f2b60d5ba146af60a3b 100644 --- a/kerneldriver/include/secDetector_collect_type.h +++ b/kerneldriver/include/secDetector_collect_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 @@ -16,7 +8,7 @@ #ifndef SECDETECTOR_COLLECT_TYPE_H #define SECDETECTOR_COLLECT_TYPE_H #include -enum COLLECT_TYPE{ +enum COLLECT_TYPE { COLLECT_TIME, COLLECT_CURRENT_START, COLLECT_CURRENT_PROCESS = COLLECT_CURRENT_START, diff --git a/kerneldriver/include/secDetector_hook_type.h b/kerneldriver/include/secDetector_hook_type.h index ae1ce54e9c5ebf4f368031f182f4df2cc9419b86..736d21ebb681ac3cb4f145f401dcaac69b4165ff 100644 --- a/kerneldriver/include/secDetector_hook_type.h +++ b/kerneldriver/include/secDetector_hook_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_manager.h b/kerneldriver/include/secDetector_manager.h index 70dedd327a2c7bee5da527a0ad534fe9fdfd87ea..505dd56ff8f02382c18d67671e9da7c120a06a4d 100644 --- a/kerneldriver/include/secDetector_manager.h +++ b/kerneldriver/include/secDetector_manager.h @@ -1,13 +1,6 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 + * */ diff --git a/kerneldriver/include/secDetector_module_type.h b/kerneldriver/include/secDetector_module_type.h index 30a13c8f8f1bf880ee0ad37f8efdefb55933fbdc..375ea4fda4e46ed09d62cdb7276e9080c0ebf0a2 100644 --- a/kerneldriver/include/secDetector_module_type.h +++ b/kerneldriver/include/secDetector_module_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_response.h b/kerneldriver/include/secDetector_response.h index 6769394b27b91b902d71351508360ea366d3dc55..cbb5f4765f9af1ac340730a84857e9b2f8dd315d 100644 --- a/kerneldriver/include/secDetector_response.h +++ b/kerneldriver/include/secDetector_response.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: chenjingwen * Create: 2023-09-21 diff --git a/kerneldriver/include/secDetector_response_type.h b/kerneldriver/include/secDetector_response_type.h index 133292da3bfb9bc293da08df3cb29be64924063a..6c49b1fab1f11f5e5c1d20cb8e90f3641a2e557d 100644 --- a/kerneldriver/include/secDetector_response_type.h +++ b/kerneldriver/include/secDetector_response_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: chenjingwen * Create: 2023-09-21 diff --git a/kerneldriver/include/secDetector_ringbuffer.h b/kerneldriver/include/secDetector_ringbuffer.h index ca052eeef46748fa53eaade8b5eef0f973b4ce5f..3602f220cbeaf6a5cad1b4c94b301adaa9c63a5a 100644 --- a/kerneldriver/include/secDetector_ringbuffer.h +++ b/kerneldriver/include/secDetector_ringbuffer.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: chenjingwen * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_workflow.h b/kerneldriver/include/secDetector_workflow.h index 7512a8c85a32a73ae4fca6a319bb55fb890e72df..5246b15dc4887f7d9ae724d7461593967ed051a0 100644 --- a/kerneldriver/include/secDetector_workflow.h +++ b/kerneldriver/include/secDetector_workflow.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 diff --git a/kerneldriver/include/secDetector_workflow_type.h b/kerneldriver/include/secDetector_workflow_type.h index da16c3496d05ac4fcad8e2ff01d840aa8ad7ab94..9e586a14b930dd7438f3682bc6f8a385b0438bc5 100644 --- a/kerneldriver/include/secDetector_workflow_type.h +++ b/kerneldriver/include/secDetector_workflow_type.h @@ -1,13 +1,5 @@ /* - * Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. - * secDetector is licensed under Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PSL v2 for more details. + * SPDX-License-Identifier: GPL-2.0 * * Author: yieux * Create: 2023-09-25 @@ -21,7 +13,7 @@ #include "secDetector_response_type.h" #include "secDetector_module_type.h" -enum WORKFLOW_TYPE{ +enum WORKFLOW_TYPE { WORKFLOW_CUSTOMIZATION, WORKFLOW_PRESET, };