Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: try umount /system/etc/hosts #1494

Closed
wants to merge 1 commit into from

Conversation

backslashxx
Copy link
Contributor

@backslashxx backslashxx commented Mar 21, 2024

Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

@tiann
Copy link
Owner

tiann commented Mar 21, 2024

I won't merge this, if someone wants to umount ca certs, do they also need to add it? You can mount it to /system, and then the kernel will give you an overall umount.

@tiann tiann closed this Mar 21, 2024
@backslashxx backslashxx deleted the pr-umount-hosts branch March 21, 2024 05:06
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 21, 2024
ksu.c: disable KPROBES=n warning, its useless, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 21, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 21, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
@backslashxx backslashxx restored the pr-umount-hosts branch March 21, 2024 11:58
@backslashxx backslashxx deleted the pr-umount-hosts branch March 21, 2024 11:58
backslashxx added a commit to bindhosts/bindhosts that referenced this pull request Mar 21, 2024
scripts: restore old behavior

turns out adding /system/etc/hosts on KernelSU unmountables properly hides these things.

tiann/KernelSU#1494
@backslashxx backslashxx restored the pr-umount-hosts branch March 21, 2024 14:00
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 21, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

This is a PR requesting for comments for this change.
Use it with this module https://github.com/backslashxx/bindhosts/

tiann#1494
backslashxx added a commit to backslashxx/mojito_krenol that referenced this pull request Mar 22, 2024
This reverts commit 36066c8.

This wouldn't work anyway if (((they))) actually read the file.
Better umount the damn thing.
Good thing we have KernelSU so handle it there
tiann/KernelSU#1494
backslashxx added a commit to backslashxx/mojito_krenol that referenced this pull request Mar 22, 2024
This reverts commit 36066c8.

This wouldn't work anyway if (((they))) actually read the file.
Better umount the damn thing.
Good thing we have KernelSU so handle it there
tiann/KernelSU#1494
backslashxx added a commit to backslashxx/msm8953-kernel that referenced this pull request Mar 22, 2024
This reverts commit e0ab5c6.

This wouldn't work anyway if (((they))) actually read the file.
Better umount the damn thing.
Good thing we have KernelSU so handle it there
tiann/KernelSU#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
ksu.c: disable KPROBES=n warning, filesystem hooks are in use.
core_hook.c: umount /system/etc/hosts (tiann#1494)
Makefile: hardcode ksu version
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

kernel: try umount /system/etc/hosts
tiann#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 23, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

kernel: try umount /system/etc/hosts
tiann#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 25, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

kernel: try umount /system/etc/hosts
tiann#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 27, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

kernel: try umount /system/etc/hosts
tiann#1494
zeta96 pushed a commit to zeta96/L_soul_santoni_msm4.9 that referenced this pull request Mar 27, 2024
This reverts commit e0ab5c6925bf9718fa160893165fc8c4da0f2482.

This wouldn't work anyway if (((they))) actually read the file.
Better umount the damn thing.
Good thing we have KernelSU so handle it there
tiann/KernelSU#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 28, 2024
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

kernel: try umount /system/etc/hosts
tiann#1494
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+14)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: require easy backports
	kernel: require harder backports
	workflows: debloat
	dummy.keystore
	manager: failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+14)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: require easy backports
	kernel: require harder backports
	workflows: debloat
	dummy.keystore
	manager: failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 18, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+13)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: handle easy backports
	kernel: handle harder backports
	workflows: debloat
	dummy.keystore
	manager:  failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Make sure to also chant, "thank you 5ec1cff" before you sleep.

Signed-off-by: backslashxx <[email protected]>
YumeMichi pushed a commit to YumeMichi/KernelSU that referenced this pull request Feb 18, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified time and checking its filesize.
Unmounting it as needed for non-root processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 19, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified
time and checking its filesize. Unmounting it as needed for non-root
processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 19, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+15)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: require easy backports
	kernel: require harder backports
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: core_hook: try umount LSPosed dex2oat
	workflows: debloat
	dummy.keystore
	manager: failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 19, 2025
Modding hosts file is a common thing to have on rooted android devices.
But this is easy to detect, either by reading the file, checking modified
time and checking its filesize. Unmounting it as needed for non-root
processes solves this issue.

Rejected: tiann#1494

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Feb 19, 2025
Removed/Skipped: (-6)
	kernel:Add Huawei hisi check (tiann#1545)
		- upstream tiann/KernelSU@4f05fe2
		- superceded by `kernel: expose allowlist workaround as Kconfig option`
	[1.0] Drop Non-GKI Support (tiann#1483)
		- upstream tiann/KernelSU@898e9d4
	Drop some legacy codes (tiann#1981)
		- upstream tiann/KernelSU@fd09ccf
	kernel: add support for disable sucompat
		- upstream tiann/KernelSU@2096bd7
	kernel: Allow to re-enable sucompat
		- upstream tiann/KernelSU@4593ae8
	kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
		- upstream tiann/KernelSU@500ff9b

Added from 5ec1cff@7525490 (+22)
	implement magic mount
	no need to deny relabel
	restorecon: set adb_file to system_file for module files
	magic_mount: use trusted.overlay.opaque
	chore: fmt
	magic_mount: supports whiteout
	chore: refine code
	magic_mount: fix
	log: make verbose logging optional
	magic_mount: refine
	ksud: fix disable / enable modules
	ksud: fix odm not magic-mounted
	manager: no need to check overlayfs
	ksud: fix partition link
	ksud: fix clone symlink
	ksud: refine tmpfs
	ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5)
	manager: remove shrink image
	use module dir name as real id
	allow restore uninstalled module
	ksud: make tmpfs and magic mount optional
	ksud: fix stat

Personal changes: (+15)
	manager: show module id on module page (tiann#2365)
	kernel: drop LKM and kprobe support
	kernel: backport support for sucompat disable/enable
	kernel: throne_tracker: initialize apk_path_hash_list on search_manager
	kernel: expose allowlist workaround as Kconfig option
	kernel: core_hook: upstream ksu_umount_mnt
	kernel: require easy backports
	kernel: require harder backports
	kernel: core_hook: try umount /system/etc/hosts (tiann#1494)
	kernel: core_hook: try umount LSPosed dex2oat
	workflows: debloat
	dummy.keystore
	manager: failure mode dummy demo
	manager: unofficial build
	KernelSU v1.0.3+magic

Warning: Managers built from this repo has a known keystore.
See dummy.keystore.

Signed-off-by: backslashxx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants