-
Notifications
You must be signed in to change notification settings - Fork 593
change security fields to optional #325
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
|
4ed52d9 looks good to me, although I'd recommend documenting this in
where you could list apparmorProfile, selinuxProcessLabel, and |
|
Can you explain why you want to do this? |
config_linux.go
Outdated
| Devices []Device `json:"devices"` | ||
| // ApparmorProfile specified the apparmor profile for the container. | ||
| ApparmorProfile string `json:"apparmorProfile"` | ||
| ApparmorProfile *string `json:"apparmorProfile,omitempty"` |
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.
These strings do not need to be pointers, only an omitempty
|
@crosbymichael They are optional although are not mentioned in the spec. Most other fields has 'omitempty', I think they should be consistent. I'll update both config_linux.go and .md file and remove pointer. |
Signed-off-by: liangchenye <[email protected]>
|
@wking I changed the original description by adding -SELinux process label specifies the label ... |
|
On Tue, Feb 23, 2016 at 10:14:16PM -0800, 梁辰晔 (Liang Chenye) wrote:
The problem with documenting that in the SELinux section is that it's |
|
These have been moved to the process and I have changed them to optional |
|
On Wed, Mar 02, 2016 at 01:03:25PM -0800, Michael Crosby wrote:
Cross-linking #329, which also addresses my “we should document the |
|
On Wed, Mar 02, 2016 at 01:03:25PM -0800, Michael Crosby wrote:
Actually, it looks like seccomp (made an omitempty pointer in this |
|
Here's a link to the docs from the f2f where we decided which fields were optional vs required: |
|
On Wed, Mar 02, 2016 at 02:39:52PM -0800, Doug Davis wrote:
That agrees that seccomp should be optional 1. And there is a |
Signed-off-by: liangchenye [email protected]