Bug 1273852 - Allow getsockopt in EvaluateSocketCall. r?jld draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Wed, 08 Jun 2016 19:05:08 +0200
changeset 376790 5e72698b82edb4b61eab15033ea5e843ca8f7c3b
parent 376789 58079166217ade999802f96362dea0f9127a2c27
child 376791 867f01b40471132e9afdd7765a08701c586d2025
push id20678
push usergpascutto@mozilla.com
push dateWed, 08 Jun 2016 18:50:51 +0000
reviewersjld
bugs1273852
milestone50.0a1
Bug 1273852 - Allow getsockopt in EvaluateSocketCall. r?jld MozReview-Commit-ID: F9rVM0VKmUR
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -435,16 +435,17 @@ public:
 #else // #ifdef DESKTOP
     case SYS_RECV:
     case SYS_SEND:
     case SYS_SOCKET: // DANGEROUS
     case SYS_CONNECT: // DANGEROUS
     case SYS_ACCEPT:
     case SYS_BIND:
     case SYS_LISTEN:
+    case SYS_GETSOCKOPT:
     case SYS_SETSOCKOPT:
     case SYS_GETSOCKNAME:
     case SYS_GETPEERNAME:
     case SYS_SHUTDOWN:
       return Some(Allow());
 #endif
     default:
       return SandboxPolicyCommon::EvaluateSocketCall(aCall);