From owner-freebsd-stable Thu Jul 11 15: 7:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D62DE37B400; Thu, 11 Jul 2002 15:07:49 -0700 (PDT) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 846D943E5E; Thu, 11 Jul 2002 15:07:49 -0700 (PDT) (envelope-from jj@alicia.nttmcl.com) Received: (from jj@localhost) by alicia.nttmcl.com (8.10.1/8.10.1) id g6BM7mN16323; Thu, 11 Jul 2002 15:07:48 -0700 (PDT) Date: Thu, 11 Jul 2002 15:07:48 -0700 From: Shannon -jj Behrens To: Don Bowman , freebsd-stable@freebsd.org, freebsd-java@freebsd.org Subject: linux JRE 1.4 under linux compatibility only runs as root Message-ID: <20020711150748.B14694@alicia.nttmcl.com> Mail-Followup-To: Shannon -jj Behrens , Don Bowman , freebsd-stable@freebsd.org, freebsd-java@freebsd.org References: <20020711214742.C259A37B406@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20020711214742.C259A37B406@hub.freebsd.org>; from owner-freebsd-stable@FreeBSD.ORG on Thu, Jul 11, 2002 at 02:47:42PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 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? I'm having the same problem. It looks like this has been discussed on -STABLE, -JAVA, -HACKERS, and -QUESTIONS, but to no avail: I'm sorry for the redundant cross-post, but this looks like a hard one to solve. -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