mm: Fix permission checks
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Feb 2018 16:43:28 +0000 (11:43 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commit1a26383535b7f859012d695c88b9e14676bf0d67
treeb0debb098a0e0fc6e863407ae42572adb15dd313
parent4af4f284812bb95a6c9d9fb9f331a9d500f47e6b
mm: Fix permission checks

Our checks are based on the file's open mode, not on the underlying inode
permissions.  Note that the VFS currently stores its open mode (e.g.
O_READ) as an rwx.

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