interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / crates / aienos-artifact / src / error.rs

41 lines · 1371 bytes Raw Blame History
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16/// Stable fail-closed reasons for Binary Artifact v0 parsing and validation.
17#[derive(Clone, Copy, Debug, Eq, PartialEq)]
18#[repr(u16)]
19pub enum ArtifactError {
20 BadMagic = 1,
21 UnsupportedVersion = 2,
22 WrongTarget = 3,
23 WrongAbi = 4,
24 LengthOverflow = 5,
25 Truncated = 6,
26 WrongLength = 7,
27 ReservedNonZero = 8,
28 UnsupportedFlags = 9,
29 SectionOverlap = 10,
30 BadSection = 11,
31 BadEntryPoint = 12,
32 MalformedCapability = 13,
33 ResourceLimit = 14,
34 BadSignatureFormat = 15,
35 DigestMismatch = 16,
36 UntrustedSigner = 17,
37 BadSignature = 18,
38 RightsEscalation = 19,
39 /// Admission Receipt v0 record violates ยง7 (never a candidate reason).
40 MalformedReceipt = 20,
41}