From owner-freebsd-net Fri Nov 29 9:18:35 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 F208537B401 for ; Fri, 29 Nov 2002 09:18:33 -0800 (PST) Received: from smtp.uc3m.es (smtp01.uc3m.es [163.117.136.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C25643ECD for ; Fri, 29 Nov 2002 09:18:32 -0800 (PST) (envelope-from jrh@it.uc3m.es) Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 3FCE64319C; Fri, 29 Nov 2002 18:18:31 +0100 (CET) Received: from itserv2.lab.it.uc3m.es (itserv2.lab.it.uc3m.es [163.117.144.121]) by smtp01.uc3m.es (Postfix) with ESMTP id A37AB99E7E; Fri, 29 Nov 2002 18:18:28 +0100 (CET) Received: from it.uc3m.es (zangano.it.uc3m.es [163.117.140.41]) by itserv2.lab.it.uc3m.es (8.9.3/8.9.3) with ESMTP id SAA05117; Fri, 29 Nov 2002 18:18:28 +0100 Message-ID: <3DE7A145.18986834@it.uc3m.es> Date: Fri, 29 Nov 2002 18:17:57 +0100 From: Juan Francisco Rodriguez Hervella X-Mailer: Mozilla 4.74 [es] (X11; U; Linux 2.4.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Cc: snap-user@kame.net Subject: Sysctl and root privileges, how could I avoid them ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hello: I'm implementing a modification in the file "getaddrinfo.c", which calls a sysctlbyname function, but the problem is that this sysctlbyname function call requires "root" privileges. But I can not expect all the programs linked to libinet6 (where getaddrinfo is used) to be executed as root ! So I was wondering if there's any option to avoid this, I mean, I'd very much like if my sysctl function didn't require root privileges, then all the applications linked to libinet6.a would get benefit from my modification. Any other suggestion ? If you need more info I'll be glad to explain it deeper. -- JFRH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message