|
Hermes 0.7.0
Linux game streaming host
|
What an isolated session sees of the host's /dev. More...
#include <memory>#include <string>#include <system_error>#include <vector>#include <sys/types.h>#include <boost/filesystem/path.hpp>#include <boost/process/v1/child.hpp>#include <boost/process/v1/environment.hpp>#include <boost/process/v1/group.hpp>Go to the source code of this file.
Classes | |
| struct | platf::session_devices::options_t |
| class | platf::session_devices::plan_t |
| Work done in a session's process between fork and exec. More... | |
| class | platf::session_devices::mirror_t |
| Keeps a session's /dev holding its devices while they come and go. More... | |
Macros | |
| #define | BOOST_PROCESS_VERSION 1 |
Functions | |
| bool | platf::session_devices::available () |
| Whether Hermes holds what isolation needs: CAP_SYS_ADMIN and CAP_MKNOD. | |
| boost::process::v1::child | platf::session_devices::run_command (const plan_t *plan, const std::string &cmd, boost::filesystem::path &working_dir, const boost::process::v1::environment &env, FILE *file, std::error_code &ec, boost::process::v1::group *group) |
| run_command() with plan applied in the child first; no plan runs it as is. | |
| std::unique_ptr< mirror_t > | platf::session_devices::mirror (pid_t pid, const std::string &seat, bool hide_hid_gamepads=false) |
| Mirror into the /dev of pid's mount namespace; nullptr on failure. | |
What an isolated session sees of the host's /dev.
Definition in file session_devices.h.
| #define BOOST_PROCESS_VERSION 1 |
Definition at line 8 of file session_devices.h.
| bool platf::session_devices::available | ( | ) |
Whether Hermes holds what isolation needs: CAP_SYS_ADMIN and CAP_MKNOD.
Definition at line 102 of file session_devices.cpp.
| std::unique_ptr< mirror_t > platf::session_devices::mirror | ( | pid_t | pid, |
| const std::string & | seat, | ||
| bool | hide_hid_gamepads ) |
Mirror into the /dev of pid's mount namespace; nullptr on failure.
Definition at line 514 of file session_devices.cpp.