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

Added ebps support(based on runc implementation) #116

Merged
merged 6 commits into from
Nov 15, 2019

Conversation

Zyqsempai
Copy link
Contributor

Partially Fixes #104
Added eBPS support(based on @AkihiroSuda implementation for runc)
Signed-off-by: bpopovschi zyqsempai@mail.ru

@Zyqsempai
Copy link
Contributor Author

@AkihiroSuda Do we need allowed devices list here?

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Nov 13, 2019

The current eBPF code already supports allowing specific devices

@codecov-io
Copy link

codecov-io commented Nov 14, 2019

Codecov Report

Merging #116 into master will increase coverage by 1.1%.
The diff coverage is 53.14%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #116     +/-   ##
=========================================
+ Coverage   35.46%   36.56%   +1.1%     
=========================================
  Files          32       34      +2     
  Lines        2154     2297    +143     
=========================================
+ Hits          764      840     +76     
- Misses       1262     1324     +62     
- Partials      128      133      +5
Impacted Files Coverage Δ
v2/manager.go 0% <0%> (ø) ⬆️
v2/ebpf.go 0% <0%> (ø)
v2/devicefilter.go 79.16% <79.16%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daf5261...dea9e11. Read the comment docs.

v2/devicefilter.go Outdated Show resolved Hide resolved
@Zyqsempai
Copy link
Contributor Author

@AkihiroSuda @crosbymichael PTAL

@AkihiroSuda
Copy link
Member

I'm still wondering devices should be under this structure: https://godoc.org/github.com/containerd/cgroups/v2#Resources

@crosbymichael
Copy link
Member

Can you rebase this one as well?

@Zyqsempai
Copy link
Contributor Author

@crosbymichael Done

@crosbymichael
Copy link
Member

rebase:)

Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
@Zyqsempai
Copy link
Contributor Author

@crosbymichael Done

@crosbymichael
Copy link
Member

LGTM

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

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.

cgroup2: check list for v2 controller implementations
5 participants