• Home
  • Raw
  • Download

Lines Matching refs:cprm

191 static int format_corename(struct core_name *cn, struct coredump_params *cprm,  in format_corename()  argument
280 __get_dumpable(cprm->mm_flags)); in format_corename()
285 cprm->siginfo->si_signo); in format_corename()
582 struct coredump_params cprm = { in do_coredump() local
599 if (!__get_dumpable(cprm.mm_flags)) in do_coredump()
611 if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) { in do_coredump()
623 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
637 if (cprm.limit == 1) { in do_coredump()
659 cprm.limit = RLIM_INFINITY; in do_coredump()
683 umh_pipe_setup, NULL, &cprm); in do_coredump()
699 if (cprm.limit < binfmt->min_coredump) in do_coredump()
746 cprm.file = file_open_root(root.dentry, root.mnt, in do_coredump()
750 cprm.file = filp_open(cn.corename, open_flags, 0600); in do_coredump()
752 if (IS_ERR(cprm.file)) in do_coredump()
755 inode = file_inode(cprm.file); in do_coredump()
758 if (d_unhashed(cprm.file->f_path.dentry)) in do_coredump()
776 if (!(cprm.file->f_mode & FMODE_CAN_WRITE)) in do_coredump()
778 if (do_truncate2(cprm.file->f_path.mnt, cprm.file->f_path.dentry, 0, 0, cprm.file)) in do_coredump()
789 file_start_write(cprm.file); in do_coredump()
790 core_dumped = binfmt->core_dump(&cprm); in do_coredump()
791 file_end_write(cprm.file); in do_coredump()
794 wait_for_dump_helpers(cprm.file); in do_coredump()
796 if (cprm.file) in do_coredump()
797 filp_close(cprm.file, NULL); in do_coredump()
817 int dump_emit(struct coredump_params *cprm, const void *addr, int nr) in dump_emit() argument
819 struct file *file = cprm->file; in dump_emit()
822 if (cprm->written + nr > cprm->limit) in dump_emit()
831 cprm->written += n; in dump_emit()
832 cprm->pos += n; in dump_emit()
839 int dump_skip(struct coredump_params *cprm, size_t nr) in dump_skip() argument
842 struct file *file = cprm->file; in dump_skip()
847 cprm->pos += nr; in dump_skip()
851 if (!dump_emit(cprm, zeroes, PAGE_SIZE)) in dump_skip()
855 return dump_emit(cprm, zeroes, nr); in dump_skip()
860 int dump_align(struct coredump_params *cprm, int align) in dump_align() argument
862 unsigned mod = cprm->pos & (align - 1); in dump_align()
865 return mod ? dump_skip(cprm, align - mod) : 1; in dump_align()
874 void dump_truncate(struct coredump_params *cprm) in dump_truncate() argument
876 struct file *file = cprm->file; in dump_truncate()