Use correct file permissions when looking for available core file if

kern.corefile contains %I.

Obtained from:	WHEEL Systems
This commit is contained in:
pjd 2012-12-19 23:40:02 +00:00
parent 532583ce14
commit 15927a4dbb

View File

@ -3125,7 +3125,7 @@ expand_name(const char *comm, uid_t uid, pid_t pid, struct thread *td,
struct nameidata nd;
int cmode, flags, oflags, error;
cmode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
cmode = S_IRUSR | S_IWUSR;
oflags = VN_OPEN_NOAUDIT |
(capmode_coredump ? VN_OPEN_NOCAPCHECK : 0);