From owner-freebsd-stable Fri Jul 12 11:50: 5 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 45B8737B400 for ; Fri, 12 Jul 2002 11:49:59 -0700 (PDT) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDCBC43E42 for ; Fri, 12 Jul 2002 11:49:58 -0700 (PDT) (envelope-from jj@alicia.nttmcl.com) Received: (from jj@localhost) by alicia.nttmcl.com (8.10.1/8.10.1) id g6CInjc12440; Fri, 12 Jul 2002 11:49:45 -0700 (PDT) Date: Fri, 12 Jul 2002 11:49:45 -0700 From: Shannon -jj Behrens To: Jan Grant , Don Bowman , 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> Mail-Followup-To: Shannon -jj Behrens , Jan Grant , Don Bowman , freebsd-stable@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from Jan.Grant@bristol.ac.uk on Fri, Jul 12, 2002 at 04:51:22PM +0100 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? > > 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