Don't attempt namec_from from non-O_PATH FDs
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 21 Dec 2016 16:12:50 +0000 (11:12 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commit14ba6670d1e49459ab50b2f07f0f8e4caeb39b0a
treeae87d50086e969fa6accbd339e6f60a93ab3159f
parent8e2e4517a87ffe83d8b54c359ac505c5316a0acd
Don't attempt namec_from from non-O_PATH FDs

If you tried this, you'd panic later on.  It's a user error to do this, not
a kernel bug.

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