Merge "[trusty][apploader] Handle APPLOADER_ERR_POLICY_VIOLATION"

This commit is contained in:
Thurston Dang 2022-04-12 19:21:05 +00:00 committed by Gerrit Code Review
commit b37b47df01
2 changed files with 4 additions and 0 deletions

View file

@ -223,6 +223,9 @@ static ssize_t read_response(int tipc_fd) {
case APPLOADER_ERR_INVALID_VERSION:
LOG(ERROR) << "Error: invalid application version";
break;
case APPLOADER_ERR_POLICY_VIOLATION:
LOG(ERROR) << "Error: loading denied by policy engine";
break;
default:
LOG(ERROR) << "Unrecognized error: " << resp.error;
break;

View file

@ -56,6 +56,7 @@ enum apploader_error : uint32_t {
APPLOADER_ERR_ALREADY_EXISTS,
APPLOADER_ERR_INTERNAL,
APPLOADER_ERR_INVALID_VERSION,
APPLOADER_ERR_POLICY_VIOLATION,
};
/**