pkgsrc/security/openssh/patches/patch-defines.h
jperkin 13ff0e954c Explicitly disable roaming, as per CVE-2016-0777 and CVE-2016-0778.
Fix patch dates and offsets while here.  Bump PKGREVISION.
2016-01-18 12:53:25 +00:00

47 lines
1,014 B
C

$NetBSD: patch-defines.h,v 1.4 2016/01/18 12:53:26 jperkin Exp $
Define ROOTUID, UTMPX_FILE and WTMPX_FILE
--- defines.h.orig 2015-08-21 04:49:03.000000000 +0000
+++ defines.h
@@ -30,6 +30,15 @@
/* Constants */
+#ifdef HAVE_INTERIX
+/* Interix has a special concept of "administrator". */
+# define ROOTUID 197108
+# define ROOTGID 131616
+#else
+# define ROOTUID 0
+# define ROOTGID 0
+#endif
+
#if defined(HAVE_DECL_SHUT_RD) && HAVE_DECL_SHUT_RD == 0
enum
{
@@ -721,6 +730,24 @@ struct winsize {
# endif
# endif
#endif
+#ifndef UTMPX_FILE
+# ifdef _PATH_UTMPX
+# define UTMPX_FILE _PATH_UTMPX
+# else
+# ifdef CONF_UTMPX_FILE
+# define UTMPX_FILE CONF_UTMPX_FILE
+# endif
+# endif
+#endif
+#ifndef WTMPX_FILE
+# ifdef _PATH_WTMPX
+# define WTMPX_FILE _PATH_WTMPX
+# else
+# ifdef CONF_WTMPX_FILE
+# define WTMPX_FILE CONF_WTMPX_FILE
+# endif
+# endif
+#endif
/* pick up the user's location for lastlog if given */
#ifndef LASTLOG_FILE
# ifdef _PATH_LASTLOG