paludis
Version 2.6.0
|
#include <security_context.hh>
Public Member Functions | |
MatchPathCon () | |
~MatchPathCon () | |
std::shared_ptr< const SecurityContext > | match (const std::string &, mode_t=0) const |
bool | good () const |
![]() | |
Singleton ()=default | |
Singleton (const Singleton &)=delete | |
const Singleton & | operator= (const Singleton &)=delete |
Additional Inherited Members | |
![]() | |
static MatchPathCon * | get_instance () PALUDIS_ATTRIBUTE((warn_unused_result)) |
static void | destroy_instance () |
Wrapper class around matchpathcon().
paludis::MatchPathCon::MatchPathCon | ( | ) |
Constructor. Optional parameter is the path to the file_contexts to use.
paludis::MatchPathCon::~MatchPathCon | ( | ) |
Destructor
bool paludis::MatchPathCon::good | ( | ) | const |
Did the initialisation succeed?
std::shared_ptr<const SecurityContext> paludis::MatchPathCon::match | ( | const std::string & | , |
mode_t | = 0 |
||
) | const |
Retrieve the default context for a given pathname