33 Commits

Author SHA1 Message Date
Theodore Dubois
87adcbc176 Handle errors in opening a shell script interpreter 2018-12-30 20:28:11 -08:00
Theodore Dubois
377aa9056e Save the name of the program in the task struct 2018-12-24 23:12:19 -08:00
Theodore Dubois
da27277989 Don't crash the app on RNG failure 2018-12-24 12:02:31 -08:00
Theodore Dubois
c3e076a44f Fix segfault when there's an error opening the interpreter 2018-12-07 15:52:18 -08:00
Theodore Dubois
3b4c71f662 Add function to report error and crash 2018-11-29 16:18:18 -08:00
Theodore Dubois
c158cefd16 Fix leak of interp_fd 2018-11-16 16:32:50 -08:00
Theodore Dubois
7659e0861d Return ENOEXEC when an executable is too short 2018-11-15 15:37:02 -08:00
Theodore Dubois
9a3a89252d Fully implement setpgid 2018-11-11 14:40:05 -08:00
Theodore Dubois
928fc7eed0 Add missing locking for vfork exec 2018-11-09 13:02:46 -08:00
Theodore Dubois
aff0e868b0 fixup! Make various memory management things shared between threads 2018-10-07 13:47:01 -07:00
Theodore Dubois
4a8efe8d01 Make various memory management things shared between threads 2018-10-07 13:02:15 -07:00
Theodore Dubois
fd7d640abd Fix a bunch of issues reported by static analyzers 2018-10-01 11:02:10 -07:00
Theodore Dubois
2f16b25413 Implement sigaltstack 2018-09-28 11:16:47 -07:00
Theodore Dubois
e4df2ff817 Return errors from execve 2018-09-24 13:06:38 -07:00
Theodore Dubois
2ee6cafa94 Add flag checking to unicornomatic 2018-08-19 00:22:48 +00:00
Theodore Dubois
efd0b23ef2 Merge branch 'master' of github.com:tbodt/ish 2018-08-12 19:41:55 -07:00
Theodore Dubois
70d019edb3 Use the actual protection for file mappings 2018-06-14 07:35:29 -07:00
Theodore Dubois
cb209cb233 Initialize interp_ph 2018-05-26 11:58:32 -07:00
Theodore Dubois
46a26ad58b Fix vdso inclusion on Mac 2018-05-07 10:55:20 -07:00
Theodore Dubois
498c17b1a3 Foundations of jit, no actual compiling yet 2018-05-03 14:48:08 -07:00
Theodore Dubois
48e4425a34 Free ELF interpreter program headers 2018-02-01 17:23:00 -08:00
Theodore Dubois
7e5e9e5c1f First pass at implementing thread groups
It builds and will give you a shell. Gonna call it a day.
2018-01-28 15:42:42 -08:00
Theodore Dubois
eddf023669 Move pwd, root, uname out into its own struct 2018-01-21 17:24:32 -08:00
Theodore Dubois
5fee551307 Implement close on exec 2018-01-19 16:44:34 -08:00
Theodore Dubois
77f9c73be9 Remove magic from locking macros 2018-01-14 18:18:12 -08:00
Theodore Dubois
ebd1e31aa1 Add strace for pipe and exec 2018-01-14 16:12:40 -08:00
Theodore Dubois
45a6a06142 Fix the arguments to memset 2018-01-05 14:38:05 -08:00
Theodore Dubois
07c4ab82bf Add a read-write lock to the memory object 2017-12-24 16:02:15 -08:00
Theodore Dubois
5211b1e101 Improve sanity of process locking 2017-12-20 00:33:56 -08:00
Theodore Dubois
77afbe3aa3 Replace err_map(errno) with errno_map, and fix EPIPE handling 2017-12-15 15:55:53 -08:00
Theodore Dubois
e25302ed98 Redesign VFS mmap 2017-12-06 15:14:17 -08:00
Theodore Dubois
761a157f3b Add support for shebang lines 2017-11-29 19:07:10 -08:00
Theodore Dubois
f1e63c43e0 Rename sys directory to kernel
A number of the headers in it were conflicting with macOS system
headers.
2017-10-13 16:54:11 -07:00