diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-04-20 17:51:27 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-04-27 12:26:17 +0800 |
commit | 8412c867a501e3a68e55fef6215e86d3ac9f617b (patch) | |
tree | 76e27c90b5fa75816692c1b493dc65734aec7993 /osx/config.h | |
parent | 10642a34f17ae45bd93be3ae6021ee920d3da0c2 (diff) |
Check effective credentials of socket peers
Fix for CVE-2014-2905.
Code for getpeereid() on non-BSD systems imported from the PostgreSQL
project under a BSD-style license.
Diffstat (limited to 'osx/config.h')
-rw-r--r-- | osx/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/osx/config.h b/osx/config.h index 4968a78b..bc058ae6 100644 --- a/osx/config.h +++ b/osx/config.h @@ -40,6 +40,12 @@ /* Define to 1 if you have the <getopt.h> header file. */ #define HAVE_GETOPT_H 1 +/* Define to 1 if you have the `getpeereid' function. */ +#define HAVE_GETPEEREID 1 + +/* Define to 1 if you have the `getpeerucred' function. */ +/* #undef HAVE_GETPEERUCRED */ + /* Define to 1 if you have the `gettext' function. */ /* #undef HAVE_GETTEXT */ |