blocxx
Namespaces | Enumerations | Functions

Secure.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Exception.hpp"
#include "blocxx/CommonFwd.hpp"
#include "blocxx/Types.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
 

Taken from RFC 1321.


namespace  BLOCXX_NAMESPACE::Secure

Enumerations

enum  BLOCXX_NAMESPACE::Secure::EChildGroupAction { BLOCXX_NAMESPACE::Secure::E_NO_EXTENDED_GROUPS = 0, BLOCXX_NAMESPACE::Secure::E_SOURCE_EXTENDED_GROUPS }

Functions

 BLOCXX_NAMESPACE::Secure::BLOCXX_DECLARE_EXCEPTION (ProcessAbort)
 Secure::ProcessAbortException should be caught only at the top level of the program.
BLOCXX_COMMON_API void BLOCXX_NAMESPACE::Secure::dropPrivilegesPermanently (uid_t newuid, gid_t newgid, EChildGroupAction extendedGroupAction)
 Changes both the effective and actual user ID to newuid, and the effective and actual group IDs to newgid, clearing out all of root's auxiliary groups.
void BLOCXX_NAMESPACE::Secure::runAs (char const *username, EChildGroupAction extendedGroupAction=E_SOURCE_EXTENDED_GROUPS)
 Look up user ID and group ID for username in password file, chdir to "/", then drop privileges and run with that user ID and group ID.
StringArray BLOCXX_NAMESPACE::Secure::minimalEnvironment ()