geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::SecurePath Class Reference

Helper object to optionally verify that a file was created with a. More...

#include <SecurePath.hpp>

Public Member Functions

 SecurePath ()=delete
 
 SecurePath (const SecurePath &other)=delete
 
SecurePathoperator= (const SecurePath &other)=delete
 
 SecurePath (const std::string &orig_path)
 Verify if orig_path is secure. This defaults to enforcing for. More...
 
 SecurePath (const std::string &orig_path, mode_t umask, bool enforce)
 Verify if orig_path is secure (optional) More...
 
virtual ~SecurePath ()
 
std::string secure_path (void) const
 Accessor for path under procfs. More...
 

Detailed Description

Helper object to optionally verify that a file was created with a.

Constructor & Destructor Documentation

◆ SecurePath() [1/4]

geopm::SecurePath::SecurePath ( )
delete

◆ SecurePath() [2/4]

geopm::SecurePath::SecurePath ( const SecurePath other)
delete

◆ SecurePath() [3/4]

geopm::SecurePath::SecurePath ( const std::string &  orig_path)

Verify if orig_path is secure. This defaults to enforcing for.

◆ SecurePath() [4/4]

geopm::SecurePath::SecurePath ( const std::string &  orig_path,
mode_t  umask,
bool  enforce 
)

Verify if orig_path is secure (optional)

Parameters
orig_path[in] Path to the file to examine
umask[in] The umask with which to assert orig_path was created
enforce[in] Whether or not to enforce ownership/permissions checks

◆ ~SecurePath()

geopm::SecurePath::~SecurePath ( )
virtual

Member Function Documentation

◆ operator=()

SecurePath& geopm::SecurePath::operator= ( const SecurePath other)
delete

◆ secure_path()

std::string geopm::SecurePath::secure_path ( void  ) const

Accessor for path under procfs.


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