Merge "init: split security functions out of init.cpp"