diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-05-30 01:13:54 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-05-30 01:13:54 +0000 |
commit | e0412874e2e423e326125c2e936d4d27d7f2e87b (patch) | |
tree | a812a7dd7f9a4d94243a97d3947e66fe9d372314 /libexec/ld.so/sparc64/syscall.h | |
parent | 441e1efd56d21b17558bc2e2803d3409279c359b (diff) |
When loading a shared object or libraries dependant object, load them
in random order. This will reduce the possiblity of a buffer overflow
being able to predict the addresss of useful code. Can be disabled
with the LD_NORANDOM environment variable for debugging purposes.
ok deraadt.
Diffstat (limited to 'libexec/ld.so/sparc64/syscall.h')
-rw-r--r-- | libexec/ld.so/sparc64/syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/sparc64/syscall.h b/libexec/ld.so/sparc64/syscall.h index cd39a0550c7..aae732461a6 100644 --- a/libexec/ld.so/sparc64/syscall.h +++ b/libexec/ld.so/sparc64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.11 2002/12/18 19:20:02 drahn Exp $ */ +/* $OpenBSD: syscall.h,v 1.12 2003/05/30 01:13:53 drahn Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -59,6 +59,7 @@ int _dl_fstat(int, struct stat *); int _dl_fcntl(int, int, ...); int _dl_getdirentries(int, char*, int, long *); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); +int _dl_sysctl(int *, u_int, void *, size_t *, void *, size_t); static inline off_t _dl_lseek(int fildes, off_t offset, int whence) |