Messages in this thread | | | Date | Fri, 03 Oct 2008 10:41:56 -0700 | From | Ulrich Drepper <> | Subject | Re: [PATCH] ELF: implement AT_RANDOM for glibc PRNG seeding |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Kees Cook wrote: > +#ifndef ELF_AUXV_RANDOM_SIZE > +/* > + * AT_RANDOM provides 16 random bytes which can be used to seed > + * userspace PRNGs at program load time. > + */ > +#define ELF_AUXV_RANDOM_SIZE 16 > +#endif
No, this cannot be changeable because there is no way for userland to find out the size. And no, don't reintroduce the the extra aux vector entry. Just define it to 16 and that's it.
- -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkjmWWQACgkQ2ijCOnn/RHTbUACfU7i4DImOYXiFNxPa7m7HWiMX 4iQAoLk+7r0bVPGSrjAUcwW701oeDKlJ =y+Ci -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |