Skip site navigation (1)Skip section navigation (2)
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 prob=
lem,
> but the ENV.  As I stated in my original post
> (http://www.geocrawler.com/archives/3/162/2002/6/0/9029840/), the probl=
em
> is two-fold.  In my understanding, the entire ENV will be ignored any t=
ime
> you are SUIDing.  Even if I am wrong about that, the LD_LIBRARY_PATH, w=
hich
> the .java_wrapper usually sets to link in some libs for java will be
> ignored according to "man ldconfig" when SUIDing.

=09Only LD_LIBRARY_PATH, LD_DEBUG and LD_PRELOAD is ignored.=20
=09From rtld.c:

    trust =3D geteuid() =3D=3D getuid() && getegid() =3D=3D getgid();

    ld_bind_now =3D getenv("LD_BIND_NOW");
    if (trust) {
        ld_debug =3D getenv("LD_DEBUG");
        ld_library_path =3D getenv("LD_LIBRARY_PATH");
        ld_preload =3D getenv("LD_PRELOAD");
    }

=09

=09So, really just calling setuid(geteuid()) makes things work.
=09No special kludgery is necessary.

=09=09Ari 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>