PERFORCE change 188395 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Jan 31 22:18:03 UTC 2011
http://p4web.freebsd.org/@@188395?ac=10
Change 188395 by trasz at trasz_victim on 2011/01/31 22:17:31
Improve the message logged by the "log" action.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#26 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#26 (text+ko) ====
@@ -325,9 +325,10 @@
sbuf_new(&sb, buf, RCTL_LOG_BUFSIZE, SBUF_FIXEDLEN);
rctl_rule_to_sbuf(&sb, rule);
sbuf_finish(&sb);
- printf("resource limit \"%s\" exceeded by process %d "
- "(%s), uid %d\n", sbuf_data(&sb), p->p_pid,
- p->p_comm, p->p_ucred->cr_uid);
+ printf("rctl: rule \"%s\" matched by process %d "
+ "(%s), uid %d, jid %d\n", sbuf_data(&sb), p->p_pid,
+ p->p_comm, p->p_ucred->cr_uid,
+ p->p_ucred->cr_prison->pr_id);
sbuf_delete(&sb);
free(buf, M_RCTL);
continue;
More information about the p4-projects
mailing list