Skip to content

Commit

Permalink
log-if-a-core-dump-is-aborted-due-to-changed-file-permissions-fix
Browse files Browse the repository at this point in the history
s/|%s/%s/ in printk text

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Andrew Morton authored and Stephen Rothwell committed Aug 25, 2021
1 parent ef6b016 commit e7b81ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,12 @@ void do_coredump(const kernel_siginfo_t *siginfo)
mnt_userns = file_mnt_user_ns(cprm.file);
if (!uid_eq(i_uid_into_mnt(mnt_userns, inode),
current_fsuid())) {
pr_info_ratelimited("Core dump to |%s aborted: cannot preserve file owner\n",
pr_info_ratelimited("Core dump to %s aborted: cannot preserve file owner\n",
cn.corename);
goto close_fail;
}
if ((inode->i_mode & 0677) != 0600) {
pr_info_ratelimited("Core dump to |%s aborted: cannot preserve file permissions\n",
pr_info_ratelimited("Core dump to %s aborted: cannot preserve file permissions\n",
cn.corename);
goto close_fail;
}
Expand Down

0 comments on commit e7b81ca

Please sign in to comment.