summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-18 03:32:17 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-18 03:32:17 +0000
commit3f31c981b1a74d2ecb49a95f024d91fda9334da9 (patch)
treedd70740acafee7540a927682344dd670f5212846 /sys/kern/vfs_vnops.c
parenta33427cdc74e87f3a511989dc14ddfedf42e80a4 (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