Skip to content

Commit

Permalink
add selinux deps
Browse files Browse the repository at this point in the history
Signed-off-by: Ma Shimiao <[email protected]>
  • Loading branch information
Ma Shimiao committed Nov 23, 2017
1 parent 9ac8d75 commit 38713d1
Show file tree
Hide file tree
Showing 8 changed files with 1,172 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ func validateMountLabel(spec *rspec.Spec) error {
if err != nil {
return fmt.Errorf("Failed to get mountLabel of %v", mount.Destination)
}
if fileLabel != spec.Linux.MountLabel {
if spec.Linux != nil && fileLabel != spec.Linux.MountLabel {
return fmt.Errorf("Expected mountLabel %v, actual %v", spec.Linux.MountLabel, fileLabel)
}
}
Expand Down
2 changes: 1 addition & 1 deletion validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ func (v *Validator) CheckLinux() (errs error) {

if v.spec.Linux.MountLabel != "" {
if err := label.Validate(v.spec.Linux.MountLabel); err != nil {
msgs = append(msgs, "mountLabel %v is invalid", v.spec.Linux.MountLabel)
errs = multierror.Append(errs, fmt.Errorf("mountLabel %v is invalid", v.spec.Linux.MountLabel))
}
}

Expand Down
201 changes: 201 additions & 0 deletions vendor/github.com/opencontainers/selinux/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 38713d1

Please sign in to comment.