From f63f496d63ad26eac2157f39c8ac85edd652f3a4 Mon Sep 17 00:00:00 2001 From: bluhm Date: Sat, 10 Jun 2017 11:28:30 +0000 Subject: [PATCH] Report processes that were killed due to pledge or memory access violations in the daily mail. OK millert@ jmc@ --- etc/daily | 3 ++- share/man/man8/daily.8 | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/daily b/etc/daily index 9a299e34e7e..8d80fa0ccb2 100644 --- a/etc/daily +++ b/etc/daily @@ -1,5 +1,5 @@ # -# $OpenBSD: daily,v 1.88 2016/04/29 13:05:33 schwarze Exp $ +# $OpenBSD: daily,v 1.89 2017/06/10 11:28:30 bluhm Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # # For local additions, create the file /etc/daily.local. @@ -71,6 +71,7 @@ if [ -f /var/account/acct ]; then mv -f /var/account/acct.0 /var/account/acct.1 cp -f /var/account/acct /var/account/acct.0 sa -sq + lastcomm -f /var/account/acct.0 | grep -e ' -[A-Z]*[PT]' fi # If ROOTBACKUP is set to 1 in the environment, and diff --git a/share/man/man8/daily.8 b/share/man/man8/daily.8 index 2d7bbe0e90c..8600d471421 100644 --- a/share/man/man8/daily.8 +++ b/share/man/man8/daily.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: daily.8,v 1.25 2017/04/15 13:12:08 schwarze Exp $ +.\" $OpenBSD: daily.8,v 1.26 2017/06/10 11:28:30 bluhm Exp $ .\" .\" Copyright (c) 2003 Jason McIntyre .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 15 2017 $ +.Dd $Mdocdate: June 10 2017 $ .Dt DAILY 8 .Os .Sh NAME @@ -79,8 +79,11 @@ Removes scratch and junk files from Purges accounting records from .Pa /var/account , if they exist. +Processes that were killed due to pledge or memory access violations +are reported in the daily mail. See -.Xr accton 8 +.Xr accton 8 , +.Xr lastcomm 1 , and .Xr sa 8 . .It -- 2.20.1