Skip to content

Conversation

@mheon
Copy link
Contributor

@mheon mheon commented Oct 20, 2015

This enables tracing of blocked system calls in a container. This could be useful for debugging, and is the only Seccomp action runc doesn't support at present.

This enables tracing of blocked system calls in a container for debugging
purposes.

Signed-off-by: Matthew Heon <[email protected]>
@mheon
Copy link
Contributor Author

mheon commented Oct 20, 2015

This defaults to using EPERM as its signal, to match ACT_ERRNO. Looking into making that configurable in the runc spec, hopefully will have a PR out for that by end of today.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not do it like this ?


const (
    Kill Action = iota
    Errno
    Trap
    Allow
    Trace
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way, uninitialized Action variables will not be a valid constant, and will cause an error

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just like the define of "EqualTo Operator", I do think it has problem,Maybe the error caused by other. It doesn't matter all the same,just a surgestion. thanks for your reply.

crosbymichael added a commit to crosbymichael/runc that referenced this pull request Nov 13, 2015
Closes opencontainers#347

Signed-off-by: Michael Crosby <[email protected]>
@LK4D4 LK4D4 closed this in #398 Nov 13, 2015
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants