18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _UAPI_LINUX_BINFMTS_H 38c2ecf20Sopenharmony_ci#define _UAPI_LINUX_BINFMTS_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/capability.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cistruct pt_regs; 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* 108c2ecf20Sopenharmony_ci * These are the maximum length and maximum number of strings passed to the 118c2ecf20Sopenharmony_ci * execve() system call. MAX_ARG_STRLEN is essentially random but serves to 128c2ecf20Sopenharmony_ci * prevent the kernel from being unduly impacted by misaddressed pointers. 138c2ecf20Sopenharmony_ci * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci#define MAX_ARG_STRLEN (PAGE_SIZE * 32) 168c2ecf20Sopenharmony_ci#define MAX_ARG_STRINGS 0x7FFFFFFF 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* sizeof(linux_binprm->buf) */ 198c2ecf20Sopenharmony_ci#define BINPRM_BUF_SIZE 256 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* _UAPI_LINUX_BINFMTS_H */ 22