Commit 6ea366b
Make sure that only the owner can call stopVpnProfile()
In stopVpnProfile(), it doesn't check if the caller's package
name is the same as the given one, so any app has chance to stop
the VPN profile of other apps.
Bug: 191382886
Test: atest FrameworksNetTests CtsNetTestCases \
CtsHostsideNetworkTests:HostsideVpnTests
Change-Id: Ib0a6e9ed191ff8c8bd55ce9902d894b6a339ace2
Merged-In: I254ffd1c08ec058d594b4ea55cbae5505f8497cc
(cherry picked from commit f3072fcd46112bad7c5f6ddd4cc35d2c67f00d11)1 parent b292b32 commit 6ea366b
2 files changed
Lines changed: 44 additions & 2 deletions
File tree
- services/core/java/com/android/server
- tests/net/java/com/android/server
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
4607 | 4608 | | |
4608 | 4609 | | |
4609 | 4610 | | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
4610 | 4630 | | |
4611 | 4631 | | |
4612 | 4632 | | |
| |||
4618 | 4638 | | |
4619 | 4639 | | |
4620 | 4640 | | |
4621 | | - | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
4622 | 4644 | | |
4623 | 4645 | | |
4624 | 4646 | | |
| |||
4635 | 4657 | | |
4636 | 4658 | | |
4637 | 4659 | | |
4638 | | - | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
4639 | 4663 | | |
4640 | 4664 | | |
4641 | 4665 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1227 | 1230 | | |
1228 | 1231 | | |
1229 | 1232 | | |
| |||
1368 | 1371 | | |
1369 | 1372 | | |
1370 | 1373 | | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1371 | 1377 | | |
1372 | 1378 | | |
1373 | 1379 | | |
| |||
7068 | 7074 | | |
7069 | 7075 | | |
7070 | 7076 | | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
| 7083 | + | |
| 7084 | + | |
| 7085 | + | |
| 7086 | + | |
| 7087 | + | |
| 7088 | + | |
7071 | 7089 | | |
7072 | 7090 | | |
7073 | 7091 | | |
| |||
0 commit comments