From owner-freebsd-stable Wed Jul 10 14: 5: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 69C1B37B401 for ; Wed, 10 Jul 2002 14:05:49 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id B198643E3B for ; Wed, 10 Jul 2002 14:05:48 -0700 (PDT) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Wed, 10 Jul 2002 17:05:47 -0400 Message-ID: From: Don Bowman To: "'freebsd-stable@freebsd.org'" Subject: RE: linux JRE 1.4 under linux compatibility only runs as root, 's tatf s' is culprit Date: Wed, 10 Jul 2002 17:05:46 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 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? --don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message