Luo Huining, the director of the Beijing Liaison Office in Hong Kong has been appointed as national security adviser.