paludis Version 3.0.2
The one true package mangler
paludis::FSCreateCon Class Reference

#include <security_context.hh>

Public Member Functions

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

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

◆ FSCreateCon()

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

Constructor

◆ ~FSCreateCon()

paludis::FSCreateCon::~FSCreateCon ( )

Destructor


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