From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 7 16:00:11 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEC2E106566C; Fri, 7 Sep 2012 16:00:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6472D8FC0C; Fri, 7 Sep 2012 16:00:09 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q87Fxodu016136; Fri, 7 Sep 2012 18:59:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q87Fxanu071425; Fri, 7 Sep 2012 18:59:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q87FxaxK071424; Fri, 7 Sep 2012 18:59:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 7 Sep 2012 18:59:36 +0300 From: Konstantin Belousov To: John Baldwin Message-ID: <20120907155936.GY33100@deviant.kiev.zoral.com.ua> References: <201209041210.07555.jhb@freebsd.org> <201209071033.52864.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JIl7C0YrBDiPMQ28" Content-Disposition: inline In-Reply-To: <201209071033.52864.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Sam Varshavchik , freebsd-hackers@freebsd.org Subject: Re: What happened to my /proc/curproc/file? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 16:00:11 -0000 --JIl7C0YrBDiPMQ28 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 07, 2012 at 10:33:52AM -0400, John Baldwin wrote: > On Tuesday, September 04, 2012 7:46:23 pm Sam Varshavchik wrote: > > Is the dev+ino of what was exec()ed known, for another process? I might= be =20 > > able to get the client voluntarily submit its argv[0], then independent= ly =20 > > have the server validate it by stat()ing that, and comparing the result= =20 > > against what the kernel says the process's inode is. >=20 > It's known in the kernel certainly. I don't think we currently have any = way > of exporting that info to userland however. It is, as KF_FD_TYPE_TEXT by sysctl kern.proc.filedesc. --JIl7C0YrBDiPMQ28 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBKGegACgkQC3+MBN1Mb4i84QCg87Qw1p4AuQZgMOKKOUlTTPDX yPIAmgML6SmkH0bfsXpk44CCBn6x8o0o =PbYe -----END PGP SIGNATURE----- --JIl7C0YrBDiPMQ28--