소스 검색

Don't use ld.so.cache for SUID programs.

Joakim Tjernlund 21 년 전
부모
커밋
61e6ce8671
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ldso/ldso/dl-elf.c

+ 1 - 1
ldso/ldso/dl-elf.c

@@ -317,7 +317,7 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt,
 	 * the hard coded paths that follow (i.e before /lib and /usr/lib).
 	 */
 #ifdef __LDSO_CACHE_SUPPORT__
-	if (_dl_cache_addr != NULL && _dl_cache_addr != (caddr_t) - 1) {
+	if (!_dl_secure && _dl_cache_addr != NULL && _dl_cache_addr != (caddr_t) - 1) {
 		int i;
 		header_t *header = (header_t *) _dl_cache_addr;
 		libentry_t *libent = (libentry_t *) & header[1];