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

Function parseSyscallAction

src/linux/seccomp/seccomp_parser.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44Try<ContainerSeccompProfile::Syscall::Action> parseSyscallAction(
45 const string& value)
46{
47 ContainerSeccompProfile::Syscall::Action result;
48
49 if (!strings::startsWith(value, SCMP_PREFIX)) {
50 return Error("Unexpected syscall action: '" + value + "'");
51 }
52
53 if (!ContainerSeccompProfile::Syscall::Action_Parse(
54 string(value, strlen(SCMP_PREFIX)), &result)) {
55 return Error("Unknown syscall action: '" + value + "'");
56 }
57
58 return std::move(result);
59}
60
61
62Try<ContainerSeccompProfile::Architecture> parseArchitecture(

Callers 2

parseDefaultActionFunction · 0.85
foreachFunction · 0.85

Calls 2

startsWithFunction · 0.85
ErrorFunction · 0.50

Tested by

no test coverage detected