cgd
13ca4d98c7
it's correct to return EACCES if FS is mounted MNT_NOEXEC.
1993-10-26 01:42:56 +00:00
cgd
c7582cbd4f
use copyinstr rather than strcpy to copy in the saved shell-script
...
name from userland. From Markus Wild, mw@lamp
1993-10-26 00:32:29 +00:00
cgd
a84055b552
use the ALIGN macro to align the stack, rather than rounding up
...
by a (char *). the former is safe, even on strange machines
(read: sparc).
1993-10-06 07:27:58 +00:00
cgd
83aeee1bc0
there now exists an "exec switch". break the a.out code into another
...
module, and tidy up the interface so that other object formats are
more easily supportable.
1993-09-05 01:33:35 +00:00
cgd
491d6b4b9d
fix problem where exec would lose on shell scripts with symlinks in
...
their names. fix from "James W. Dolter" <jdolter@sawtooth.eecs.umich.edu>.
test script:
#!/bin/csh
mkdir /tmp/foodir
cat > /tmp/foodir/testscript <<EOF
#!/bin/sh
echo "Executing script \$1"
EOF
chmod 755 /tmp/foodir/testscript
(cd /tmp ; ln -s foodir foosym)
echo "Trying full path (w/o symlink) to /tmp/foodir/testscript"
/tmp/foodir/testscript "with out symlink"
echo "Trying full path (w/ symlink) to /tmp/foosym/testscript"
/tmp/foosym/testscript "with symlink"
echo "End of Test"
1993-09-01 21:43:50 +00:00
cgd
d365662684
ok, initialize that errno, to make theo and gcc2 happy...
1993-08-31 01:52:34 +00:00
cgd
518f7c78d6
a program being exec'd *must* cause *some* exec commands to be invoked;
...
if it doesn't there's a problem in the kernel, because a program
with no exec commands run will have no address space except the stack,
and i don't think it's valid to have a "run from stack only" exec type,
so panic. if need for that case comes up later, it can be changed...
1993-08-31 01:46:36 +00:00
cgd
2680a043c7
general cleanup (get close to KNF), and remove a few fuzzies
...
in preparation for The Grand Re-rewriting.
1993-07-28 04:08:27 +00:00
cgd
c0334ef92c
break args structs out, into syscallname_args structs, so gcc2 doesn't
...
whine so much.
1993-07-13 22:13:15 +00:00
brezak
b5236e7d0f
Roundup stack len to naturally aligned address. This fixes emacs aborting due to an odd address in alloca'ed memory.
1993-07-10 02:07:48 +00:00
brezak
31d24dc82e
Ignore the flags field in midmag.
1993-07-08 16:48:18 +00:00
cgd
b274bb4126
add support for checking entry against max user address
1993-07-05 01:53:56 +00:00
cgd
955ae6a915
change exit() to kexit(), so prototypes are "safe" with stdio.h, etc.
1993-07-04 23:30:33 +00:00
cgd
b21025e4f3
call setregs with a retval, too, so the hp300 & mac, and more works.
1993-07-04 09:48:29 +00:00
andrew
0e6cb953ea
ANSIfications - removed all implicit function return types and argument
...
definitions. Ensured that all files include "systm.h" to gain access to
general prototypes. Casts where necessary.
1993-06-27 06:01:27 +00:00
glass
ee8d969be4
ansi-style function definitions
1993-06-22 01:31:53 +00:00
cgd
c8bdad0560
convert magic numbers to network byte order, and attendent changes
1993-06-18 06:49:30 +00:00
cgd
24fe3e4563
fixed bug where extra spaces at the end of a shell name would
...
cause shell scripts to be executed incorrectly. shells would
receive an *empty* arg for name of script, open it, the kernel
would say "oh, that's ." or something similar, and the results
would be interesting... found, diagnosed, and killed by me.
1993-06-07 03:09:29 +00:00
cgd
7489eff03c
fix stoopid location to label problem
1993-06-06 02:36:22 +00:00
cgd
165b917efe
add fixes supplied by markus wild
1993-06-05 19:38:13 +00:00
cgd
23f01c5982
call a cpu-dependent function to check executable's a_mid type.
1993-06-03 01:31:43 +00:00
cgd
654e213804
when copying out signal trampoline code, make sure that
...
the copyout actually succeeds.
1993-06-02 04:43:54 +00:00
cgd
d2bf51450c
fixed minor typo in sigcode copying code
1993-06-02 03:15:36 +00:00
cgd
af4017c23f
general cleanup including, but not limited to:
...
better-integreate vmcmd building and exec hdr interpretation,
get stack sigcode copying right
etc.
1993-06-02 02:49:40 +00:00
cgd
956c046db5
do address mapping in a new way...
...
it works, but the code needs to be cleaned some...
1993-06-02 00:20:07 +00:00
cgd
4206d7f100
break before letting child run, if tracing, and do the right
...
thing with stack limits
1993-06-01 04:52:40 +00:00
cgd
0656a4bbbe
final patchups, also add support for finding argv/env via PS_STRINGS
1993-06-01 01:31:39 +00:00
cgd
eb4c4de385
replace exec.
...
new one based on one by Wolfgang Solfrank, but majorly hacked
(as it: it didn't have a chance in hell of working, before; didn't
even bother copying out argc, for one...)
1993-05-31 01:44:55 +00:00