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 323 of file MagAOXApp.hpp.
|
inlineexplicit |
Definition at line 330 of file MagAOXApp.hpp.
|
inline |
Definition at line 354 of file MagAOXApp.hpp.
|
inline |
Definition at line 336 of file MagAOXApp.hpp.
|
inline |
Definition at line 345 of file MagAOXApp.hpp.
|
private |
Definition at line 326 of file MagAOXApp.hpp.
|
private |
Definition at line 327 of file MagAOXApp.hpp.