17 #ifndef __LINUX_CAPABILITIES_HPP__ 18 #define __LINUX_CAPABILITIES_HPP__ 31 namespace capabilities {
98 const std::set<Capability>&
get(
const Type&
type)
const;
99 void set(
const Type&
type,
const std::set<Capability>& capabilities);
105 return right.effective == effective &&
106 right.permitted == permitted &&
107 right.inheritable == inheritable &&
108 right.bounding == bounding &&
109 right.ambient == ambient;
114 std::ostream& stream,
117 std::set<Capability> effective;
118 std::set<Capability> permitted;
119 std::set<Capability> inheritable;
120 std::set<Capability> bounding;
121 std::set<Capability> ambient;
180 std::set<Capability> getAllSupportedCapabilities();
199 std::set<Capability>
convert(
const CapabilityInfo& capabilityInfo);
200 CapabilityInfo
convert(
const std::set<Capability>& capabilitySet);
204 std::ostream& stream,
209 std::ostream& stream,
214 std::ostream& stream,
221 #endif // __LINUX_CAPABILITIES_HPP__ Definition: capabilities.hpp:57
Encapsulation of capability value sets.
Definition: capabilities.hpp:95
Definition: capabilities.hpp:38
Definition: capabilities.hpp:42
Definition: capabilities.hpp:63
friend std::ostream & operator<<(std::ostream &stream, const ProcessCapabilities &processCapabilities)
Definition: capabilities.hpp:70
Definition: capabilities.hpp:85
Definition: capabilities.hpp:48
Definition: capabilities.hpp:59
Definition: capabilities.hpp:64
Definition: capabilities.hpp:68
Definition: capabilities.hpp:88
void drop(const Type &type, const Capability &capability)
Definition: capabilities.hpp:40
Definition: capabilities.hpp:58
Capability
Definition: capabilities.hpp:35
Definition: capabilities.hpp:76
Definition: capabilities.hpp:44
bool operator==(const ProcessCapabilities &right) const
Definition: capabilities.hpp:103
Definition: capabilities.hpp:46
Definition: capabilities.hpp:37
Definition: capabilities.hpp:52
Definition: capabilities.hpp:50
const bool ambientCapabilitiesSupported
Whether ambient capabilities are supported on this host.
Definition: capabilities.hpp:188
void add(const Type &type, const Capability &capability)
Definition: capabilities.hpp:54
Definition: capabilities.hpp:86
Definition: capabilities.hpp:87
Definition: capabilities.hpp:53
Definition: capabilities.hpp:62
Definition: capabilities.hpp:56
Definition: capabilities.hpp:72
Definition: capabilities.hpp:55
Definition: capabilities.hpp:43
Capability convert(const CapabilityInfo::Capability &capability)
Definition: capabilities.hpp:74
Definition: capabilities.hpp:75
Definition: capabilities.hpp:39
Definition: capabilities.hpp:41
Definition: capabilities.hpp:49
Definition: attributes.hpp:24
Definition: capabilities.hpp:71
Definition: capabilities.hpp:60
Type
Definition: capabilities.hpp:82
Definition: capabilities.hpp:84
Definition: capabilities.hpp:73
Try< uint32_t > type(const std::string &path)
Definition: capabilities.hpp:69
Definition: capabilities.hpp:67
Definition: capabilities.hpp:45
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
Definition: capabilities.hpp:61
Definition: capabilities.hpp:65
Definition: capabilities.hpp:66
Definition: capabilities.hpp:51
Definition: capabilities.hpp:78
Provides wrapper for the linux process capabilities interface.
Definition: capabilities.hpp:134
Definition: capabilities.hpp:47
Definition: capabilities.hpp:77