paludis  Version 2.6.0
Public Member Functions | List of all members
paludis::FSCreateCon Class Reference

#include <security_context.hh>

Public Member Functions

 FSCreateCon (const std::shared_ptr< const SecurityContext > &)
 
 ~FSCreateCon ()
 

Detailed Description

RAII-style wrapper for setfscreatecon().

Create an FSCreateCon object to set the security context of newly created file objects. When destroyed, it will revert to the previous creation context.

Note that with older versions of libselinux this operation is not thread-safe. Any multi-threaded code calling it must use a critical section to ensure the desired behaviour on all systems.

Constructor & Destructor Documentation

paludis::FSCreateCon::FSCreateCon ( const std::shared_ptr< const SecurityContext > &  )

Constructor

paludis::FSCreateCon::~FSCreateCon ( )

Destructor


The documentation for this class was generated from the following file: