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-28 10:41:27 +0800 |
commit | ba1b5e34a77369e28ff563e47c088c55664a8a11 (patch) | |
tree | 1813422fabafe85d2b4aea163a0728f9ccf20fb1 /osx | |
parent | 97c2ec8dcfe14882bafb2f2c56502427c0ffa1d0 (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.
Closes #1436
Diffstat (limited to 'osx')
-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 99f83742..1db2e52c 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 */ |