jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
TestFileUtil02 Class Reference
Inheritance diagram for TestFileUtil02:
Collaboration diagram for TestFileUtil02:

Public Member Functions

void test50_mount_copy_r_p ()
 

Static Public Member Functions

static bool cap_get_flag (cap_t cap_p, cap_value_t cap, cap_flag_t flag, cap_flag_value_t *value_p) noexcept
 
static bool cap_set_flag (cap_t cap_p, cap_flag_t flag, int ncap, const cap_value_t *caps, cap_flag_value_t value) noexcept
 
static bool cap_set_proc_flag (const std::string &title, cap_flag_t flag, int ncap, const cap_value_t *cap_list) noexcept
 
::gid_t get_gid (const std::string &groupname)
 Get group-id by groupname using system commands getent and cut.
 
static void print_caps (const std::string &title)
 

Detailed Description

Definition at line 40 of file testsudo_fileutils02.cpp.

Member Function Documentation

◆ cap_get_flag()

static bool TestFileUtil02::cap_get_flag ( cap_t cap_p,
cap_value_t cap,
cap_flag_t flag,
cap_flag_value_t * value_p )
inlinestaticnoexcept

Definition at line 87 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ cap_set_flag()

static bool TestFileUtil02::cap_set_flag ( cap_t cap_p,
cap_flag_t flag,
int ncap,
const cap_value_t * caps,
cap_flag_value_t value )
inlinestaticnoexcept

Definition at line 94 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ cap_set_proc_flag()

static bool TestFileUtil02::cap_set_proc_flag ( const std::string & title,
cap_flag_t flag,
int ncap,
const cap_value_t * cap_list )
inlinestaticnoexcept

Definition at line 102 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ print_caps()

static void TestFileUtil02::print_caps ( const std::string & title)
inlinestatic

Definition at line 120 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ get_gid()

::gid_t TestFileUtil02::get_gid ( const std::string & groupname)
inlinestatic

Get group-id by groupname using system commands getent and cut.

Known group-ids are

  • Ubuntu, Debian group 24: cdrom
  • FreeBSD, Ubuntu, Debian group 44: video
  • Alpine/Linux group 27: video

Definition at line 143 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ test50_mount_copy_r_p()

void TestFileUtil02::test50_mount_copy_r_p ( )
inline

Definition at line 163 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

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