FreeBSD Bugzilla – Attachment 133845 Details for
Bug 178396
[kernel] [patch] Add jid to kernel log when a process has been forced closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
freebsd
on 2013-05-07 15:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
freebsd
Created:
2013-05-07 15:10:00 UTC
Size:
1.04 KB
patch
obsolete
>--- kern_sig.c.orig 2013-05-07 11:11:44.000000000 +0200 >+++ kern_sig.c 2013-05-07 11:33:52.000000000 +0200 >@@ -2869,12 +2869,21 @@ > if (coredump(td) == 0) > sig |= WCOREFLAG; > if (kern_logsigexit) >- log(LOG_INFO, >- "pid %d (%s), uid %d: exited on signal %d%s\n", >- p->p_pid, p->p_comm, >- td->td_ucred ? td->td_ucred->cr_uid : -1, >- sig &~ WCOREFLAG, >- sig & WCOREFLAG ? " (core dumped)" : ""); >+ if (p->p_flag & P_JAILED) >+ log(LOG_INFO, >+ "pid %d (%s), uid %d, jid %d: exited on signal %d%s\n", >+ p->p_pid, p->p_comm, >+ td->td_ucred ? td->td_ucred->cr_uid : -1, >+ p->p_ucred ? p->p_ucred->cr_prison->pr_id : -1, >+ sig &~ WCOREFLAG, >+ sig & WCOREFLAG ? " (core dumped)" : ""); >+ else >+ log(LOG_INFO, >+ "pid %d (%s), uid %d: exited on signal %d%s\n", >+ p->p_pid, p->p_comm, >+ td->td_ucred ? td->td_ucred->cr_uid : -1, >+ sig &~ WCOREFLAG, >+ sig & WCOREFLAG ? " (core dumped)" : ""); > } else > PROC_UNLOCK(p); > exit1(td, W_EXITCODE(0, sig));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178396
: 133845 |
165129
|
165148