A helper class to execute shell commands securely. This class is a high level interface added to ease testability of component that use it.
More...
#include "utils/command/executor/IExecutor.h"
|
| struct | ProgramParams |
| | A data structure containing all input parameters expected by execProgram() method. More...
|
| |
A helper class to execute shell commands securely. This class is a high level interface added to ease testability of component that use it.
- Note
- Copy contructor, copy-assignment operator, move constructor and move-assignment operator are defined to be compliant with the "Rule of five"
- See also
- https://en.cppreference.com/w/cpp/language/rule_of_three
- Author
- Boubacar DIENE bouba.nosp@m.car..nosp@m.diene.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Date
- May 2020
◆ Flags
Bitmasks to give control on how this class is handling requests.
| Enumerator |
|---|
| WAIT_COMMAND | Wait until command is completed
|
| RESEED_PRNG | Re-initialize the Random number Generator
|
| SANITIZE_FILES | Closed file descriptors, ...
|
| DROP_PRIVILEGES | Drop the process's privileges
|
| ALL | |
◆ IExecutor() [1/3]
| utils::command::IExecutor::IExecutor |
( |
Flags |
flags | ) |
|
|
inlineexplicit |
Class constructor
- Parameters
-
| flags | A set of masks of type Flags |
◆ ~IExecutor()
| virtual utils::command::IExecutor::~IExecutor |
( |
| ) |
|
|
virtualdefault |
◆ IExecutor() [2/3]
| utils::command::IExecutor::IExecutor |
( |
const IExecutor & |
| ) |
|
|
delete |
◆ IExecutor() [3/3]
| utils::command::IExecutor::IExecutor |
( |
IExecutor && |
| ) |
|
|
delete |
◆ executeProgram()
| virtual void utils::command::IExecutor::executeProgram |
( |
const ProgramParams & |
params | ) |
const |
|
pure virtual |
◆ operator=() [1/2]
Class copy-assignment operator
◆ operator=() [2/2]
Class move-assignment operator
◆ m_flags
| Flags utils::command::IExecutor::m_flags |
|
protected |
The documentation for this interface was generated from the following file: