Subject: misc/6543: src/regress/sys/kern/execve/tests need to be executable
To: None <gnats-bugs@gnats.netbsd.org>
From: TheMan <andrew@untraceable.net>
List: netbsd-bugs
Date: 12/07/1998 13:17:19
>Number:         6543
>Category:       misc
>Synopsis:       src/regress/sys/kern/execve/tests need to be executable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec  7 10:20:00 1998
>Last-Modified:
>Originator:     TheMan
>Organization:
none really...
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."
>Release:        -current
>Environment:
System: NetBSD noc 1.2 NetBSD 1.2 (null) #4: Fri Oct 24 01:27:28 EDT 1997 root@noc:/usr/src/sys/arch/i386/compile/null i386
yeah...i know.  leave me alone.

>Description:

whilst making regress, i found that the kernel cannot exec
non-executable shell scripts.

>How-To-Repeat:

cd /usr/src; make regression-tests

>Fix:

i dunno.  probably either of these two would work, although the second
one will probably break more than it fixes.  :)

1) make them executable
cd src/regress/sys/kern/execve/tests
chmod +x *
chmod -x goodaout.c

2) make *everything* executable (tee hee)
*** kern_exec.c.orig	Sat Sep 12 08:10:50 1998
--- kern_exec.c	Mon Dec  7 13:15:35 1998
***************
*** 114,121 ****
  		error = EACCES;
  		goto bad1;
  	}
- 	if ((error = VOP_ACCESS(vp, VEXEC, p->p_ucred, p)) != 0)
- 		goto bad1;
  
  	/* get attributes */
  	if ((error = VOP_GETATTR(vp, epp->ep_vap, p->p_ucred, p)) != 0)
--- 114,119 ----
>Audit-Trail:
>Unformatted: