Linux Kernel
3.7.1
|
#include <linux/sched.h>
#include <linux/unistd.h>
#include <asm/exec.h>
#include <uapi/linux/binfmts.h>
Go to the source code of this file.
Data Structures | |
struct | linux_binprm |
struct | coredump_params |
struct | linux_binfmt |
Macros | |
#define | CORENAME_MAX_SIZE 128 |
#define | MAX_ARG_PAGES 32 |
#define | BINPRM_FLAGS_ENFORCE_NONDUMP_BIT 0 |
#define | BINPRM_FLAGS_ENFORCE_NONDUMP (1 << BINPRM_FLAGS_ENFORCE_NONDUMP_BIT) |
#define | BINPRM_FLAGS_EXECFD_BIT 1 |
#define | BINPRM_FLAGS_EXECFD (1 << BINPRM_FLAGS_EXECFD_BIT) |
#define | BINPRM_MAX_RECURSION 4 |
#define | SUID_DUMP_DISABLE 0 /* No setuid dumping */ |
#define | SUID_DUMP_USER 1 /* Dump as user of process */ |
#define | SUID_DUMP_ROOT 2 /* Dump as root */ |
#define | EXSTACK_DEFAULT 0 /* Whatever the arch defaults to */ |
#define | EXSTACK_DISABLE_X 1 /* Disable executable stacks */ |
#define | EXSTACK_ENABLE_X 2 /* Enable executable stacks */ |
Functions | |
void | __register_binfmt (struct linux_binfmt *fmt, int insert) |
void | unregister_binfmt (struct linux_binfmt *) |
int | prepare_binprm (struct linux_binprm *) |
int __must_check | remove_arg_zero (struct linux_binprm *) |
int | search_binary_handler (struct linux_binprm *, struct pt_regs *) |
int | flush_old_exec (struct linux_binprm *bprm) |
void | setup_new_exec (struct linux_binprm *bprm) |
void | would_dump (struct linux_binprm *, struct file *) |
int | setup_arg_pages (struct linux_binprm *bprm, unsigned long stack_top, int executable_stack) |
int | bprm_mm_init (struct linux_binprm *bprm) |
int | copy_strings_kernel (int argc, const char *const *argv, struct linux_binprm *bprm) |
int | prepare_bprm_creds (struct linux_binprm *bprm) |
void | install_exec_creds (struct linux_binprm *bprm) |
void | set_binfmt (struct linux_binfmt *new) |
void | free_bprm (struct linux_binprm *) |
Variables | |
int | suid_dumpable |
#define BINPRM_FLAGS_ENFORCE_NONDUMP (1 << BINPRM_FLAGS_ENFORCE_NONDUMP_BIT) |
#define BINPRM_FLAGS_EXECFD (1 << BINPRM_FLAGS_EXECFD_BIT) |
#define EXSTACK_DISABLE_X 1 /* Disable executable stacks */ |
void __register_binfmt | ( | struct linux_binfmt * | fmt, |
int | insert | ||
) |
int bprm_mm_init | ( | struct linux_binprm * | bprm | ) |
int flush_old_exec | ( | struct linux_binprm * | bprm | ) |
void free_bprm | ( | struct linux_binprm * | ) |
void install_exec_creds | ( | struct linux_binprm * | bprm | ) |
int prepare_binprm | ( | struct linux_binprm * | ) |
int prepare_bprm_creds | ( | struct linux_binprm * | bprm | ) |
int __must_check remove_arg_zero | ( | struct linux_binprm * | ) |
int search_binary_handler | ( | struct linux_binprm * | , |
struct pt_regs * | |||
) |
void set_binfmt | ( | struct linux_binfmt * | new | ) |
int setup_arg_pages | ( | struct linux_binprm * | bprm, |
unsigned long | stack_top, | ||
int | executable_stack | ||
) |
void setup_new_exec | ( | struct linux_binprm * | bprm | ) |
void unregister_binfmt | ( | struct linux_binfmt * | ) |