Create vpn runtime data dirs in init script
This CL is in preparation to run the shill process tree as a non-root
user.
Currently, /run/l2tpipsec_vpn and /run/ipsec are created by shill for
use by vpn code for storing runtime data. Since shill will soon run as
non-root user (with neither access to /run nor CAP_CHOWN), it will not
be able to create these dirs or chown them. Instead, we create these
dirs in the init job and assign them the necessary ownership.
CQ-DEPEND=1040992
CQ-DEPEND=1041132
BUG=chromium:649417
TEST=tested as part of larger sandbox shill debug CL
Change-Id: I7a37b5c9568d16cbd8e0255fa0c20dee13900157
Reviewed-on: https://chromium-review.googlesource.com/1042876
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Micah Morton <mortonm@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
1 file changed