Commit fa5ed9f5 authored by Robert Sesek's avatar Robert Sesek Committed by Commit Bot

[Android] Allow setsockopt(<fd>, SOL_SOCKET, SO_SNDBUF, ...)

Crash analysis shows this as a low-volume violation on stable.

Cq-Include-Trybots: master.tryserver.chromium.android:android_arm64_dbg_recipe;master.tryserver.chromium.android:android_compile_mips_dbg;master.tryserver.chromium.android:android_compile_x64_dbg;master.tryserver.chromium.android:android_compile_x86_dbg
Change-Id: I1a077a5f1f3e975162138fc394766acc9354c9c7
Reviewed-on: https://chromium-review.googlesource.com/848643Reviewed-by: default avatarJorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526904}
parent 6616b929
...@@ -205,6 +205,7 @@ ResultExpr BaselinePolicyAndroid::EvaluateSyscall(int sysno) const { ...@@ -205,6 +205,7 @@ ResultExpr BaselinePolicyAndroid::EvaluateSyscall(int sysno) const {
return If(AllOf(level == SOL_SOCKET, return If(AllOf(level == SOL_SOCKET,
AnyOf(option == SO_SNDTIMEO, AnyOf(option == SO_SNDTIMEO,
option == SO_RCVTIMEO, option == SO_RCVTIMEO,
option == SO_SNDBUF,
option == SO_REUSEADDR)), option == SO_REUSEADDR)),
Allow()) Allow())
.Else(BaselinePolicy::EvaluateSyscall(sysno)); .Else(BaselinePolicy::EvaluateSyscall(sysno));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment