Date: Fri, 12 Jul 2002 11:49:45 -0700 From: Shannon -jj Behrens <jj@nttmcl.com> To: Jan Grant <Jan.Grant@bristol.ac.uk>, Don Bowman <don@sandvine.com>, freebsd-stable@FreeBSD.ORG Subject: Re: linux JRE 1.4 under linux compatibility only runs as root, 's tatf s' is culprit Message-ID: <20020712114945.D9516@alicia.nttmcl.com> In-Reply-To: <Pine.GSO.4.44.0207121650180.19306-100000@mail.ilrt.bris.ac.uk>; from Jan.Grant@bristol.ac.uk on Fri, Jul 12, 2002 at 04:51:22PM %2B0100 References: <FE045D4D9F7AED4CBFF1B3B813C85337676719@mail.sandvine.com> <Pine.GSO.4.44.0207121650180.19306-100000@mail.ilrt.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > I know several other people have run into the problem where > > > the (Linux) JDK or JRE 1.4 will only run as root. > > > Tracing this with 'ktrace', the issue is a statfs call, > > > which returns 'RESTART'. I don't see that errno listed on > > > the man page for statfs, I guess it must come from the > > > linux_statfs in compat/linux. > > > > > > 48927 java CALL statfs(0xbf1f) > > > 48927 java RET statfs RESTART > > > > OK, after having found out that 'ktrace' isn't appropriate > > for linux executables (use truss or linux_kdump), I found that > > the culprit is actually: > > > > linux_sched_getscheduler(0xcb18) ERR#1 'Operation not > > permitted' > > > > when root, this is permitted. When non-root, this is not-permitted. > > > > Suggestions? Is this a problem with the linux emulation? Or is > > there a permissions difference between linux & freebsd here? > > It's a bug in -stable's permissions checking - it's somewhat > over-zealous. The fix is reasonably trivial (I think pointers to this > have appeared on -java a number of times). Based on looking at the archives, this seems to be a commonly encountered problem. Should I submit a PR so that this can be fixed in STABLE, or are there objections to this fix? Thanks, -jj -- Real programmers don't draw flowcharts. Flowcharts are, after all, the illiterate's form of documentation. Cavemen drew flowcharts; look how much good it did them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020712114945.D9516>