From owner-freebsd-net Fri Dec 6 19:46:21 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCEF437B401 for ; Fri, 6 Dec 2002 19:46:20 -0800 (PST) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD08543EB2 for ; Fri, 6 Dec 2002 19:46:19 -0800 (PST) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:4819:2000:7490:870e:d079:b1ab]) by shuttle.wide.toshiba.co.jp (8.11.6/8.9.1) with ESMTP id gB73k2R91563; Sat, 7 Dec 2002 12:46:07 +0900 (JST) Date: Sat, 07 Dec 2002 12:46:12 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Juan Francisco Rodriguez Hervella Cc: freebsd-net@FreeBSD.ORG Subject: Re: Sysctl and root privileges, how could I avoid them ? In-Reply-To: <3DEB248E.9333E90@it.uc3m.es> References: <3DE7A145.18986834@it.uc3m.es> <3DEB248E.9333E90@it.uc3m.es> User-Agent: Wanderlust/2.6.1 (Upside Down) Emacs/21.2 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 20000228(IM140) Lines: 17 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >>>>> On Mon, 02 Dec 2002 10:14:54 +0100, >>>>> Juan Francisco Rodriguez Hervella said: > Are you talking about the flag CTLFLAG_RW ? I'm using req->oldptr == > NULL and req-> newptr != NULL to add a new element into a kernel table.... and I > plan > to use req->oldptr & req->newptr != NULL to show the elements of the > table... If you just want to show (get) the elements, you don't have to have a non NULL newptr. Then the root privilege won't be required. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message