paludis
Version 2.6.0
|
#include <security_context.hh>
Public Member Functions | |
FSCreateCon (const std::shared_ptr< const SecurityContext > &) | |
~FSCreateCon () | |
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.
paludis::FSCreateCon::FSCreateCon | ( | const std::shared_ptr< const SecurityContext > & | ) |
Constructor
paludis::FSCreateCon::~FSCreateCon | ( | ) |
Destructor