svn commit: r259438 - head/sys/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Dec 15 23:19:43 UTC 2013


Author: pjd
Date: Sun Dec 15 23:19:42 2013
New Revision: 259438
URL: http://svnweb.freebsd.org/changeset/base/259438

Log:
  Fix syscalls that can be loaded as kernel modules - they were not given
  the flag allowing to call them from capability mode sandbox.
  
  Noticed by:	David Drysdale <drysdale at google.com>

Modified:
  head/sys/kern/makesyscalls.sh

Modified: head/sys/kern/makesyscalls.sh
==============================================================================
--- head/sys/kern/makesyscalls.sh	Sun Dec 15 23:15:12 2013	(r259437)
+++ head/sys/kern/makesyscalls.sh	Sun Dec 15 23:19:42 2013	(r259438)
@@ -460,7 +460,7 @@ s/\$//g
 		printf("\t{ %s, (sy_call_t *)", argssize) > sysent
 		column = 8 + 2 + length(argssize) + 15
 		if (flag("NOSTD")) {
-			printf("%s },", "lkmressys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT") > sysent
+			printf("lkmressys, AUE_NULL, NULL, 0, 0, %s, SY_THR_ABSENT },", flags) > sysent
 			column = column + length("lkmressys") + length("AUE_NULL") + 3
 		} else {
 			if (funcname == "nosys" || funcname == "sysarch" || 


More information about the svn-src-head mailing list