|
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 . More...
|
|
static void | print_caps (const std::string &title) |
|
Definition at line 39 of file testsudo_fileutils02.cpp.
◆ 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 |
◆ 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 |
◆ 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 |
◆ print_caps()
static void TestFileUtil02::print_caps |
( |
const std::string & |
title | ) |
|
|
inlinestatic |
◆ 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 142 of file testsudo_fileutils02.cpp.
◆ test50_mount_copy_r_p()
void TestFileUtil02::test50_mount_copy_r_p |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: