OSDN Git Service

[ipsec-doze] Add fchown to IpSecService to support doze
authorBenedict Wong <benedictwong@google.com>
Thu, 7 Dec 2017 05:56:35 +0000 (21:56 -0800)
committerBenedict Wong <benedictwong@google.com>
Tue, 19 Dec 2017 00:01:58 +0000 (16:01 -0800)
commitba8d313efccc74abeaf1391ad95edc42631f84ab
tree36750e37dea933394d6a1f3b452d3646d71af032
parenteb44ebbfcd0cb0fa9f56f9292a9549dfef397b34
[ipsec-doze] Add fchown to IpSecService to support doze

Encap sockets are currently created as the system server, and should be
fchown'd to the user for whom it was created on behalf of.

Bug: 62994731
Test: New tests added and run to IpSecService
Change-Id: Icc49e709ae588981e69765fdb77537d7ffbac5fe
services/core/java/com/android/server/IpSecService.java
tests/net/java/com/android/server/IpSecServiceTest.java