17 #ifndef __CGROUPS_ISOLATOR_SUBSYSTEMS_DEVICES_HPP__ 18 #define __CGROUPS_ISOLATOR_SUBSYSTEMS_DEVICES_HPP__ 51 std::string
name()
const override 57 const ContainerID& containerId,
59 const mesos::slave::ContainerConfig& containerConfig)
override;
62 const ContainerID& containerId,
63 const std::string& cgroup)
override;
66 const ContainerID& containerId,
67 const std::string& cgroup)
override;
72 const std::string& hierarchy,
73 const std::vector<cgroups::devices::Entry>& whitelistDeviceEntries);
76 std::vector<cgroups::devices::Entry> whitelistDeviceEntries;
83 #endif // __CGROUPS_ISOLATOR_SUBSYSTEMS_DEVICES_HPP__ const std::string CGROUP_SUBSYSTEM_DEVICES_NAME
Definition: constants.hpp:46
process::Future< Nothing > cleanup(const ContainerID &containerId, const std::string &cgroup) override
~DevicesSubsystemProcess() override=default
static Try< process::Owned< SubsystemProcess > > create(const Flags &flags, const std::string &hierarchy)
process::Future< Nothing > prepare(const ContainerID &containerId, const std::string &cgroup, const mesos::slave::ContainerConfig &containerConfig) override
Result< std::string > cgroup(pid_t pid)
Definition: subsystem.hpp:190
Definition: attributes.hpp:24
const std::string hierarchy
The hierarchy path of cgroups subsystem.
Definition: subsystem.hpp:245
std::string name() const override
Definition: devices.hpp:51
Represent cgroups devices subsystem.
Definition: devices.hpp:42
process::Future< Nothing > recover(const ContainerID &containerId, const std::string &cgroup) override