From owner-svn-src-all@FreeBSD.ORG Mon Mar 23 01:08:41 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABE14E78; Mon, 23 Mar 2015 01:08:41 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38ACAE7; Mon, 23 Mar 2015 01:08:41 +0000 (UTC) Received: by wgbcc7 with SMTP id cc7so133817415wgb.0; Sun, 22 Mar 2015 18:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Ii3Yqt6PR/wH0Swe+OskAnr99li+d23PxhDZ4EvvcVc=; b=EQ3+zexPqjqNJdMYB8pQCVjVtZA9yRFZgyJ0Xfko7Of5J4K4n9HeNcAzshCHIZkp+q 53rX6Ro1VH6PvlTZHLjveZsov2NC/ZGGjZVI9fLlwUz02KfccKQLAtGyrmOt8KaYbprn oo7arlf2L5dkKIf53n8vCjORVngNLMPBWptHiihLADtZr4w5nXJwThh27GIIP2Hc2ijh aqM1uNh3cLwdM3H/O34kJiqTca7pZ//yCncjmdPWn3Q2vZ6w8avVo61j8L1tZbXie6e9 Z4ZbfHXjWeO/szWI3YW5UzpvVulnC7Ll2izsC9uZKWN/UF5HK8CUPio27JEzsCVic2Lh AzbA== X-Received: by 10.180.86.201 with SMTP id r9mr15078261wiz.56.1427072919634; Sun, 22 Mar 2015 18:08:39 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id r14sm8782121wiv.13.2015.03.22.18.08.38 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 22 Mar 2015 18:08:38 -0700 (PDT) Date: Mon, 23 Mar 2015 02:08:36 +0100 From: Mateusz Guzik To: Rui Paulo Subject: Re: svn commit: r278479 - in head: etc sys/kern Message-ID: <20150323010836.GC6798@dft-labs.eu> References: <201502092313.t19NDpoS083043@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201502092313.t19NDpoS083043@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 01:08:41 -0000 On Mon, Feb 09, 2015 at 11:13:51PM +0000, Rui Paulo wrote: > Author: rpaulo > Date: Mon Feb 9 23:13:50 2015 > New Revision: 278479 > URL: https://svnweb.freebsd.org/changeset/base/278479 > > Log: > Notify devd(8) when a process crashed. > > This change implements a notification (via devctl) to userland when > the kernel produces coredumps after a process has crashed. > devd can then run a specific command to produce a human readable crash > report. The command is most usually a helper that runs gdb/lldb > commands on the file/coredump pair. It's possible to use this > functionality for implementing automatic generation of crash reports. > > devd(8) will be notified of the full path of the binary that crashed and > the full path of the coredump file. > The more I look at this the more I'm convinced this is quite insecure. At a minimum this should also grow a flag to decide whether notification about jailed process crashes are allowed. Off by default. As it is you pass a path leading to a jail, but that's inherently untrusted and will lead to trouble. -- Mateusz Guzik