Date: Thu, 24 Jan 2008 08:50:24 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133985 for review Message-ID: <200801240850.m0O8oO46011411@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133985 Change 133985 by rwatson@rwatson_freebsd_capabilities on 2008/01/24 08:50:03 Allow reading POSIX configuration variables via sysctl in capability mode. This gets malloc(3) working there. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/kern/posix4_mib.c#2 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/kern/posix4_mib.c#2 (text+ko) ==== @@ -56,7 +56,7 @@ #define P1B_SYSCTL(num, name) \ SYSCTL_INT(_p1003_1b, num, \ - name, CTLFLAG_RD, facility + num - 1, 0, ""); + name, CTLFLAG_RD | CTLFLAG_CAPRD, facility + num - 1, 0, ""); #else @@ -64,7 +64,7 @@ #define P1B_SYSCTL(num, name) \ SYSCTL_INT(_kern_p1003_1b, OID_AUTO, \ - name, CTLFLAG_RD, facility + num - 1, 0, ""); + name, CTLFLAG_RD | CTLFLAG_CAPRD, facility + num - 1, 0, ""); SYSCTL_NODE(_kern, OID_AUTO, p1003_1b, CTLFLAG_RW, 0, "P1003.1B"); #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801240850.m0O8oO46011411>