The application I'm working on requires the ability to edit certain protected files across Linux, OSX, and Windows [Vista]. Generally, when an application needs to do something with elevated privileges, a password request dialog appears asking the user to verify they want to allow the application to perform those operations as an administrator.
I believe in general, Windows Vista utilizes Manifest files, OSX has the Authorization library (https://developer.apple.com/mac/library/documentation/Security/Reference/authorization%5Fref/Reference/reference.html), and Linux has a variety of sudo frontends.
Is there a generally acceptable cross-platform way of handling this? I don't want my application to have to be run as the root user, but I do want it to be able to open a protected file for read/write operations, then resume back to normal user mode.