[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-78.10.0esr-10.0-1] Bug 40193: Add `AT_EMPTY_PATH` definition



commit 210345cd724b0e12cdbcafcf0d5cc28af5b9f294
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Fri Oct 16 08:47:05 2020 +0000

    Bug 40193: Add `AT_EMPTY_PATH` definition
    
    `AT_EMPTY_PATH` comes with glibc 2.14. However, Debian Wheezy, which we
    still use for building our stable Linux bundles, comes only with glibc
    2.13 resulting in an "undeclared-identifier"-error during build time.
    
    This problem got introduced by fixing
    https://bugzilla.mozilla.org/show_bug.cgi?id=1660901.
---
 security/sandbox/linux/SandboxFilter.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
index dc5dd51a5e3e..2ca3fbb45027 100644
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -73,6 +73,10 @@ using namespace sandbox::bpf_dsl;
 // Not part of UAPI, but userspace sees it in F_GETFL; see bug 1650751.
 #define FMODE_NONOTIFY 0x4000000
 
+#ifndef AT_EMPTY_PATH
+#  define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
+#endif
+
 #ifndef F_LINUX_SPECIFIC_BASE
 #  define F_LINUX_SPECIFIC_BASE 1024
 #else



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits