added network privilege grant/remoke function.