diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-18 03:32:17 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-18 03:32:17 +0000 |
commit | 3f31c981b1a74d2ecb49a95f024d91fda9334da9 (patch) | |
tree | dd70740acafee7540a927682344dd670f5212846 /sys/kern/vfs_vnops.c | |
parent | a33427cdc74e87f3a511989dc14ddfedf42e80a4 (diff) |
Add a possibility to add a random offset to the stack on exec. This makes
it slightly harder to write generic buffer overflows. This doesn't really
give any real security, but it raises the bar for script-kiddies and it's
really cheap.
The range of the random offsets is controlled by the sysctl
kern.stackgap_random (must be a power of 2).
This is disabled by default right now, but we'll set it to a reasonable value
(1024?) soon, after some more testing.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
0 files changed, 0 insertions, 0 deletions