binfmts.h 580 B

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