PERFORCE change 164517 for review
Robert Watson
rwatson at FreeBSD.org
Tue Jun 16 16:55:42 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=164517
Change 164517 by rwatson at rwatson_freebsd_capabilities on 2009/06/16 16:55:26
When running in rtld-elf-cap, define ld_insandbox(), which returns
1.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#17 edit
.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/rtld_sandbox.c#1 add
.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#18 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#17 (text+ko) ====
@@ -1,5 +1,5 @@
# $FreeBSD$
-# $P4: //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#16 $
+# $P4: //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#17 $
WITHOUT_SSP=
@@ -9,7 +9,7 @@
SRCS= rtld_start.S \
reloc.c rtld.c rtld_lock.c map_object.c \
malloc.c xmalloc.c debug.c \
- crtbrand.c rtld_caplibindex.c
+ crtbrand.c rtld_caplibindex.c rtld_sandbox.c
MAN= rtld-elf-cap.1
CSTD?= gnu99
CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD -DIN_RTLD_CAP -g
==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#18 (text+ko) ====
@@ -61,6 +61,7 @@
#ifdef IN_RTLD_CAP
#include "rtld_caplibindex.h"
+#include "rtld_sandbox.h"
#endif
#ifndef COMPAT_32BIT
@@ -244,6 +245,7 @@
(func_ptr_type) &_rtld_atfork_post,
#ifdef IN_RTLD_CAP
(func_ptr_type) &ld_caplibindex_lookup,
+ (func_ptr_type) &ld_insandbox,
#endif
NULL
};
More information about the p4-projects
mailing list