diff options
| author | anarkia1976 <stefano.villa1976@gmail.com> | 2016-01-08 11:47:06 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 12:06:53 +0200 |
| commit | 5dd114b6780be9d616147d9999e431011795bdad (patch) | |
| tree | 1142776c1c49e6492f1123970aed13e9efd4be94 /fs/binfmt_elf.c | |
| parent | e9c9fff8d3d4e053157db364ae4840882ab30eac (diff) | |
fs: binfmt_elf: fix get_atrandom_bytes defined but not used
Diffstat (limited to 'fs/binfmt_elf.c')
| -rw-r--r-- | fs/binfmt_elf.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 105f8dbec..c38dfe2c8 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -140,25 +140,6 @@ static int padzero(unsigned long elf_bss) #define ELF_BASE_PLATFORM NULL #endif -/* - * Use get_random_int() to implement AT_RANDOM while avoiding depletion - * of the entropy pool. - */ -static void get_atrandom_bytes(unsigned char *buf, size_t nbytes) -{ - unsigned char *p = buf; - - while (nbytes) { - unsigned int random_variable; - size_t chunk = min(nbytes, sizeof(random_variable)); - - random_variable = get_random_int(); - memcpy(p, &random_variable, chunk); - p += chunk; - nbytes -= chunk; - } -} - static int create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, unsigned long load_addr, unsigned long interp_load_addr) |
