Revert "Revert "Updates tests for untrusted app MAC address rest..."
The original change was reverted due to InterfaceParamsTest failing.
This test has now been fixed in r.android.com/1498525.
The original change message is below.
Apps targeting API level < 30 are no longer able to access the MAC
address of the network interface. Instead, they will always see
02:00:00:00:00:00 as the interface's MAC address. Non-system apps
targeting API level >= 30 will continue to see null as the interface's
MAC address.
Additionally, no untrusted app, regardless of API level, is allowed to:
- bind on NETLINK_ROUTE sockets
- send RTM_GETLINK messages
Bug: 70188668
Test: atest CtsSelinuxTargetSdk27TestCases
Test: atest CtsSelinuxTargetSdk28TestCases
Test: atest CtsSelinuxTargetSdk29TestCases
Test: atest CtsSelinuxTargetSdkCurrentTestCases
Change-Id: I0e8280c74fd2a796cf743c21c97fe248e27fb3a8
6 files changed