From owner-freebsd-stable Fri Jul 12 8:52:25 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 019F737B401 for ; Fri, 12 Jul 2002 08:52:21 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14D0543E3B for ; Fri, 12 Jul 2002 08:52:19 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Fri, 12 Jul 2002 16:52:10 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 17T2hW-0007TQ-00; Fri, 12 Jul 2002 16:51:22 +0100 Date: Fri, 12 Jul 2002 16:51:22 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Don Bowman Cc: "'freebsd-stable@freebsd.org'" Subject: RE: linux JRE 1.4 under linux compatibility only runs as root, 's tatf s' is culprit In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 10 Jul 2002, Don Bowman wrote: > Don Bowman wrote: > > > 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). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk Whenever I see a dog salivate I get an insatiable urge to ring a bell. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message