Bug 1322784 - Gently fail utime(), to deal with GConf/ORBit. r?gcp draft
authorJed Davis <jld@mozilla.com>
Tue, 30 May 2017 23:13:37 -0600
changeset 586840 c0571cf9f8b389d6a0150d16e6391ad798b38483
parent 586626 fbe0e3f31233cc7846a2168c613452a1d7147cc2
child 631118 028b43055f30b7ad111c1d4c01ef3ef8f12d33e7
push id61543
push userbmo:jld@mozilla.com
push dateWed, 31 May 2017 05:57:49 +0000
reviewersgcp
bugs1322784
milestone55.0a1
Bug 1322784 - Gently fail utime(), to deal with GConf/ORBit. r?gcp MozReview-Commit-ID: B4LmSGR6OEz
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -672,16 +672,21 @@ public:
       return Allow();
 
       // Bug 1354731: proprietary GL drivers try to mknod() their devices
     case __NR_mknod: {
       Arg<mode_t> mode(1);
       return If((mode & S_IFMT) == S_IFCHR, Error(EPERM))
         .Else(InvalidSyscall());
     }
+
+      // For ORBit called by GConf (on some systems) to get proxy
+      // settings.  Can remove when bug 1325242 happens in some form.
+    case __NR_utime:
+      return Error(EPERM);
 #endif
 
     case __NR_readlinkat:
 #ifdef DESKTOP
       // Bug 1290896
       return Allow();
 #else
       // Workaround for bug 964455: