NetBSD Problem Report #37542

From martin@duskware.de  Fri Dec 14 16:43:48 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7EC5B63BC06
	for <gnats-bugs@gnats.netbsd.org>; Fri, 14 Dec 2007 16:43:47 +0000 (UTC)
Message-Id: <20071214163547.C128A63B8FF@narn.NetBSD.org>
Date: Fri, 14 Dec 2007 16:35:47 +0000 (UTC)
From: paul.lavoie@thomson.com
Reply-To: paul.lavoie@thomson.com
To: netbsd-bugs-owner@NetBSD.org
Subject: too many arguments to VOP_ACCESS in kern/exec_script.c
X-Send-Pr-Version: www-1.0

>Number:         37542
>Category:       kern
>Synopsis:       too many arguments to VOP_ACCESS in kern/exec_script.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 14 16:45:00 +0000 2007
>Closed-Date:    Fri Dec 14 16:49:47 +0000 2007
>Last-Modified:  Fri Dec 14 16:55:01 +0000 2007
>Originator:     Paul Lavoie
>Release:        -current
>Organization:
>Environment:
i386 4.99.35
>Description:
The change from Nov 26 to modify instances of VOP_ACCESS seems to have missed at least one occurrence in kern/exec_script.c on line 182, which is reached if the kernel is built with the option SETUIDSCRIPTS. I assume that it is just a matter of removing the 4th argument of the lwp, but I'd like it confirmed with someone who knows the kernel better than I ;-)

Thanks.
>How-To-Repeat:
Compile kernel with OPTIONS SETUIDSCRIPTS enabled.
>Fix:
Remove lwp argument to VOP_ACCESS?

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: pooka@netbsd.org
State-Changed-When: Fri, 14 Dec 2007 18:49:47 +0200
State-Changed-Why:
fixed.  thanks!

p.s. FDSCRIPTS, not SETUIDSCRIPTS ;)


From: Antti Kantee <pooka@netbsd.org>
To: gnats-bugs@netbsd.org, paul.lavoie@thomson.com
Cc: 
Subject: Re: kern/37542 (too many arguments to VOP_ACCESS in kern/exec_script.c)
Date: Fri, 14 Dec 2007 18:51:08 +0200

 On Fri Dec 14 2007 at 16:49:48 +0000, pooka@netbsd.org wrote:
 > p.s. FDSCRIPTS, not SETUIDSCRIPTS ;)

 Oh, SETUIDSCRIPTS defines FDSCRIPTS.  nevermind

 -- 
 Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
 http://www.iki.fi/pooka/                          http://www.NetBSD.org/
     "la qualité la plus indispensable du cuisinier est l'exactitude"

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.