freedesktop Use the PolicyKit framework (sys-auth/policykit) to get authorization for suspend/shutdown.