aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/binfmts.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/binfmts.h')
-rw-r--r--include/linux/binfmts.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
index 91c8c07fe8b..b7fc55ec8d4 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -37,7 +37,8 @@ struct linux_binprm{
37 int sh_bang; 37 int sh_bang;
38 struct file * file; 38 struct file * file;
39 int e_uid, e_gid; 39 int e_uid, e_gid;
40 kernel_cap_t cap_inheritable, cap_permitted, cap_effective; 40 kernel_cap_t cap_inheritable, cap_permitted;
41 bool cap_effective;
41 void *security; 42 void *security;
42 int argc, envc; 43 int argc, envc;
43 char * filename; /* Name of binary as seen by procps */ 44 char * filename; /* Name of binary as seen by procps */
@@ -63,17 +64,17 @@ struct linux_binprm{
63 * linux accepts. 64 * linux accepts.
64 */ 65 */
65struct linux_binfmt { 66struct linux_binfmt {
66 struct linux_binfmt * next; 67 struct list_head lh;
67 struct module *module; 68 struct module *module;
68 int (*load_binary)(struct linux_binprm *, struct pt_regs * regs); 69 int (*load_binary)(struct linux_binprm *, struct pt_regs * regs);
69 int (*load_shlib)(struct file *); 70 int (*load_shlib)(struct file *);
70 int (*core_dump)(long signr, struct pt_regs * regs, struct file * file); 71 int (*core_dump)(long signr, struct pt_regs *regs, struct file *file, unsigned long limit);
71 unsigned long min_coredump; /* minimal dump size */ 72 unsigned long min_coredump; /* minimal dump size */
72 int hasvdso; 73 int hasvdso;
73}; 74};
74 75
75extern int register_binfmt(struct linux_binfmt *); 76extern int register_binfmt(struct linux_binfmt *);
76extern int unregister_binfmt(struct linux_binfmt *); 77extern void unregister_binfmt(struct linux_binfmt *);
77 78
78extern int prepare_binprm(struct linux_binprm *); 79extern int prepare_binprm(struct linux_binprm *);
79extern int __must_check remove_arg_zero(struct linux_binprm *); 80extern int __must_check remove_arg_zero(struct linux_binprm *);