proc_alloc: make new process inherit parent's user
authorFergus Simpson <afergs@google.com>
Thu, 5 Jan 2017 23:44:38 +0000 (15:44 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Jan 2017 18:27:55 +0000 (13:27 -0500)
commit39d8f3ab21b58fca2566b402d37d848e1defab9a
tree720912f0a21d260bd2c5844e6347b83b8852b22b
parentc8892f427d4e7077752636c2c03b90384e2d0012
proc_alloc: make new process inherit parent's user

Fixes proc_alloc() to copy the new process's parent's user, or set the
user to "" if there is no parent.

If the username "" is assigned and the hostowner is not "", a warning is
printed that the process does not have hostowner privileges.

Change-Id: Ie6dfa7a5b1c13583fa0475758044f5a7121d6bbe
Signed-off-by: Fergus Simpson <afergs@google.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/process.h
kern/src/process.c