Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d17b728e authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Only adopt MANAGE_TEST_NETWORKS, not all shell permissions.

IpClientIntegrationTestCommon#setupTapInterface adopts the shell
permission identity in order to create the tap interface. This
causes the test to lose all non-shell permissions, and because
the test runs as the production networkstack user, it causes the
production networkstack on the device to lose non-shell
permissions as well.

Instead, only adopt the MANAGE_TEST_NETWORKS permission.

Fix: 215307963
Test: atest NetworkStackNextIntegrationTests:IpClientIntegrationTest
Test: no system crash if NetworkMonitor validates while test is running
Change-Id: Ib6c1d642549a2940664e63b374ed33d6fb00caa1
parent 2fa6fd33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment