[security] Undo privilege modifications in Sentry