Add config option to allow sudo to the same user

This patch adds a configuration setting to allow running commands through sudo to the same user. This is useful when sudo does more than change the effective uid of the process, such as switching SELinux contexts.