Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add seccomp profiler #181

Merged
merged 2 commits into from Jan 20, 2021
Merged

feat: add seccomp profiler #181

merged 2 commits into from Jan 20, 2021

Conversation

hmdhk
Copy link
Contributor

@hmdhk hmdhk commented Jan 6, 2021

This is the first draft for generating seccomp profile from any runtime environment. This approach uses the syslog generated from seccomp violations and parses these logs to create a seccomp profile in yaml format. By default it runs the synthetic agent to generate the profile but it can be configured to work for other executables.

To generate a profile use docker-compose up seccomp-profiler (in seccomp folder)

Remaning issues:

  • The rsyslog service seems to be running a bit late which creates inconsistency when generating the profile
  • We should use docker syslog driver

@hmdhk
Copy link
Contributor Author

hmdhk commented Jan 6, 2021

@andrewvc , I've created this draft so we can discuss the approach in more detail. Please have a look and let me know what you think.

@hmdhk hmdhk requested a review from andrewvc January 6, 2021 09:05
@apmmachine
Copy link
Collaborator

apmmachine commented Jan 6, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #181 updated

    • Start Time: 2021-01-19T14:13:59.069+0000
  • Duration: 16 min 30 sec

  • Commit: 9038f22

Test stats 🧪

Test Results
Failed 0
Passed 47
Skipped 0
Total 47

@hmdhk hmdhk marked this pull request as ready for review January 18, 2021 14:24
Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

This approach seems reasonable for a start here. LGTM

@hmdhk hmdhk merged commit c6c80f8 into elastic:master Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants