binfmts.h 643 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI_LINUX_BINFMTS_H
  3. #define _UAPI_LINUX_BINFMTS_H
  4. #include <linux/capability.h>
  5. struct pt_regs;
  6. /*
  7. * These are the maximum length and maximum number of strings passed to the
  8. * execve() system call. MAX_ARG_STRLEN is essentially random but serves to
  9. * prevent the kernel from being unduly impacted by misaddressed pointers.
  10. * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer.
  11. */
  12. #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
  13. #define MAX_ARG_STRINGS 0x7FFFFFFF
  14. /* sizeof(linux_binprm->buf) */
  15. #define BINPRM_BUF_SIZE 128
  16. #endif /* _UAPI_LINUX_BINFMTS_H */