Build skeleton home directories in root-only path.
When building a user or guest home directory there are various ownership
and permissions operations that are performed. Doing this work in a
location accessible only to root helps prevent race conditions inducible
by a process running as chronos.
BUG=chromium-os:38821
TEST=unit tests, manual testing
Change-Id: Id59cf4a3a684e69da73c3014d8979b2550087bb2
Reviewed-on: https://gerrit.chromium.org/gerrit/43422
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43524
2 files changed