Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


binfmts.h
01: #ifndef _LINUX_BINFMTS_H
02: #define _LINUX_BINFMTS_H
03: 
04: #include <linux/capability.h>
05: 
06: struct pt_regs;
07: 
08: /*
09:  * These are the maximum length and maximum number of strings passed to the
10:  * execve() system call.  MAX_ARG_STRLEN is essentially random but serves to
11:  * prevent the kernel from being unduly impacted by misaddressed pointers.
12:  * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer.
13:  */
14: #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
15: #define MAX_ARG_STRINGS 0x7FFFFFFF
16: 
17: /* sizeof(linux_binprm->buf) */
18: #define BINPRM_BUF_SIZE 128
19: 
20: #endif /* _LINUX_BINFMTS_H */
21: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/