Integration of ProPolice in FreeBSD
Antoine Brodin
antoine at FreeBSD.org
Sun Apr 20 10:20:46 UTC 2008
On Sun, Apr 20, 2008 at 11:59 AM, Ed Schouten <ed at 80386.nl> wrote:
> * Jeremie Le Hen <jeremie at le-hen.org> wrote:
>
> > If you want to look at the patch, this is the last file.
> > http://tataz.chchile.org/~tataz/FreeBSD/SSP/fbsd8-ssp.diff
>
> Couldn't __stack_chk_init() be implemented like this:
>
> | static void
> | __stack_chk_init(void *dummy __unused)
> | {
> | arc4rand(__stack_chk_guard, sizeof(__stack_chk_guard), 0);
> | }
Hi Ed,
You can't do this because arc4rand will be protected and the guard
won't be same when you return from arc4rand.
Cheers,
Antoine
More information about the freebsd-arch
mailing list