-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add support for adding capabilities #156
base: master
Are you sure you want to change the base?
Conversation
This is now technically working for my use case. It would have to become generic and probably a lot of cleanup before we can merge it. But I'm now unblocked from shipping my container. |
I ended up not needing this because I could solve it at another level. If you want to close this that's fine, otherwise I'll try to get back to it when I have some more time and do the clean-up and generalisation. |
@ulrikstrid oh, that's unfortunate you no longer need this because this is pretty interesting! Excepting supporting user specified capabilities (not only |
If you're open to keeping the PR around I'm willing to fix it, just at a slower pace 😊 |
This is very hacky, just wanted to push before I close for the day. It needs a lot of cleanup when it finally works.
I'm not a Go programmer at all so excuse the quality. I tried basing the changes on the
perms
feature which seems like it's quite similar in use.This doesn't seem to work as expected as when it's untared it doesn't have the correct capabilities. But I do have a small Go program to test that the bytes seems to be generated correctly, so I assume it's a question of trying to figure out what format the string should be in.