Skip to content

Commit 4beb2a6

Browse files
author
zhouhao
committed
validate: fix cap validation
Signed-off-by: zhouhao <[email protected]>
1 parent 11703a7 commit 4beb2a6

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
@@ -410,7 +410,7 @@ func (v *Validator) CheckCapabilities() (errs error) {
410410
if effective && !permitted {
411411
errs = multierror.Append(errs, fmt.Errorf("effective capability %q is not allowed, as it's not permitted", capability))
412412
}
413-
if ambient && !(effective && inheritable) {
413+
if ambient && !(permitted && inheritable) {
414414
errs = multierror.Append(errs, fmt.Errorf("ambient capability %q is not allowed, as it's not permitted and inheribate", capability))
415415
}
416416
}

0 commit comments

Comments
 (0)