-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
runc aways open "/proc/sys/kernel/cap_last_cap" #4356
Comments
ping @lifubang @kolyshkin |
This is a bug in https://github.com/syndtr/gocapability. You would just need to switch to using EDIT: Ah, you already made a bug (syndtr/gocapability#26). Please link related bugs so they're easier to find. |
this library hasn't been updated for a long time. maybe nobody will maintain it. Can we move it to |
I mean to do var (
someBoolOnce sync.Once
someBool bool
)
func getSomeBool() bool {
someBoolOnce.Do(func() { ... })
return someBool
} |
A slightly more modern way is to use Alas there's no way to stop Re github.com/syndtr/gocapability, I have 4 easy-to-review PRs in there opened Feb 2023, and it seems the original maintainer is not interested. Guess it's time to fork it. |
Description
runc aways open "/proc/sys/kernel/cap_last_cap" because it it done it init().
Steps to reproduce the issue
1.runc --help will read /proc/sys/kernel/cap_last_cap
Describe the results you received and expected
read /proc/sys/kernel/cap_last_cap when needed
What version of runc are you using?
1.1.12
Host OS information
linux
Host kernel information
any
The text was updated successfully, but these errors were encountered: