From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 20:37:12 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 5B7E01065677 for ; Sat, 17 Mar 2012 20:37:12 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 10A718FC17 for ; Sat, 17 Mar 2012 20:37:11 +0000 (UTC) Received: by iahk25 with SMTP id k25so10025497iah.13 for ; Sat, 17 Mar 2012 13:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=hSLY9lYr/bIGTfgJvVaMk9GYqCIk+4BSljYylODcVfk=; b=FOkI5hu2NdaYi04r1Iw3qnHvb6caBjE/DzzXXrFi741UcW3AJxtWBr3qCp172Z7Tt0 oV9WoayJDbaWXHykumtwSLMPvb22ocQe8p/VSk2X6ogHCd0ZIZXFqXjPZi/IS1kuBQIs /I30e4zkbQglB96AVqibRdhoF5X/g5e9hJAyA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=hSLY9lYr/bIGTfgJvVaMk9GYqCIk+4BSljYylODcVfk=; b=b+eaBYSEiZ7+O4AQINFMmscjOe1REyJG6Tb9A70+LEg9ZqM2FzDXmqAFTmryce5m15 IR+zgz0DRscRp5Qm4250nKd33Oo8m2CtHBcltiHrDXQhqxj3EFNfs3ITTY3ABd3zL+si lYESd0vnQVSwu4R/IYh21ZK4quaipXi0NKTT4/VTd57t0Sp/sneTjkxa5As+SUkUR6y5 0nTHLVwtT2wLRXQZCCSkS9ezKaSUbfGu91E2YzyW69MtAdq4jDVJavpL5Q652Mz/0GvE wzLJnCCqIjUd/m/vWVI9ka/o9v+dk+8EAz9CqrgL8LWDFvkRgdjg5+2Og1xsUqiYGAXe dU+w== Received: by 10.50.156.166 with SMTP id wf6mr2272214igb.31.1332016631273; Sat, 17 Mar 2012 13:37:11 -0700 (PDT) Received: from DataIX.net ([99.112.214.41]) by mx.google.com with ESMTPS id c2sm3614043igj.1.2012.03.17.13.37.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Mar 2012 13:37:10 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q2HKb866038559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Mar 2012 16:37:08 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q2HKb2SX038344; Sat, 17 Mar 2012 16:37:02 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sat, 17 Mar 2012 16:37:02 -0400 From: Jason Hellenthal To: Mikolaj Golub Message-ID: <20120317203702.GA42572@DataIX.net> References: <8662e3m3eq.fsf@kopusha.home.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8662e3m3eq.fsf@kopusha.home.net> X-Gm-Message-State: ALoCoQlu+iIb2w2oR30mZtTzY//zMHXbuYWYGfcPCRAGv23uw0xLoHXMFbnjdGQhGhKj/iHgFtKE Cc: freebsd-hackers@freebsd.org, Robert Watson , Kostik Belousov Subject: Re: a sysctl for process binary osreldate 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: Sat, 17 Mar 2012 20:37:12 -0000 On Sat, Mar 17, 2012 at 09:30:05PM +0200, Mikolaj Golub wrote: > Hi, > > Currently we can check and change binary osreldate of another process via > procfs(5). > > Kostik suggested to add a new sysctl for the same purpose and also extend > procstat to show osrel. > > Here are patches I am going to commit if there are no objections or > suggestions. > > http://people.freebsd.org/~trociny/kern_proc_osrel.1.patch > http://people.freebsd.org/~trociny/procstat.osrel.1.patch > > I set the same permissions as for procfs(5) osrel -- so only user can read it, > but may be this is too restrictive and p_cansee on read would be ok? > > I added osrel output to procstat -b option: > > kopusha:~% procstat -b 2975 > PID COMM OSREL PATH > 2975 emacs 1000001 /usr/local/bin/emacs-23.3 > > Would this be ok or someone see a better way? > Would this be a planned MFC to stable/N as well specifcially 8 ? -- ;s =;