Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 18:17:57 +0100
From:      Juan Francisco Rodriguez Hervella <jrh@it.uc3m.es>
To:        freebsd-net@freebsd.org
Cc:        snap-user@kame.net
Subject:   Sysctl and root privileges, how could I avoid them ?
Message-ID:  <3DE7A145.18986834@it.uc3m.es>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE7A145.18986834>