Set O_EXEC when the kernel opens a file for exec
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Mar 2018 18:58:43 +0000 (13:58 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:31:44 +0000 (14:31 -0400)
commitbfa84e218ae2e81a3c1e48356e140e959ddfbe78
treee3b7eb9718fa24bebeba2341a57233230ad0b29c
parentf61ff9a4503a9b05f0922067803187eb826f7fe8
Set O_EXEC when the kernel opens a file for exec

Not a huge deal, but if we're going to have the flags, then we should use
them.  This popped up when doing permission checks on mmap on chans.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/elf.c
kern/src/monitor.c
kern/src/syscall.c