diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-21 01:32:50 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-03-21 01:32:50 +0000 |
commit | caaedbfab59a2a03d897cf1684446bcf98ac9eb5 (patch) | |
tree | aaf53bb6a93facb3282d2a54e46ac0895afe9dd7 /libexec/ld.so/hppa | |
parent | 480dc4adde06fe54aa2665b9b4089af30a42820d (diff) |
Switch ld.so's stack smash handler from sendsyslog to sendsyslog2
and pass the LOG_CONS flag like libc's handler.
ok deraadt@ bluhm@ (who had a similar diff)
Diffstat (limited to 'libexec/ld.so/hppa')
-rw-r--r-- | libexec/ld.so/hppa/ldasm.S | 8 | ||||
-rw-r--r-- | libexec/ld.so/hppa/syscall.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libexec/ld.so/hppa/ldasm.S b/libexec/ld.so/hppa/ldasm.S index a53f810c27d..536f9304bf0 100644 --- a/libexec/ld.so/hppa/ldasm.S +++ b/libexec/ld.so/hppa/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.18 2015/11/15 03:41:24 deraadt Exp $ */ +/* $OpenBSD: ldasm.S,v 1.19 2016/03/21 01:32:48 guenther Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -272,11 +272,11 @@ ENTRY(_dl_getentropy,0) nop EXIT(_dl_getentropy) -ENTRY(_dl_sendsyslog,0) - SYSCALL(sendsyslog) +ENTRY(_dl_sendsyslog2,0) + SYSCALL(sendsyslog2) bv r0(rp) nop -EXIT(_dl_sendsyslog) +EXIT(_dl_sendsyslog2) ENTRY(_dl_pledge,0) SYSCALL(pledge) diff --git a/libexec/ld.so/hppa/syscall.h b/libexec/ld.so/hppa/syscall.h index e7bcca1b427..2991b9b34d8 100644 --- a/libexec/ld.so/hppa/syscall.h +++ b/libexec/ld.so/hppa/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.18 2015/11/15 03:41:24 deraadt Exp $ */ +/* $OpenBSD: syscall.h,v 1.19 2016/03/21 01:32:48 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -57,7 +57,7 @@ int _dl_lstat(const char *, struct stat *); int _dl_getcwd(char *, size_t); int _dl_utrace(const char *, const void *, size_t); int _dl_getentropy(char *, size_t); -int _dl_sendsyslog(const char *, size_t); +int _dl_sendsyslog2(const char *, size_t, int); static inline off_t _dl_lseek(int fildes, off_t offset, int whence) |