Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_BINFMTS_H |
| 3 | #define _UAPI_LINUX_BINFMTS_H |
| 4 | |
| 5 | #include <linux/capability.h> |
| 6 | |
| 7 | struct pt_regs; |
| 8 | |
| 9 | /* |
| 10 | * These are the maximum length and maximum number of strings passed to the |
| 11 | * execve() system call. MAX_ARG_STRLEN is essentially random but serves to |
| 12 | * prevent the kernel from being unduly impacted by misaddressed pointers. |
| 13 | * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. |
| 14 | */ |
| 15 | #define MAX_ARG_STRLEN (PAGE_SIZE * 32) |
| 16 | #define MAX_ARG_STRINGS 0x7FFFFFFF |
| 17 | |
| 18 | /* sizeof(linux_binprm->buf) */ |
Oleg Nesterov | 6eb3c3d | 2019-03-07 16:29:26 -0800 | [diff] [blame] | 19 | #define BINPRM_BUF_SIZE 256 |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 20 | |
| 21 | #endif /* _UAPI_LINUX_BINFMTS_H */ |