PERFORCE change 133985 for review
Robert Watson
rwatson at FreeBSD.org
Thu Jan 24 00:50:25 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133985
Change 133985 by rwatson at 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
More information about the p4-projects
mailing list