diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-07-06 17:15:44 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-09-21 13:07:02 -0400 |
commit | cdd1d58159140759052ec043bc9828d94ba97bc7 (patch) | |
tree | e3333e4eaa8c01c1ecd806dce2f180729749be2c /include | |
parent | f8a2c087c89ed5b638a2e62987f255d3f04f914e (diff) |
mingw: Fix NO_LOCAL_CLIENT_CRED build
Commit 4b4b9086 "os: support new implicit local user access mode [CVE-2015-3164
2/3]" carefully places the relevant code it adds under !NO_LOCAL_CLIENT_CRED,
but unfortunately doesn't notice that NO_LOCAL_CLIENT_CRED is defined as a
side-effect in the middle of GetLocalClientCreds(), so many of these checks
precede its definition.
Move the check if NO_LOCAL_CLIENT_CRED should be defined to configure.ac, so it
always occurs before it's first use.
v2:
Move check to configure.ac
v3:
Use AC_CACHE_CHECK and name cache varaible appropriately
[ajax: Massaged commit message]
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Ray Strode <rstrode@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index c2ba4347f..daaff8d5a 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -518,4 +518,7 @@ /* Listen on local socket */ #undef LISTEN_LOCAL +/* Define if no local socket credentials interface exists */ +#undef NO_LOCAL_CLIENT_CRED + #endif /* _DIX_CONFIG_H_ */ |