Skip to content

Commit 6554add

Browse files
authored
Merge pull request #488 from q384566678/validate-cap-fix
validate: fix cap validation
2 parents 5fd848b + 4beb2a6 commit 6554add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validate/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (v *Validator) CheckCapabilities() (errs error) {
411411
if effective && !permitted {
412412
errs = multierror.Append(errs, fmt.Errorf("effective capability %q is not allowed, as it's not permitted", capability))
413413
}
414-
if ambient && !(effective && inheritable) {
414+
if ambient && !(permitted && inheritable) {
415415
errs = multierror.Append(errs, fmt.Errorf("ambient capability %q is not allowed, as it's not permitted and inheribate", capability))
416416
}
417417
}

0 commit comments

Comments
 (0)