Adding support for privilege drop