Bug 1273852 - Allow getsockopt in EvaluateSocketCall. r=jld draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Wed, 08 Jun 2016 19:05:08 +0200
changeset 382480 2b42bfb6d85ffb7c35ad971b544a757ebf313421
parent 382479 afb33482cf279349d8fbcfab8880c146ddb9be70
child 382481 3934aac1846c4ccee187250045cd0502e23769e7
push id21732
push usergpascutto@mozilla.com
push dateWed, 29 Jun 2016 18:36:30 +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);