-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68021/#review212160
-----------------------------------------------------------


Fix it, then Ship it!





src/slave/containerizer/mesos/isolators/linux/seccomp.cpp
Lines 49 (patched)
<https://reviews.apache.org/r/68021/#comment297820>

    equivalent to `if(ret == -1 || EFAULT == errno)`?



src/slave/containerizer/mesos/isolators/linux/seccomp.cpp
Lines 62-63 (patched)
<https://reviews.apache.org/r/68021/#comment297824>

    I would cache it and just parse the default profile once. Let's introduce a 
private variable:
    
    Option<ContainerSeccompProfile> defaultProfile;



src/slave/containerizer/mesos/isolators/linux/seccomp.cpp
Lines 95 (patched)
<https://reviews.apache.org/r/68021/#comment297826>

    "Missing Seccomp profile name"



src/slave/containerizer/mesos/isolators/linux/seccomp.cpp
Lines 107 (patched)
<https://reviews.apache.org/r/68021/#comment297825>

    only parse it if it is the profile from the framework API.



src/slave/containerizer/mesos/isolators/linux/seccomp.cpp
Lines 114 (patched)
<https://reviews.apache.org/r/68021/#comment297828>

    kill newline


- Gilbert Song


On Nov. 8, 2018, 7:24 a.m., Andrei Budnik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68021/
> -----------------------------------------------------------
> 
> (Updated Nov. 8, 2018, 7:24 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, James Peach, and Qian Zhang.
> 
> 
> Bugs: MESOS-9035
>     https://issues.apache.org/jira/browse/MESOS-9035
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch introduces `linux/seccomp` isolator which is used for
> preparing `ContainerSeccompProfile` for the Mesos containerizer
> launcher. If the `ContainerConfig` message has an info about Seccomp
> profile name, then this info will be used to locate a Seccomp profile.
> The given Seccomp profile is parsed and the resulting
> `ContainerSeccompProfile` is stored in the `ContainerLaunchInfo`
> message.
> 
> 
> Diffs
> -----
> 
>   src/CMakeLists.txt a574d449dc26b820cbef7ff0b5e94b42b6fe86cf 
>   src/Makefile.am cd785255fcdf1302a8f9fa358039e5d1f200e132 
>   src/slave/containerizer/mesos/containerizer.cpp 
> 5016f2e9f0651abcb0a5f364e8eace458f2edeae 
>   src/slave/containerizer/mesos/isolators/linux/seccomp.hpp PRE-CREATION 
>   src/slave/containerizer/mesos/isolators/linux/seccomp.cpp PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/68021/diff/15/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Andrei Budnik
> 
>

Reply via email to