diff options
author | Bram Bonné <brambonne@google.com> | 2020-09-18 13:27:25 +0200 |
---|---|---|
committer | Bram Bonné <brambonne@google.com> | 2020-10-06 13:42:19 +0200 |
commit | 18286ed4659a7796cce9d5e44dd4791f4225b89c (patch) | |
tree | 0e0ccfce4ab8015ca5efc70b7171ea71ce7b439f /tests/stdio_test.cpp | |
parent | 08a43426a0bcbc53cd2a33b3624bc6b3f7176117 (diff) |
Soft-enables new MAC address restrictions.
Updates getifaddrs() to behave as if RTM_GETLINK requests are not
allowed for non-system apps. This is different from previous behavior,
where apps targeting an API level < 30 were exempted from this
restriction.
Actual enforcement happens in SELinux. This change:
- Soft-enables the behavior until SELinux changes are in place
- Prevents logspam from SELinux denials after they are in place
Bug: 170188668
Test: atest bionic-unit-tests-static
Test: atest NetworkInterfaceTest
Test: Connect to Wi-Fi network
Test: Call getifaddrs() directly from within an app.
Test: Call NetworkInterface#getNetworkInterfaces() from within an app.
Change-Id: I95d124ae81bcb26583db5ad01d95d441d52f973c
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions