sandbox-largefile.patch 664 B

123456789101112131415161718
  1. --- a/security/sandbox/linux/SandboxFilter.cpp 2020-11-23 22:41:14.556378950 +0100
  2. +++ b/security/sandbox/linux/SandboxFilter.cpp 2020-11-23 22:40:23.595806444 +0100
  3. @@ -68,7 +68,13 @@
  4. // The headers define O_LARGEFILE as 0 on x86_64, but we need the
  5. // actual value because it shows up in file flags.
  6. -#define O_LARGEFILE_REAL 00100000
  7. +#if defined(__x86_64__) || defined(__i386__) || defined(__mips__)
  8. +#define O_LARGEFILE_REAL 0100000
  9. +#elif defined(__powerpc__)
  10. +#define O_LARGEFILE_REAL 0200000
  11. +#else
  12. +#define O_LARGEFILE_REAL O_LARGEFILE
  13. +#endif
  14. // Not part of UAPI, but userspace sees it in F_GETFL; see bug 1650751.
  15. #define FMODE_NONOTIFY 0x4000000