forked from wight554/kernel_xiaomi_sm6250
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'drivers/kernelsu/' from commit '852ce86a4c85aad16fb87f1fc0376092…
…ab3b2fba' git-subtree-dir: drivers/kernelsu git-subtree-mainline: 551489d git-subtree-split: 852ce86 Signed-off-by: Alexander Winkowski <[email protected]>
- Loading branch information
Showing
35 changed files
with
5,540 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Diagnostics: | ||
UnusedIncludes: Strict | ||
ClangTidy: | ||
Remove: bugprone-sizeof-expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
menu "KernelSU" | ||
|
||
config KSU | ||
tristate "KernelSU function support" | ||
select OVERLAY_FS | ||
default y | ||
help | ||
Enable kernel-level root privileges on Android System. | ||
|
||
config KSU_DEBUG | ||
bool "KernelSU debug mode" | ||
depends on KSU | ||
default n | ||
help | ||
Enable KernelSU debug mode | ||
|
||
endmenu |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
obj-y += ksu.o | ||
obj-y += allowlist.o | ||
kernelsu-objs := apk_sign.o | ||
obj-y += kernelsu.o | ||
obj-y += module_api.o | ||
obj-y += sucompat.o | ||
obj-y += uid_observer.o | ||
obj-y += manager.o | ||
obj-y += core_hook.o | ||
obj-y += ksud.o | ||
obj-y += embed_ksud.o | ||
obj-y += kernel_compat.o | ||
|
||
obj-y += selinux/ | ||
# .git is a text file while the module is imported by 'git submodule add'. | ||
ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0) | ||
KSU_GIT_VERSION := $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD) | ||
ccflags-y += -DKSU_GIT_VERSION=$(KSU_GIT_VERSION) | ||
endif | ||
|
||
ifndef EXPECTED_SIZE | ||
EXPECTED_SIZE := 0x033b | ||
endif | ||
|
||
ifndef EXPECTED_HASH | ||
EXPECTED_HASH := 0xb0b91415 | ||
endif | ||
|
||
ccflags-y += -DEXPECTED_SIZE=$(EXPECTED_SIZE) | ||
ccflags-y += -DEXPECTED_HASH=$(EXPECTED_HASH) | ||
ccflags-y += -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-int-conversion -Wno-gcc-compat | ||
ccflags-y += -Wno-declaration-after-statement |
Oops, something went wrong.