diff --git a/README.md b/README.md index 76f26311..4ef67fcc 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,7 @@ Linux 6.3+ (not yet adapted) - [vmlinux-to-elf](https://github.com/marin-m/vmlinux-to-elf): Some ideas for parsing kernel symbols. - [android-inline-hook](https://github.com/bytedance/android-inline-hook): Some code for fixing arm64 inline hook instructions. -- [KernelSU](https://github.com/tiann/KernelSU): Some Android compat code. -- [tlsf](https://github.com/mattconte/tlsf): Memory allocator used for KPM. (Need a better one to allocate ROX memory.) +- [tlsf](https://github.com/mattconte/tlsf): Memory allocator used for KPM. (Need another to allocate ROX memory.) ## License diff --git a/kernel/base/fphook.c b/kernel/base/fphook.c index a657096a..1f3c48f9 100644 --- a/kernel/base/fphook.c +++ b/kernel/base/fphook.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/base/hmem.c b/kernel/base/hmem.c index cfd13b4a..64ec4967 100644 --- a/kernel/base/hmem.c +++ b/kernel/base/hmem.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "hook.h" #include diff --git a/kernel/base/hmem.h b/kernel/base/hmem.h index c5679efb..0ffe4481 100644 --- a/kernel/base/hmem.h +++ b/kernel/base/hmem.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_HMEM_H_ #define _KP_HMEM_H_ diff --git a/kernel/base/hook.c b/kernel/base/hook.c index 6ce17d3c..18e577cc 100644 --- a/kernel/base/hook.c +++ b/kernel/base/hook.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/base/log.c b/kernel/base/log.c index cfb603fa..83a0b040 100644 --- a/kernel/base/log.c +++ b/kernel/base/log.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #define BOOT_LOG_SIZE 1024 diff --git a/kernel/base/map.c b/kernel/base/map.c index d1b78081..1ef05dfa 100644 --- a/kernel/base/map.c +++ b/kernel/base/map.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "setup.h" typedef uint64_t phys_addr_t; diff --git a/kernel/base/map1.S b/kernel/base/map1.S index 780e3a8f..a7fd5c00 100644 --- a/kernel/base/map1.S +++ b/kernel/base/map1.S @@ -1,2 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ // todo: \ No newline at end of file diff --git a/kernel/base/predata.c b/kernel/base/predata.c index 5745b04f..892f9a3e 100644 --- a/kernel/base/predata.c +++ b/kernel/base/predata.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/base/setup.c b/kernel/base/setup.c index 82ba1bb2..2203a91e 100644 --- a/kernel/base/setup.c +++ b/kernel/base/setup.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "setup.h" #include "../version" diff --git a/kernel/base/setup.h b/kernel/base/setup.h index 49c8693c..6ee58eea 100644 --- a/kernel/base/setup.h +++ b/kernel/base/setup.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_SETUP_H_ #define _KP_SETUP_H_ diff --git a/kernel/base/setup1.S b/kernel/base/setup1.S index 069f754e..626a4974 100644 --- a/kernel/base/setup1.S +++ b/kernel/base/setup1.S @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ #define __ASSEMBLY__ #include "./setup.h" diff --git a/kernel/base/start.c b/kernel/base/start.c index d757bc63..8f88b2f9 100644 --- a/kernel/base/start.c +++ b/kernel/base/start.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/base/start.h b/kernel/base/start.h index 06c0259b..5443f574 100644 --- a/kernel/base/start.h +++ b/kernel/base/start.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_START_H_ #define _KP_START_H_ diff --git a/kernel/base/symbol.c b/kernel/base/symbol.c index f71dcfc5..0f2c9ca5 100644 --- a/kernel/base/symbol.c +++ b/kernel/base/symbol.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/include/common.h b/kernel/include/common.h index 08dd2fc7..774fc4da 100644 --- a/kernel/include/common.h +++ b/kernel/include/common.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_COMMON_H_ #define _KP_COMMON_H_ diff --git a/kernel/include/ctype.h b/kernel/include/ctype.h index bbfebe75..e1850bc5 100644 --- a/kernel/include/ctype.h +++ b/kernel/include/ctype.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_CTYPE_H_ #define _KP_CTYPE_H_ diff --git a/kernel/include/hook.h b/kernel/include/hook.h index b4ee3b8f..454fadc0 100644 --- a/kernel/include/hook.h +++ b/kernel/include/hook.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_HOOK_H_ #define _KP_HOOK_H_ diff --git a/kernel/include/inlinestring.h b/kernel/include/inlinestring.h index 9d9d7705..2645015a 100644 --- a/kernel/include/inlinestring.h +++ b/kernel/include/inlinestring.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_INLINESTRING_H_ #define _KP_INLINESTRING_H_ diff --git a/kernel/include/kpmodule.h b/kernel/include/kpmodule.h index f0b13b95..0609c5f2 100644 --- a/kernel/include/kpmodule.h +++ b/kernel/include/kpmodule.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_KPMODULE_H_ #define _KP_KPMODULE_H_ diff --git a/kernel/include/log.h b/kernel/include/log.h index afb17920..b015fbe3 100644 --- a/kernel/include/log.h +++ b/kernel/include/log.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_LOG_H_ #define _KP_LOG_H_ diff --git a/kernel/include/pgtable.h b/kernel/include/pgtable.h index e9a4a014..ba311ff1 100644 --- a/kernel/include/pgtable.h +++ b/kernel/include/pgtable.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_PGTABLE_H_ #define _KP_PGTABLE_H_ diff --git a/kernel/include/predata.h b/kernel/include/predata.h index eb558240..f87fc4ba 100644 --- a/kernel/include/predata.h +++ b/kernel/include/predata.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_PREDATA_H_ #define _KP_PREDATA_H_ diff --git a/kernel/include/preset.h b/kernel/include/preset.h index 8a7cf9c9..537ea1b8 100644 --- a/kernel/include/preset.h +++ b/kernel/include/preset.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_PRESET_H_ #define _KP_PRESET_H_ diff --git a/kernel/include/symbol.h b/kernel/include/symbol.h index 3c51a2dc..14a487ff 100644 --- a/kernel/include/symbol.h +++ b/kernel/include/symbol.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_SYMBOL_H_ #define _KP_SYMBOL_H_ diff --git a/kernel/patch/android/kpuserd.c b/kernel/patch/android/kpuserd.c index 6d2836a7..aba30991 100644 --- a/kernel/patch/android/kpuserd.c +++ b/kernel/patch/android/kpuserd.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include @@ -26,11 +31,6 @@ #include #include -/* -Modified from KernelSU, GPLv2 -https://github.com/tiann/KernelSU -*/ - const char origin_rc_file[] = "/system/etc/init/atrace.rc"; const char replace_rc_file[] = "/dev/.atrace.rc"; diff --git a/kernel/patch/android/sucompat.c b/kernel/patch/android/sucompat.c index afc9536e..b5616e56 100644 --- a/kernel/patch/android/sucompat.c +++ b/kernel/patch/android/sucompat.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include @@ -29,11 +34,6 @@ #include #include -/* -Modified from KernelSU, GPLv2 -https://github.com/tiann/KernelSU -*/ - static const char sh_path[] = ANDROID_SH_PATH; static const char default_su_path[] = ANDROID_SU_PATH; static const char *current_su_path = 0; diff --git a/kernel/patch/android/supercall.c b/kernel/patch/android/supercall.c index 42833929..8bc95f42 100644 --- a/kernel/patch/android/supercall.c +++ b/kernel/patch/android/supercall.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/common/accctl.c b/kernel/patch/common/accctl.c index 72f936b5..2a27d57d 100644 --- a/kernel/patch/common/accctl.c +++ b/kernel/patch/common/accctl.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "accctl.h" #include diff --git a/kernel/patch/common/hotpatch.c b/kernel/patch/common/hotpatch.c index 26a3d88f..05853324 100644 --- a/kernel/patch/common/hotpatch.c +++ b/kernel/patch/common/hotpatch.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include diff --git a/kernel/patch/common/secpass.c b/kernel/patch/common/secpass.c index 94a3dc0d..d1d4a394 100644 --- a/kernel/patch/common/secpass.c +++ b/kernel/patch/common/secpass.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ #include #include diff --git a/kernel/patch/common/selinuxhook.c b/kernel/patch/common/selinuxhook.c index d584e0f0..2a0ca50e 100644 --- a/kernel/patch/common/selinuxhook.c +++ b/kernel/patch/common/selinuxhook.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "accctl.h" #include diff --git a/kernel/patch/common/supercall.c b/kernel/patch/common/supercall.c index bcb3e611..def83e2d 100644 --- a/kernel/patch/common/supercall.c +++ b/kernel/patch/common/supercall.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/common/syscall.c b/kernel/patch/common/syscall.c index fb04b119..294a3f9c 100644 --- a/kernel/patch/common/syscall.c +++ b/kernel/patch/common/syscall.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "syscall.h" #include diff --git a/kernel/patch/common/taskob.c b/kernel/patch/common/taskob.c index 23ed2293..2de90a95 100644 --- a/kernel/patch/common/taskob.c +++ b/kernel/patch/common/taskob.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/common/utils.c b/kernel/patch/common/utils.c index b2aaad59..5618c11e 100644 --- a/kernel/patch/common/utils.c +++ b/kernel/patch/common/utils.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/include/accctl.h b/kernel/patch/include/accctl.h index e73c5015..8e6960a9 100644 --- a/kernel/patch/include/accctl.h +++ b/kernel/patch/include/accctl.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_ACCCTL_H_ #define _KP_ACCCTL_H_ diff --git a/kernel/patch/include/hotpatch.h b/kernel/patch/include/hotpatch.h index 59503a2c..983d72d0 100644 --- a/kernel/patch/include/hotpatch.h +++ b/kernel/patch/include/hotpatch.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_HOTPATCH_H_ #define _KP_HOTPATCH_H_ diff --git a/kernel/patch/include/kconfig.h b/kernel/patch/include/kconfig.h index 8dc9aced..929fbdd8 100644 --- a/kernel/patch/include/kconfig.h +++ b/kernel/patch/include/kconfig.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_KCONFIG_H_ #define _KP_KCONFIG_H_ diff --git a/kernel/patch/include/kputils.h b/kernel/patch/include/kputils.h index bc08c389..2ce0d5bb 100644 --- a/kernel/patch/include/kputils.h +++ b/kernel/patch/include/kputils.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_UTILS_H_ #define _KP_UTILS_H_ diff --git a/kernel/patch/include/ksyms.h b/kernel/patch/include/ksyms.h index 7eb31083..dcbab95d 100644 --- a/kernel/patch/include/ksyms.h +++ b/kernel/patch/include/ksyms.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_KSYMS_H #define _KP_KSYMS_H diff --git a/kernel/patch/include/module.h b/kernel/patch/include/module.h index e2b70ad2..bd4ac852 100644 --- a/kernel/patch/include/module.h +++ b/kernel/patch/include/module.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_MODULE_H_ #define _KP_MODULE_H_ diff --git a/kernel/patch/include/syscall.h b/kernel/patch/include/syscall.h index a414921c..5b89cc79 100644 --- a/kernel/patch/include/syscall.h +++ b/kernel/patch/include/syscall.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_SYSCALL_H_ #define _KP_SYSCALL_H_ diff --git a/kernel/patch/include/taskext.h b/kernel/patch/include/taskext.h index a82cff8e..901a0e09 100644 --- a/kernel/patch/include/taskext.h +++ b/kernel/patch/include/taskext.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_TASKEXT_H_ #define _KP_TASKEXT_H_ diff --git a/kernel/patch/include/taskob.h b/kernel/patch/include/taskob.h index fa74b976..113eacb8 100644 --- a/kernel/patch/include/taskob.h +++ b/kernel/patch/include/taskob.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_TASKOB_H_ #define _KP_TASKOB_H_ diff --git a/kernel/patch/include/uapi/scdefs.h b/kernel/patch/include/uapi/scdefs.h index 568cedde..9bc27883 100644 --- a/kernel/patch/include/uapi/scdefs.h +++ b/kernel/patch/include/uapi/scdefs.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_UAPI_SCDEF_H_ #define _KP_UAPI_SCDEF_H_ diff --git a/kernel/patch/ksyms/libs.c b/kernel/patch/ksyms/libs.c index 1000431c..fbdbe5c7 100644 --- a/kernel/patch/ksyms/libs.c +++ b/kernel/patch/ksyms/libs.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/ksyms/misc.c b/kernel/patch/ksyms/misc.c index fba4020c..d79bbba8 100644 --- a/kernel/patch/ksyms/misc.c +++ b/kernel/patch/ksyms/misc.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/ksyms/misc_len.c b/kernel/patch/ksyms/misc_len.c index 1d622b96..e671e516 100644 --- a/kernel/patch/ksyms/misc_len.c +++ b/kernel/patch/ksyms/misc_len.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KP_MISC_LEN_H_ #define _KP_MISC_LEN_H_ diff --git a/kernel/patch/ksyms/task_cred.c b/kernel/patch/ksyms/task_cred.c index f1832f1c..5e1ff3e5 100644 --- a/kernel/patch/ksyms/task_cred.c +++ b/kernel/patch/ksyms/task_cred.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/kernel/patch/module/module.c b/kernel/patch/module/module.c index 856f5b0d..90018564 100644 --- a/kernel/patch/module/module.c +++ b/kernel/patch/module/module.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/tools/image.c b/tools/image.c index dc5f5ffa..15307cc6 100644 --- a/tools/image.c +++ b/tools/image.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "image.h" #include diff --git a/tools/image.h b/tools/image.h index e861f205..1106d610 100644 --- a/tools/image.h +++ b/tools/image.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _IMAGE_H_ #define _IMAGE_H_ diff --git a/tools/kallsym.c b/tools/kallsym.c index d58989fd..818c1c13 100644 --- a/tools/kallsym.c +++ b/tools/kallsym.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "kallsym.h" #define _GNU_SOURCE diff --git a/tools/kallsym.h b/tools/kallsym.h index 35597a9c..e6c24717 100644 --- a/tools/kallsym.h +++ b/tools/kallsym.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KALLSYM_H_ #define _KALLSYM_H_ diff --git a/tools/kptools.c b/tools/kptools.c index f0fa706c..42c66e92 100644 --- a/tools/kptools.c +++ b/tools/kptools.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/tools/order.c b/tools/order.c index 855662e4..3f0a57db 100644 --- a/tools/order.c +++ b/tools/order.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "order.h" inline uint16_t u16swp(uint16_t val) diff --git a/tools/order.h b/tools/order.h index 75f5158d..6cbdc677 100644 --- a/tools/order.h +++ b/tools/order.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _ORDER_H_ #define _ORDER_H_ diff --git a/user/android/android_user.c b/user/android/android_user.c index d554327c..922a66d7 100644 --- a/user/android/android_user.c +++ b/user/android/android_user.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/user/android/android_user.h b/user/android/android_user.h index e66ab105..9a730fd5 100644 --- a/user/android/android_user.h +++ b/user/android/android_user.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_ANDROID_USER_H_ #define _KPU_ANDROID_USER_H_ diff --git a/user/android/apjni.cpp b/user/android/apjni.cpp index bc69449e..b6ca1e5f 100644 --- a/user/android/apjni.cpp +++ b/user/android/apjni.cpp @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/user/android/sumgr.c b/user/android/sumgr.c index 92f56b51..dc31070c 100644 --- a/user/android/sumgr.c +++ b/user/android/sumgr.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "sumgr.h" #include #include diff --git a/user/android/sumgr.h b/user/android/sumgr.h index 3ee71774..dde6c2a7 100644 --- a/user/android/sumgr.h +++ b/user/android/sumgr.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_ANDROID_SUMGR_H_ #define _KPU_ANDROID_SUMGR_H_ diff --git a/user/kpatch.c b/user/kpatch.c index 30dfcdf5..23cf157a 100644 --- a/user/kpatch.c +++ b/user/kpatch.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "kpatch.h" #include diff --git a/user/kpatch.h b/user/kpatch.h index 76f6f73a..e1214558 100644 --- a/user/kpatch.h +++ b/user/kpatch.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_KPATCH_H_ #define _KPU_KPATCH_H_ diff --git a/user/kpm.c b/user/kpm.c index 15db711d..d5da1d6b 100644 --- a/user/kpm.c +++ b/user/kpm.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include "kpm.h" #include #include diff --git a/user/kpm.h b/user/kpm.h index 86134543..8e476ea8 100644 --- a/user/kpm.h +++ b/user/kpm.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_ANDROID_KPM_H_ #define _KPU_ANDROID_KPM_H_ diff --git a/user/main.c b/user/main.c index 9578edc2..3cdbf111 100644 --- a/user/main.c +++ b/user/main.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #include #include #include diff --git a/user/su.c b/user/su.c index 30faf1d0..c790d441 100644 --- a/user/su.c +++ b/user/su.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ #include "su.h" diff --git a/user/su.h b/user/su.h index ebd71b51..9369a4be 100644 --- a/user/su.h +++ b/user/su.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_SU_H_ #define _KPU_SU_H_ diff --git a/user/supercall.h b/user/supercall.h index 77846224..a7045ef5 100644 --- a/user/supercall.h +++ b/user/supercall.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 bmax121. All Rights Reserved. + */ + #ifndef _KPU_SUPERCALL_H_ #define _KPU_SUPERCALL_H_