Home
last modified time | relevance | path

Searched refs:bprm (Results 1 – 55 of 55) sorted by relevance

/linux-4.4.14/fs/
Dexec.c176 static void acct_arg_size(struct linux_binprm *bprm, unsigned long pages) in acct_arg_size() argument
179 long diff = (long)(pages - bprm->vma_pages); in acct_arg_size()
184 bprm->vma_pages = pages; in acct_arg_size()
188 static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos, in get_arg_page() argument
196 ret = expand_downwards(bprm->vma, pos); in get_arg_page()
201 ret = get_user_pages(current, bprm->mm, pos, in get_arg_page()
207 unsigned long size = bprm->vma->vm_end - bprm->vma->vm_start; in get_arg_page()
210 acct_arg_size(bprm, size / PAGE_SIZE); in get_arg_page()
241 static void free_arg_page(struct linux_binprm *bprm, int i) in free_arg_page() argument
245 static void free_arg_pages(struct linux_binprm *bprm) in free_arg_pages() argument
[all …]
Dbinfmt_script.c17 static int load_script(struct linux_binprm *bprm) in load_script() argument
25 if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!')) in load_script()
34 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_script()
42 allow_write_access(bprm->file); in load_script()
43 fput(bprm->file); in load_script()
44 bprm->file = NULL; in load_script()
46 bprm->buf[BINPRM_BUF_SIZE - 1] = '\0'; in load_script()
47 if ((cp = strchr(bprm->buf, '\n')) == NULL) in load_script()
48 cp = bprm->buf+BINPRM_BUF_SIZE-1; in load_script()
50 while (cp > bprm->buf) { in load_script()
[all …]
Dbinfmt_em86.c25 static int load_em86(struct linux_binprm *bprm) in load_em86() argument
33 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
41 !bprm->file->f_op->mmap) { in load_em86()
46 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_em86()
49 allow_write_access(bprm->file); in load_em86()
50 fput(bprm->file); in load_em86()
51 bprm->file = NULL; in load_em86()
68 remove_arg_zero(bprm); in load_em86()
69 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86()
71 bprm->argc++; in load_em86()
[all …]
Dbinfmt_flat.c123 struct linux_binprm * bprm) in create_flat_tables() argument
128 int argc = bprm->argc; in create_flat_tables()
129 int envc = bprm->envc; in create_flat_tables()
182 struct linux_binprm *bprm, in decompress_exec() argument
210 ret = kernel_read(bprm->file, offset, buf, LBUFSIZE); in decompress_exec()
281 ret = kernel_read(bprm->file, fpos, buf, LBUFSIZE); in decompress_exec()
426 static int load_flat_file(struct linux_binprm * bprm, in load_flat_file() argument
443 hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */ in load_flat_file()
444 inode = file_inode(bprm->file); in load_flat_file()
472 printk("BINFMT_FLAT: Loading file: %s\n", bprm->filename); in load_flat_file()
[all …]
Dbinfmt_aout.c144 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm) in create_aout_tables() argument
149 int argc = bprm->argc; in create_aout_tables()
150 int envc = bprm->envc; in create_aout_tables()
157 if (bprm->loader) { in create_aout_tables()
160 put_user(bprm->loader, --sp); in create_aout_tables()
163 put_user(bprm->exec, --sp); in create_aout_tables()
202 static int load_aout_binary(struct linux_binprm * bprm) in load_aout_binary() argument
211 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
215 i_size_read(file_inode(bprm->file)) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
223 if (!bprm->file->f_op->mmap) in load_aout_binary()
[all …]
Dbinfmt_misc.c84 static Node *check_file(struct linux_binprm *bprm) in check_file() argument
86 char *p = strrchr(bprm->interp, '.'); in check_file()
107 s = bprm->buf + e->offset; in check_file()
126 static int load_misc_binary(struct linux_binprm *bprm) in load_misc_binary() argument
141 fmt = check_file(bprm); in load_misc_binary()
149 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_misc_binary()
153 retval = remove_arg_zero(bprm); in load_misc_binary()
169 fd_install(fd_binary, bprm->file); in load_misc_binary()
173 would_dump(bprm, bprm->file); in load_misc_binary()
175 allow_write_access(bprm->file); in load_misc_binary()
[all …]
Dbinfmt_elf_fdpic.c185 static int load_elf_fdpic_binary(struct linux_binprm *bprm) in load_elf_fdpic_binary() argument
207 exec_params.hdr = *(struct elfhdr *) bprm->buf; in load_elf_fdpic_binary()
212 if (!is_elf(&exec_params.hdr, bprm->file)) in load_elf_fdpic_binary()
226 retval = elf_fdpic_fetch_phdrs(&exec_params, bprm->file); in load_elf_fdpic_binary()
248 retval = kernel_read(bprm->file, in load_elf_fdpic_binary()
277 would_dump(bprm, interpreter); in load_elf_fdpic_binary()
279 retval = kernel_read(interpreter, 0, bprm->buf, in load_elf_fdpic_binary()
287 interp_params.hdr = *((struct elfhdr *) bprm->buf); in load_elf_fdpic_binary()
343 retval = flush_old_exec(bprm); in load_elf_fdpic_binary()
357 setup_new_exec(bprm); in load_elf_fdpic_binary()
[all …]
Dbinfmt_elf.c50 static int load_elf_binary(struct linux_binprm *bprm);
151 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables() argument
154 unsigned long p = bprm->p; in create_elf_tables()
155 int argc = bprm->argc; in create_elf_tables()
156 int envc = bprm->envc; in create_elf_tables()
248 NEW_AUX_ENT(AT_SECURE, security_bprm_secureexec(bprm)); in create_elf_tables()
253 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
262 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) { in create_elf_tables()
263 NEW_AUX_ENT(AT_EXECFD, bprm->interp_data); in create_elf_tables()
276 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
[all …]
/linux-4.4.14/arch/alpha/kernel/
Dbinfmt_loader.c8 static int load_binary(struct linux_binprm *bprm) in load_binary() argument
10 struct exec *eh = (struct exec *)bprm->buf; in load_binary()
18 if (bprm->loader) in load_binary()
21 allow_write_access(bprm->file); in load_binary()
22 fput(bprm->file); in load_binary()
23 bprm->file = NULL; in load_binary()
25 loader = bprm->vma->vm_end - sizeof(void *); in load_binary()
33 bprm->taso = eh->ah.entry < 0x100000000UL; in load_binary()
35 bprm->file = file; in load_binary()
36 bprm->loader = loader; in load_binary()
[all …]
/linux-4.4.14/include/linux/
Dbinfmts.h101 extern int flush_old_exec(struct linux_binprm * bprm);
102 extern void setup_new_exec(struct linux_binprm * bprm);
112 extern int setup_arg_pages(struct linux_binprm * bprm,
115 extern int bprm_change_interp(char *interp, struct linux_binprm *bprm);
117 struct linux_binprm *bprm);
118 extern int prepare_bprm_creds(struct linux_binprm *bprm);
119 extern void install_exec_creds(struct linux_binprm *bprm);
Daudit.h244 extern void __audit_bprm(struct linux_binprm *bprm);
252 extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm,
273 static inline void audit_bprm(struct linux_binprm *bprm) in audit_bprm() argument
276 __audit_bprm(bprm); in audit_bprm()
311 static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, in audit_log_bprm_fcaps() argument
316 return __audit_log_bprm_fcaps(bprm, new, old); in audit_log_bprm_fcaps()
404 static inline void audit_bprm(struct linux_binprm *bprm) in audit_bprm() argument
427 static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, in audit_log_bprm_fcaps() argument
Dima.h17 extern int ima_bprm_check(struct linux_binprm *bprm);
25 static inline int ima_bprm_check(struct linux_binprm *bprm) in ima_bprm_check() argument
Dsecurity.h80 extern int cap_bprm_set_creds(struct linux_binprm *bprm);
81 extern int cap_bprm_secureexec(struct linux_binprm *bprm);
211 int security_bprm_set_creds(struct linux_binprm *bprm);
212 int security_bprm_check(struct linux_binprm *bprm);
213 void security_bprm_committing_creds(struct linux_binprm *bprm);
214 void security_bprm_committed_creds(struct linux_binprm *bprm);
215 int security_bprm_secureexec(struct linux_binprm *bprm);
471 static inline int security_bprm_set_creds(struct linux_binprm *bprm) in security_bprm_set_creds() argument
473 return cap_bprm_set_creds(bprm); in security_bprm_set_creds()
476 static inline int security_bprm_check(struct linux_binprm *bprm) in security_bprm_check() argument
[all …]
Dlsm_hooks.h1330 int (*bprm_set_creds)(struct linux_binprm *bprm);
1331 int (*bprm_check_security)(struct linux_binprm *bprm);
1332 int (*bprm_secureexec)(struct linux_binprm *bprm);
1333 void (*bprm_committing_creds)(struct linux_binprm *bprm);
1334 void (*bprm_committed_creds)(struct linux_binprm *bprm);
/linux-4.4.14/security/
Dcommoncap.c291 static inline void bprm_clear_caps(struct linux_binprm *bprm) in bprm_clear_caps() argument
293 cap_clear(bprm->cred->cap_permitted); in bprm_clear_caps()
294 bprm->cap_effective = false; in bprm_clear_caps()
345 struct linux_binprm *bprm, in bprm_caps_from_vfs_caps() argument
349 struct cred *new = bprm->cred; in bprm_caps_from_vfs_caps()
446 static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_cap) in get_file_caps() argument
451 bprm_clear_caps(bprm); in get_file_caps()
456 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in get_file_caps()
459 rc = get_vfs_caps_from_disk(bprm->file->f_path.dentry, &vcaps); in get_file_caps()
463 __func__, rc, bprm->filename); in get_file_caps()
[all …]
Dsecurity.c239 int security_bprm_set_creds(struct linux_binprm *bprm) in security_bprm_set_creds() argument
241 return call_int_hook(bprm_set_creds, 0, bprm); in security_bprm_set_creds()
244 int security_bprm_check(struct linux_binprm *bprm) in security_bprm_check() argument
248 ret = call_int_hook(bprm_check_security, 0, bprm); in security_bprm_check()
251 return ima_bprm_check(bprm); in security_bprm_check()
254 void security_bprm_committing_creds(struct linux_binprm *bprm) in security_bprm_committing_creds() argument
256 call_void_hook(bprm_committing_creds, bprm); in security_bprm_committing_creds()
259 void security_bprm_committed_creds(struct linux_binprm *bprm) in security_bprm_committed_creds() argument
261 call_void_hook(bprm_committed_creds, bprm); in security_bprm_committed_creds()
264 int security_bprm_secureexec(struct linux_binprm *bprm) in security_bprm_secureexec() argument
[all …]
/linux-4.4.14/security/apparmor/include/
Ddomain.h26 int apparmor_bprm_set_creds(struct linux_binprm *bprm);
27 int apparmor_bprm_secureexec(struct linux_binprm *bprm);
28 void apparmor_bprm_committing_creds(struct linux_binprm *bprm);
29 void apparmor_bprm_committed_creds(struct linux_binprm *bprm);
/linux-4.4.14/arch/x86/ia32/
Dia32_aout.c219 static u32 __user *create_aout_tables(char __user *p, struct linux_binprm *bprm) in create_aout_tables() argument
222 int argc = bprm->argc, envc = bprm->envc; in create_aout_tables()
260 static int load_aout_binary(struct linux_binprm *bprm) in load_aout_binary() argument
267 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
271 i_size_read(file_inode(bprm->file)) < in load_aout_binary()
289 retval = flush_old_exec(bprm); in load_aout_binary()
297 setup_new_exec(bprm); in load_aout_binary()
310 retval = setup_arg_pages(bprm, IA32_STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
314 install_exec_creds(bprm); in load_aout_binary()
327 error = read_code(bprm->file, text_addr, 32, in load_aout_binary()
[all …]
/linux-4.4.14/security/apparmor/
Ddomain.c337 int apparmor_bprm_set_creds(struct linux_binprm *bprm) in apparmor_bprm_set_creds() argument
346 file_inode(bprm->file)->i_uid, in apparmor_bprm_set_creds()
347 file_inode(bprm->file)->i_mode in apparmor_bprm_set_creds()
352 if (bprm->cred_prepared) in apparmor_bprm_set_creds()
355 cxt = cred_cxt(bprm->cred); in apparmor_bprm_set_creds()
367 error = aa_path_name(&bprm->file->f_path, profile->path_flags, &buffer, in apparmor_bprm_set_creds()
373 name = bprm->filename; in apparmor_bprm_set_creds()
461 if (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS) { in apparmor_bprm_set_creds()
470 if (bprm->unsafe & LSM_UNSAFE_SHARE) { in apparmor_bprm_set_creds()
475 if (bprm->unsafe & (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) { in apparmor_bprm_set_creds()
[all …]
/linux-4.4.14/security/tomoyo/
Dtomoyo.c73 static int tomoyo_bprm_set_creds(struct linux_binprm *bprm) in tomoyo_bprm_set_creds() argument
79 if (bprm->cred_prepared) in tomoyo_bprm_set_creds()
87 tomoyo_load_policy(bprm->filename); in tomoyo_bprm_set_creds()
96 bprm->cred->security)->users); in tomoyo_bprm_set_creds()
101 bprm->cred->security = NULL; in tomoyo_bprm_set_creds()
112 static int tomoyo_bprm_check_security(struct linux_binprm *bprm) in tomoyo_bprm_check_security() argument
114 struct tomoyo_domain_info *domain = bprm->cred->security; in tomoyo_bprm_check_security()
122 const int err = tomoyo_find_next_domain(bprm); in tomoyo_bprm_check_security()
129 return tomoyo_check_open_permission(domain, &bprm->file->f_path, in tomoyo_bprm_check_security()
Daudit.c21 static char *tomoyo_print_bprm(struct linux_binprm *bprm, in tomoyo_print_bprm() argument
29 unsigned long pos = bprm->p; in tomoyo_print_bprm()
31 int argv_count = bprm->argc; in tomoyo_print_bprm()
32 int envp_count = bprm->envc; in tomoyo_print_bprm()
44 if (!tomoyo_dump_page(bprm, pos, dump)) in tomoyo_print_bprm()
257 struct file *file = r->ee->bprm->file; in tomoyo_init_log()
259 bprm_info = tomoyo_print_bprm(r->ee->bprm, &r->ee->dump); in tomoyo_init_log()
276 struct linux_binprm *bprm = r->ee->bprm; in tomoyo_init_log() local
279 realpath, bprm->argc, bprm->envc, bprm_info); in tomoyo_init_log()
Ddomain.c591 struct linux_binprm *bprm = ee->bprm; in tomoyo_environ() local
596 unsigned long pos = bprm->p; in tomoyo_environ()
598 int argv_count = bprm->argc; in tomoyo_environ()
599 int envp_count = bprm->envc; in tomoyo_environ()
612 if (!tomoyo_dump_page(bprm, pos, &env_page)) in tomoyo_environ()
676 int tomoyo_find_next_domain(struct linux_binprm *bprm) in tomoyo_find_next_domain() argument
680 const char *original_name = bprm->filename; in tomoyo_find_next_domain()
697 ee->bprm = bprm; in tomoyo_find_next_domain()
699 ee->obj.path1 = bprm->file->f_path; in tomoyo_find_next_domain()
843 bprm->cred->security = domain; in tomoyo_find_next_domain()
[all …]
Dcondition.c104 struct linux_binprm *bprm = ee->bprm; in tomoyo_scan_bprm() local
108 unsigned long pos = bprm->p; in tomoyo_scan_bprm()
110 int argv_count = bprm->argc; in tomoyo_scan_bprm()
111 int envp_count = bprm->envc; in tomoyo_scan_bprm()
124 if (!tomoyo_dump_page(bprm, pos, dump)) { in tomoyo_scan_bprm()
153 if (!tomoyo_argv(bprm->argc - argv_count, in tomoyo_scan_bprm()
759 struct linux_binprm *bprm = NULL; in tomoyo_condition() local
767 bprm = r->ee->bprm; in tomoyo_condition()
768 if (!bprm && (argc || envc)) in tomoyo_condition()
802 file = ee ? ee->bprm->file : NULL; in tomoyo_condition()
[all …]
Dcommon.h620 struct linux_binprm *bprm; member
927 bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,
965 int tomoyo_find_next_domain(struct linux_binprm *bprm);
/linux-4.4.14/kernel/trace/
Dtrace_probe.c179 struct bitfield_fetch_param *bprm = data; \
181 call_fetch(&bprm->orig, regs, &buf); \
183 buf <<= bprm->hi_shift; \
184 buf >>= bprm->low_shift; \
472 struct bitfield_fetch_param *bprm; in __parse_bitfield_probe_arg() local
479 bprm = kzalloc(sizeof(*bprm), GFP_KERNEL); in __parse_bitfield_probe_arg()
480 if (!bprm) in __parse_bitfield_probe_arg()
483 bprm->orig = *f; in __parse_bitfield_probe_arg()
485 f->data = (void *)bprm; in __parse_bitfield_probe_arg()
497 bprm->hi_shift = BYTES_TO_BITS(t->size) - (bw + bo); in __parse_bitfield_probe_arg()
[all …]
/linux-4.4.14/arch/x86/entry/vdso/
Dvma.c191 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
200 int compat_arch_setup_additional_pages(struct linux_binprm *bprm, in compat_arch_setup_additional_pages() argument
219 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/arch/arm64/include/asm/
Delf.h147 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
182 extern int aarch32_setup_vectors_page(struct linux_binprm *bprm,
/linux-4.4.14/arch/tile/mm/
Delf.c117 int arch_setup_additional_pages(struct linux_binprm *bprm, in arch_setup_additional_pages() argument
129 sim_notify_exec(bprm->filename); in arch_setup_additional_pages()
/linux-4.4.14/arch/arm64/kernel/
Dvdso.c87 int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp) in aarch32_setup_vectors_page() argument
155 int arch_setup_additional_pages(struct linux_binprm *bprm, in arch_setup_additional_pages() argument
/linux-4.4.14/arch/x86/include/asm/
Dia32.h63 extern int ia32_setup_arg_pages(struct linux_binprm *bprm,
Delf.h336 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
338 extern int compat_arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/unicore32/include/asm/
Delf.h91 #define arch_setup_additional_pages(bprm, uses_interp) vectors_user_mapping() argument
/linux-4.4.14/arch/x86/um/vdso/
Dvma.c56 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/include/trace/events/
Dsched.h297 struct linux_binprm *bprm),
299 TP_ARGS(p, old_pid, bprm),
302 __string( filename, bprm->filename )
308 __assign_str(filename, bprm->filename);
/linux-4.4.14/arch/sh/kernel/vsyscall/
Dvsyscall.c61 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/arch/hexagon/kernel/
Dvdso.c62 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/security/integrity/ima/
Dima_main.c290 int ima_bprm_check(struct linux_binprm *bprm) in ima_bprm_check() argument
292 return process_measurement(bprm->file, MAY_EXEC, BPRM_CHECK, 0); in ima_bprm_check()
/linux-4.4.14/arch/nios2/mm/
Dinit.c122 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/arch/nios2/include/asm/
Delf.h46 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/powerpc/include/asm/
Delf.h122 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/tile/include/asm/
Delf.h130 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/metag/include/asm/
Dprocessor.h113 unsigned int *argc = (unsigned int *) bprm->exec; \
/linux-4.4.14/arch/mips/kernel/
Dvdso.c98 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/arch/hexagon/include/asm/
Delf.h230 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/parisc/include/asm/
Dprocessor.h275 elf_caddr_t *argv = (elf_caddr_t *)bprm->exec + 1; \
/linux-4.4.14/arch/x86/um/asm/
Delf.h187 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/security/selinux/
Dhooks.c2169 static int check_nnp_nosuid(const struct linux_binprm *bprm, in check_nnp_nosuid() argument
2173 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS); in check_nnp_nosuid()
2174 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid()
2204 static int selinux_bprm_set_creds(struct linux_binprm *bprm) in selinux_bprm_set_creds() argument
2210 struct inode *inode = file_inode(bprm->file); in selinux_bprm_set_creds()
2215 if (bprm->cred_prepared) in selinux_bprm_set_creds()
2219 new_tsec = bprm->cred->security; in selinux_bprm_set_creds()
2237 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2252 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2258 ad.u.path = bprm->file->f_path; in selinux_bprm_set_creds()
[all …]
/linux-4.4.14/arch/s390/kernel/
Dvdso.c174 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/arch/sh/include/asm/
Delf.h193 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/security/smack/
Dsmack_lsm.c906 static int smack_bprm_set_creds(struct linux_binprm *bprm) in smack_bprm_set_creds() argument
908 struct inode *inode = file_inode(bprm->file); in smack_bprm_set_creds()
909 struct task_smack *bsp = bprm->cred->security; in smack_bprm_set_creds()
913 if (bprm->cred_prepared) in smack_bprm_set_creds()
920 if (bprm->unsafe & (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) { in smack_bprm_set_creds()
935 } else if (bprm->unsafe) in smack_bprm_set_creds()
939 bprm->per_clear |= PER_CLEAR_ON_SETID; in smack_bprm_set_creds()
950 static void smack_bprm_committing_creds(struct linux_binprm *bprm) in smack_bprm_committing_creds() argument
952 struct task_smack *bsp = bprm->cred->security; in smack_bprm_committing_creds()
964 static int smack_bprm_secureexec(struct linux_binprm *bprm) in smack_bprm_secureexec() argument
/linux-4.4.14/arch/mips/include/asm/
Delf.h431 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/linux-4.4.14/arch/arm/kernel/
Dprocess.c406 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/kernel/
Dauditsc.c2152 void __audit_bprm(struct linux_binprm *bprm) in __audit_bprm() argument
2157 context->execve.argc = bprm->argc; in __audit_bprm()
2301 int __audit_log_bprm_fcaps(struct linux_binprm *bprm, in __audit_log_bprm_fcaps() argument
2316 get_vfs_caps_from_disk(bprm->file->f_path.dentry, &vcaps); in __audit_log_bprm_fcaps()
/linux-4.4.14/arch/powerpc/kernel/
Dvdso.c150 int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) in arch_setup_additional_pages() argument
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db583 API---audit-log-bprm-fcaps