summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2019-03-27 11:00:37 +0800
committerjunyulai <junyulai@google.com>2019-03-27 19:51:08 +0800
commit15178155e0e19d8ca4bd8ee66f9b560d9feb5ae7 (patch)
tree4d73c2911b0bfc3126cb3d765bf6b120d17e9454 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent422a3c14486f7beeb2297df07ad59159819a33be (diff)
Block unpriviledged apps which create keepalives with null fd
Currently, socketKeepalive implementation is accepting null fd due to backward compatibility with legacy packet keepalive API. However, due to lack of the fd, the service cannot guarantee the port is not reused by another app if the caller release the port for any reason. Thus, grant the null fd access only for priviledged apps. This commit also address some comments from aosp/918533. Bug: 126699232 Test: atest FrameworksNetTests Change-Id: I0baf582ff4ca8af6082c3754e8dfbcd867f39792
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions