Implement stack protection support
this adds kernel & libroot stack protector hooks. it uses /dev/random in userspace. A configure option --enable-stack-protector is added to activate -fstack-protector on selected system components (ATM apps, kits, servers). Change-Id: If3a2920ba9aa0a85eaff4ba6778947f8c76ade31 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3895 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2021, Jérôme Duval, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _KERNEL_STACK_PROTECTOR_H
|
||||
#define _KERNEL_STACK_PROTECTOR_H
|
||||
|
||||
|
||||
void stack_protector_init();
|
||||
|
||||
|
||||
#endif /* _KERNEL_STACK_PROTECTOR_H */
|
||||
Reference in New Issue
Block a user