Bug 1322784 - Gently fail utime(), to deal with GConf/ORBit. r=gcp
authorJed Davis <jld@mozilla.com>
Tue, 30 May 2017 23:13:37 -0600
changeset 410050 fe87806bd7f49b07860acc97c16ecd5c9cab794f
parent 410049 13e2d926f0e613674d1fc90281a1c43e64616ffe
child 410051 eb9b5fe6b4c7c59507847f3cf9f62d0e577d6a6c
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1322784
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: