Module Name:    src
Committed By:   pgoyette
Date:           Thu Mar 15 23:32:35 UTC 2018

Modified Files:
        src/sys/compat/common [pgoyette-compat]: compat_mod.c

Log Message:
The big all-inclusive compat module still needs to initialize the
compat_70 stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.24.14.9 -r1.24.14.10 src/sys/compat/common/compat_mod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/common/compat_mod.c
diff -u src/sys/compat/common/compat_mod.c:1.24.14.9 src/sys/compat/common/compat_mod.c:1.24.14.10
--- src/sys/compat/common/compat_mod.c:1.24.14.9	Thu Mar 15 22:46:22 2018
+++ src/sys/compat/common/compat_mod.c	Thu Mar 15 23:32:35 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $	*/
+/*	$NetBSD: compat_mod.c,v 1.24.14.10 2018/03/15 23:32:35 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.10 2018/03/15 23:32:35 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -78,6 +78,11 @@ void if_50_init(void);
 void if_50_fini(void);
 #endif
 
+#ifdef COMPAT_70
+#include <compat/net/route.h>
+#include <compat/net/route_70.h>
+#endif
+
 static const char * const compat_includes[] = {
 	"compat_70",
 	NULL
@@ -282,9 +287,17 @@ compat_modcmd(modcmd_t cmd, void *arg)
 		uvm_50_init();
 		if_50_init();
 #endif
+#ifdef COMPAT_70
+		vec_ocreds_valid = true;
+		rtsock_70_init();
+#endif
 		return 0;
 
 	case MODULE_CMD_FINI:
+#ifdef COMPAT_70
+		rtsock_70_fini();
+		vec_ocreds_valid = false;
+#endif
 #ifdef COMPAT_10
 		vfs_syscalls_10_fini();
 #endif

Reply via email to