-
Notifications
You must be signed in to change notification settings - Fork 159
Check CAP_LAST_CAP while setting privileged #138
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 all commits
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 |
|---|---|---|
|
|
@@ -15,11 +15,26 @@ ocitools is a collection of tools for working with the [OCI runtime specificatio | |
|
|
||
| # OPTIONS | ||
| **--help** | ||
| Print usage statement | ||
| Print usage statement. | ||
|
|
||
| **-v**, **--version** | ||
| Print version information. | ||
|
|
||
| **--log-level** | ||
| Log level (panic, fatal, error, warn, info, or debug) (default: "error"). | ||
|
|
||
| **--host-specific** | ||
| Generate host-specific configs or do host-specific validations. | ||
|
Contributor
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. This section (including the following paragraph) needs to be genericized now that it's covering both generate and validate.
Contributor
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. This comment has been addressed. |
||
|
|
||
| By default, generator generates configs without checking whether they are | ||
| supported on the current host. With this flag, generator will first check | ||
| whether each config is supported on the current host, and only add it into | ||
| the config file if it passes the checking. | ||
|
|
||
| By default, validation only tests for compatibility with a hypothetical host. | ||
| With this flag, validation will also run more specific tests to see whether | ||
| the current host is capable of launching a container from the configuration. | ||
|
|
||
| # COMMANDS | ||
| **validate** | ||
| Validating OCI bundle | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section should probably be using
AddProcessCapabilityand passinghostSpecificthrough too that function.AddProcessCapability(or maybecheckCap) should actually be doing the conditionalCAP_LAST_CAPcomparison.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wking , Thanks for pointing out.
I would rather keep this function as it is for code efficiency.
I will fix
AddProcessCapabilityand other related functions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Thu, Jul 21, 2016 at 03:03:04PM -0700, hmeng-19 wrote:
Are we really worried about performance for compiling a capability
list? Can you spell out your concern in more detail or give a dummy
benchmark or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be addressed in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Thu, Jul 21, 2016 at 03:39:31PM -0700, Mrunal Patel wrote:
Using AddProcessCapability here? I guess, if we can't decide in this
one. I'm happy to file that PR if you want to land this without
addressing that point (although I still think we want to handle 1
here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wking Yes, you can open another PR to use AddProcessCapability here.