-
Notifications
You must be signed in to change notification settings - Fork 160
generate: rectify the arguments #371
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
Conversation
cmd/oci-runtime-tool/generate.go
Outdated
| // Set the DefaultAction of seccomp | ||
| if context.IsSet("seccomp-default") { | ||
| seccompDefault := context.String("seccomp-default") | ||
| if context.IsSet("linux-eccomp-default") { |
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.
linux-eccomp -> linux-seccomp
cmd/oci-runtime-tool/generate.go
Outdated
| cli.StringSliceFlag{Name: "process-rlimits-add", Usage: "specifies resource limits for processes inside the container. "}, | ||
| cli.StringSliceFlag{Name: "process-rlimits-remove", Usage: "remove specified resource limits for processes inside the container. "}, | ||
| cli.BoolFlag{Name: "process-rlimits-remove-all", Usage: "remove all resource limits for processes inside the container. "}, | ||
| cli.StringFlag{Name: "process-selinux-label", Usage: "process selinux label"}, |
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.
selinuxlabe is Linux-specific, linux-selinux-label will be better
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.
selinuxLabel is part of the process, I think the process- will be better. linux-selinux-labelmay be confusing.
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.
As I said it's Linux-specific, not for all platforms.
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.
updated.
cmd/oci-runtime-tool/generate.go
Outdated
| ) | ||
|
|
||
| var generateFlags = []cli.Flag{ | ||
| cli.StringFlag{Name: "apparmor", Usage: "specifies the the apparmor profile for the container"}, |
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.
apparmor is also Linux-specific
20fc153 to
dcdb1de
Compare
|
need rebase |
|
rebased. |
|
need rebase |
|
updated |
|
@liangchenye @mrunalp @hqhq PTAL |
Signed-off-by: zhouhao <[email protected]>
|
@liangchenye @hqhq @mrunalp PTAL |
1 similar comment
Signed-off-by: Ma Shimiao <[email protected]>
…nux-label In 9c3863b (generate: rectify the arguments, 2017-04-24, opencontainers#371), the old --mount-label and --selinux-label became --linux-mount-label and --linux-selinux-label. However, the --mount-label use in this example wasn't updated and the --selinux-label use was incorrectly updated to --process-selinux-label. This commit brings the example back in line with the program source. I've also added backticks around --linux-selinux-label to get better formatting for the inline code [1]. [1]: https://daringfireball.net/projects/markdown/syntax#code Signed-off-by: W. Trevor King <[email protected]>
Adjusting some --bind instances that were missed in 9c3863b (generate: rectify the arguments, 2017-04-24, opencontainers#371). Signed-off-by: W. Trevor King <[email protected]>
Adjusting a --cwd instance that was missed in 9c3863b (generate: rectify the arguments, 2017-04-24, opencontainers#371). Signed-off-by: W. Trevor King <[email protected]>
* *: Fix --bind, --cwd, etc missed options Adjusting some option instances that were missed in 9c3863b (generate: rectify the arguments, 2017-04-24, #371). Signed-off-by: W. Trevor King <[email protected]>
Since in #343 (comment) @Kxuan put forward the idea, I submitted this PR.
Signed-off-by: zhouhao [email protected]