diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-12-18 23:14:39 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-12-18 23:14:39 +0000 |
commit | 673e2dd652156342009930cf1f7d15623e4a543a (patch) | |
tree | 765f627665335f3c58e4e245461589ddb0063a75 /sys/sys/imgact.h | |
parent | c5354d593df9a5b97b6c4b1d9999915d93c8e103 (diff) | |
download | src-673e2dd652156342009930cf1f7d15623e4a543a.tar.gz src-673e2dd652156342009930cf1f7d15623e4a543a.zip |
Add ELF flag to disable ASLR stack gap.
Also centralize and unify checks to enable ASLR stack gap in a new
helper exec_stackgap().
PR: 239873
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=368772
Diffstat (limited to 'sys/sys/imgact.h')
-rw-r--r-- | sys/sys/imgact.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/imgact.h b/sys/sys/imgact.h index 5463b6f80d1c..cd130551c050 100644 --- a/sys/sys/imgact.h +++ b/sys/sys/imgact.h @@ -122,6 +122,7 @@ int exec_copyin_args(struct image_args *, const char *, enum uio_seg, char **, char **); int exec_copyin_data_fds(struct thread *, struct image_args *, const void *, size_t, const int *, size_t); +void exec_stackgap(struct image_params *imgp, uintptr_t *dp); int pre_execve(struct thread *td, struct vmspace **oldvmspace); void post_execve(struct thread *td, int error, struct vmspace *oldvmspace); #endif |