Date: Wed, 28 Aug 2002 09:04:31 +0300 From: Ari Suutari <ari.suutari@syncrontech.com> To: dan_256@yahoo.com, Greg Lewis <glewis@eyesbeyond.com>, Ernst de Haan <znerd@FreeBSD.ORG> Cc: dan_256@yahoo.com, K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG Subject: Re: Jboss3ctl update (I think I know the problem) Message-ID: <200208280904.31561.ari.suutari@syncrontech.com> In-Reply-To: <20020828013922.50148.qmail@web13402.mail.yahoo.com> References: <20020828013922.50148.qmail@web13402.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Wednesday 28 August 2002 04:39, Dan Hulme wrote: > Basically, that's it. The .java_wrapper script is not exactly the problem, > but the ENV. As I stated in my original post > (http://www.geocrawler.com/archives/3/162/2002/6/0/9029840/), the problem > is two-fold. In my understanding, the entire ENV will be ignored any time > you are SUIDing. Even if I am wrong about that, the LD_LIBRARY_PATH, which > the .java_wrapper usually sets to link in some libs for java will be > ignored according to "man ldconfig" when SUIDing. Only LD_LIBRARY_PATH, LD_DEBUG and LD_PRELOAD is ignored. From rtld.c: trust = geteuid() == getuid() && getegid() == getgid(); ld_bind_now = getenv("LD_BIND_NOW"); if (trust) { ld_debug = getenv("LD_DEBUG"); ld_library_path = getenv("LD_LIBRARY_PATH"); ld_preload = getenv("LD_PRELOAD"); } So, really just calling setuid(geteuid()) makes things work. No special kludgery is necessary. Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208280904.31561.ari.suutari>
