2016-11-22 19:32:10 +00:00
|
|
|
// Policy evaluation for prSignedBaseLayer.
|
|
|
|
|
|
|
|
package signature
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/containers/image/types"
|
2017-08-05 11:40:46 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
2016-11-22 19:32:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (pr *prSignedBaseLayer) isSignatureAuthorAccepted(image types.UnparsedImage, sig []byte) (signatureAcceptanceResult, *Signature, error) {
|
|
|
|
return sarUnknown, nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (pr *prSignedBaseLayer) isRunningImageAllowed(image types.UnparsedImage) (bool, error) {
|
|
|
|
// FIXME? Reject this at policy parsing time already?
|
|
|
|
logrus.Errorf("signedBaseLayer not implemented yet!")
|
|
|
|
return false, PolicyRequirementError("signedBaseLayer not implemented yet!")
|
|
|
|
}
|