paludis::SecurityContext Class Reference

#include <security_context.hh>

Inheritance diagram for paludis::SecurityContext:

paludis::PrivateImplementationPattern< C_ >

List of all members.

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 > &)


Detailed Description

Security context class. Wraps security_context_t.

Constructor & Destructor Documentation

paludis::SecurityContext::SecurityContext (  ) 

Constructor

paludis::SecurityContext::SecurityContext ( const std::string &   ) 

Can be constructed from a string.

paludis::SecurityContext::~SecurityContext (  ) 

Destructor


Member Function Documentation

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


Friends And Related Function Documentation

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()


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4