Add privsep

Tested on linux only. Does the API seem reasonable?