Skip to content
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

merges latest spec with runc #534

Closed
wants to merge 1 commit into from

Conversation

mikebrow
Copy link
Member

@mikebrow mikebrow commented Feb 5, 2016

Closes #528

Signed-off-by: Mike Brown brownwm@us.ibm.com

@@ -38,7 +38,13 @@ type Device struct {
}

func (d *Device) CgroupString() string {
return fmt.Sprintf("%c %s:%s %s", d.Type, deviceNumberString(d.Major), deviceNumberString(d.Minor), d.Permissions)
var p string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I not sure we need to change this method's logic. Isn't no perms and invalid config?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec moved permissions out... Now these need to come from some new whitelist... IOW need to talk to mrunal and figure out how permissions are to be setup for cgroups now that explict permissions are not stored in the devices[] list. See new access field in new DeviceCgroup, there are an array of these in resources. Somehow these will have to scope the permissions for the devices.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have to merge the permission when creating the deivces. Think of the spec as the View and libcontainer config is the model. You have to populate it correctly no matter how it is represented in the spec.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed...

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
@mikebrow
Copy link
Member Author

mikebrow commented Feb 8, 2016

Had to rebase for #525

@LK4D4 LK4D4 closed this in #536 Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants