MCPcopy Create free account
hub / github.com/apache/mesos / allow

Function allow

src/linux/cgroups.cpp:2873–2889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2871
2872
2873Try<Nothing> allow(
2874 const string& hierarchy,
2875 const string& cgroup,
2876 const Entry& entry)
2877{
2878 Try<Nothing> write = cgroups::write(
2879 hierarchy,
2880 cgroup,
2881 "devices.allow",
2882 stringify(entry));
2883
2884 if (write.isError()) {
2885 return Error("Failed to write to 'devices.allow': " + write.error());
2886 }
2887
2888 return Nothing();
2889}
2890
2891
2892Try<Nothing> deny(

Callers 4

TEST_FFunction · 0.85
foreachFunction · 0.85
foreachkeyFunction · 0.85
foreachFunction · 0.85

Calls 6

NothingClass · 0.85
writeFunction · 0.70
stringifyFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45

Tested by 1

TEST_FFunction · 0.68