#include <security_context.hh>
Public Member Functions | |
SecurityContext () | |
SecurityContext (const std::string &) | |
~SecurityContext () | |
Static Public Member Functions | |
static std::tr1::shared_ptr < const SecurityContext > | current_context () |
static std::tr1::shared_ptr < const SecurityContext > | fs_create_context () |
Friends | |
class | paludis::FSCreateCon |
class | paludis::MatchPathCon |
std::ostream & | operator<< (std::ostream &, const SecurityContext &) |
int | setfilecon (const paludis::FSEntry &, const std::tr1::shared_ptr< const SecurityContext > &) |
paludis::SecurityContext::SecurityContext | ( | ) |
Constructor
paludis::SecurityContext::SecurityContext | ( | const std::string & | ) |
Can be constructed from a string.
paludis::SecurityContext::~SecurityContext | ( | ) |
Destructor
static std::tr1::shared_ptr<const SecurityContext> paludis::SecurityContext::current_context | ( | ) | [static] |
Returns a SecurityContext referring to the current process's context
static std::tr1::shared_ptr<const SecurityContext> paludis::SecurityContext::fs_create_context | ( | ) | [static] |
Returns a SecurityContext referring to the current filesystem creation context
std::ostream& operator<< | ( | std::ostream & | , | |
const SecurityContext & | ||||
) | [friend] |
A SecurityContext can be written to a stream.
int setfilecon | ( | const paludis::FSEntry & | , | |
const std::tr1::shared_ptr< const SecurityContext > & | ||||
) | [friend] |
Thin wrapper around setfilecon()