Bug 1322784 - Gently fail utime(), to deal with GConf/ORBit. r?gcp
MozReview-Commit-ID: B4LmSGR6OEz
--- 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: