| 42 | |
| 43 | |
| 44 | Try<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 | |
| 62 | Try<ContainerSeccompProfile::Architecture> parseArchitecture( |
no test coverage detected