Internal class to manage setuid privilege escalation with RAII. More...
#include <MagAOXApp.hpp>
Public Member Functions | |
elevatedPrivileges (MagAOXApp *app) | |
void | elevate () |
void | restore () |
~elevatedPrivileges () | |
Private Attributes | |
MagAOXApp * | m_app |
bool | m_elevated {false} |
Internal class to manage setuid privilege escalation with RAII.
Upon construction this elevates to the called user id, root in a setuid process. Restores privileges to real user id upon destruction (i.e. when it goes out of scope).
Definition at line 324 of file MagAOXApp.hpp.
|
inlineexplicit |
Definition at line 331 of file MagAOXApp.hpp.
|
inline |
Definition at line 353 of file MagAOXApp.hpp.
|
inline |
Definition at line 337 of file MagAOXApp.hpp.
|
inline |
Definition at line 345 of file MagAOXApp.hpp.
|
private |
Definition at line 327 of file MagAOXApp.hpp.
|
private |
Definition at line 328 of file MagAOXApp.hpp.