Repository navigation
fix: preserve init domains for rooted Wi-Fi - #34
Open
david419kr wants to merge 1 commit into
Open
david419kr wants to merge 1 commit into
david419kr wants to merge 1 commit into
Conversation
UID-0 exec refresh also catches init service children, erasing the pending SELinux exec transition. The supplicant then stays in shell:s0 and fails HIDL registration even though its VINTF entry exists. Skip refresh and driver-FD injection for init-domain exec in both hooks. Rebuild the bundled module with the existing GCC 9.4 toolchain and update its integrity pins and corresponding-source mapping. Verified automatic rooting after reboot and two STA reconnect cycles on SCR01KDU1AVK2 with enable_manager_fd still enabled. Payload verifiers, 76 Python tests, 52 Android JVM tests and lint pass. Refs hackintoanetwork#8
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UID-0 exec refresh also catches init service children, erasing the pending SELinux exec transition. The supplicant then stays in shell:s0 and fails HIDL registration even though its VINTF entry exists.
Skip refresh and driver-FD injection for init-domain exec in both hooks. Rebuild the bundled module with the existing GCC 9.4 toolchain and update its integrity pins and corresponding-source mapping.
Verified automatic rooting after reboot and two STA reconnect cycles on SCR01KDU1AVK2 with enable_manager_fd still enabled. Payload verifiers, 76 Python tests, 52 Android JVM tests and lint pass.
Refs #8
UID 0 프로세스의 실행 시 자격 증명을 갱신하는 로직이 init에서 생성한 시스템 서비스에도 적용되면서, init이 준비한 SELinux 도메인 전환 정보가 사라지는 문제를 확인했습니다. 이 때문에
wpa_supplicant가 정상 도메인으로 전환되지 못하고shell:s0에 남아, VINTF 선언이 존재하는데도 HIDL 서비스 등록에 실패했습니다.execve와execveat두 훅 모두에서 init 도메인의 프로세스는 자격 증명 갱신과 드라이버 FD 주입을 건너뛰도록 수정했습니다. 기존 GCC 9.4 툴체인으로 번들 커널 모듈을 다시 빌드하고, 무결성 검증용 해시와 대응 소스 매핑도 함께 갱신했습니다.SCR01KDU1AVK2 기기에서 재부팅 후 자동 루팅이 정상 완료되는 것을 확인했습니다.
enable_manager_fd를 활성화한 상태로 Wi-Fi를 두 차례 껐다 켜 AP에 다시 연결되는 것도 확인했습니다. 페이로드 검증, Python 테스트 76개, Android JVM 테스트 52개 및 lint를 모두 통과했습니다.관련 이슈: #8