dd1d2c
diff -ru firefox-78.3.0/security/sandbox/linux/SandboxFilter.cpp firefox-78.4.0/security/sandbox/linux/SandboxFilter.cpp
dd1d2c
--- firefox-78.3.0/security/sandbox/linux/SandboxFilter.cpp	2020-09-14 21:21:02.000000000 +0200
dd1d2c
+++ firefox-78.4.0/security/sandbox/linux/SandboxFilter.cpp	2020-10-14 11:34:48.000000000 +0200
dd1d2c
@@ -243,14 +243,21 @@
dd1d2c
     auto path = reinterpret_cast<const char*>(aArgs.args[1]);
dd1d2c
     auto buf = reinterpret_cast<statstruct*>(aArgs.args[2]);
dd1d2c
     auto flags = static_cast<int>(aArgs.args[3]);
dd1d2c
+
dd1d2c
+    if (fd != AT_FDCWD && (flags & AT_EMPTY_PATH) != 0 &&
dd1d2c
+        strcmp(path, "") == 0) {
dd1d2c
+      return ConvertError(fstatsyscall(fd, buf));
dd1d2c
+    }
dd1d2c
+
dd1d2c
     if (fd != AT_FDCWD && path[0] != '/') {
dd1d2c
       SANDBOX_LOG_ERROR("unsupported fd-relative fstatat(%d, \"%s\", %p, %d)",
dd1d2c
                         fd, path, buf, flags);
dd1d2c
       return BlockedSyscallTrap(aArgs, nullptr);
dd1d2c
     }
dd1d2c
-    if ((flags & ~AT_SYMLINK_NOFOLLOW) != 0) {
dd1d2c
+    if ((flags & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT)) != 0) {
dd1d2c
       SANDBOX_LOG_ERROR("unsupported flags %d in fstatat(%d, \"%s\", %p, %d)",
dd1d2c
-                        (flags & ~AT_SYMLINK_NOFOLLOW), fd, path, buf, flags);
dd1d2c
+                        (flags & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT)), fd,
dd1d2c
+                        path, buf, flags);
dd1d2c
       return BlockedSyscallTrap(aArgs, nullptr);
dd1d2c
     }
dd1d2c
     return (flags & AT_SYMLINK_NOFOLLOW) == 0 ? broker->Stat(path, buf)