From owner-svn-soc-all@freebsd.org Tue Dec 1 18:31:09 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2470A3E5DE for ; Tue, 1 Dec 2015 18:31:09 +0000 (UTC) (envelope-from def@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B21F81790 for ; Tue, 1 Dec 2015 18:31:09 +0000 (UTC) (envelope-from def@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id tB1IV9Hn089567 for ; Tue, 1 Dec 2015 18:31:09 GMT (envelope-from def@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id tB1IV9GV089556 for svn-soc-all@FreeBSD.org; Tue, 1 Dec 2015 18:31:09 GMT (envelope-from def@FreeBSD.org) Date: Tue, 1 Dec 2015 18:31:09 GMT Message-Id: <201512011831.tB1IV9GV089556@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to def@FreeBSD.org using -f From: def@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r294696 - soc2013/def/crashdump-head/sbin/dumpon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 18:31:09 -0000 Author: def Date: Tue Dec 1 18:31:08 2015 New Revision: 294696 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=294696 Log: Add -k flag description to dumpon(8). Modified: soc2013/def/crashdump-head/sbin/dumpon/dumpon.8 Modified: soc2013/def/crashdump-head/sbin/dumpon/dumpon.8 ============================================================================== --- soc2013/def/crashdump-head/sbin/dumpon/dumpon.8 Tue Dec 1 17:38:52 2015 (r294695) +++ soc2013/def/crashdump-head/sbin/dumpon/dumpon.8 Tue Dec 1 18:31:08 2015 (r294696) @@ -37,6 +37,7 @@ .Sh SYNOPSIS .Nm .Op Fl v +.Op Fl k Ar public_key .Ar special_file .Nm .Op Fl v @@ -56,7 +57,9 @@ .Pa /etc/rc , controlled by the .Dq dumpdev -variable in the boot time configuration file +and +.Dq dumppubkey +variables in the boot time configuration file .Pa /etc/rc.conf . .Pp The default type of kernel crash dump is the mini crash dump. @@ -82,6 +85,29 @@ variable. .Pp The +.Op Fl k Ar public_key +flag causes +.Nm +to generate an one-time key for kernel crash dump encryption. The key is +encrypted using +.Ar public_key . +This process is sandboxed using +.Xr capsicum 4 . +Both plain and encrypted keys are send to kernel using +.Dv DIOCSKERNELDUMP +.Xr ioctl 2 . +User can specify +.Ar public_key +in +.Dq dumppubkey +variable defined in +.Pa /etc/rc.conf +for use with +.Pa /etc/rc.d/dumpon +.Xr rc 8 +script. +.Pp +The .Fl l flag causes .Nm