-
Notifications
You must be signed in to change notification settings - Fork 436
Add support for setting POSIX capabilities on the binary generated by Go #1098
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
Changes from 5 commits
e2d0107
207568f
4b8b8a5
9d857d3
7032d6c
33df6eb
74ccd73
5832ce0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,3 +177,11 @@ func WithSBOMDir(dir string) Option { | |
| return nil | ||
| } | ||
| } | ||
|
|
||
| // WithPOSIXCapabilities is a functional option for overriding the POSIX capabilities encoded in the binary file. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small nit: How would you feel about
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because |
||
| func WithPOSIXCapabilities(capabilities []Cap) Option { | ||
| return func(gbo *gobuildOpener) error { | ||
| gbo.capabilities = capabilities | ||
| return nil | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.