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

Magisk breaks security restrictions on getting MAC address #7636

Closed
ccppcpcpc opened this issue Dec 19, 2023 · 3 comments
Closed

Magisk breaks security restrictions on getting MAC address #7636

ccppcpcpc opened this issue Dec 19, 2023 · 3 comments
Labels
confirmed Issue confirmed to exist and the reason is known core This issue is related to Magisk Core

Comments

@ccppcpcpc
Copy link

Device: xiaomi 9se
Android version: 11
Magisk version name: v25.2
Magisk version code: 25201

I previously found a library on github that can get mac addresses via netlink, but after Android 11, this method doesn't work due to selinux limitations (log: avc nlmsg_readpriv denied, class netlink_route_socket). After flashing magisk boot, this method takes effect again and will not report avc denied.

I have studied magisk for a long time and have not found out what causes it. Does anyone know what causes it?

the library:
https://github.com/w296488320/getMacForNetlink

@MagiskBot

This comment was marked as outdated.

@canyie canyie changed the title Q: Magisk about selinux permission Magisk breaks security limits that PREVEN Dec 20, 2023
@canyie canyie changed the title Magisk breaks security limits that PREVEN Magisk breaks security restrictions on getting MAC address Dec 20, 2023
@canyie canyie added confirmed Issue confirmed to exist and the reason is known core This issue is related to Magisk Core labels Dec 20, 2023
@canyie canyie reopened this Dec 20, 2023
Repository owner locked as too heated and limited conversation to collaborators Dec 20, 2023
@topjohnwu
Copy link
Owner

Fixed with e30bda6

Repository owner unlocked this conversation Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Issue confirmed to exist and the reason is known core This issue is related to Magisk Core
Projects
None yet
Development

No branches or pull requests

5 participants