def show_err

bend-osdev-caps@0.1.0.0 · check.bend:6

import bend-osdev-caps@0.1.0.0/check.bend as Check
import Base
import bend-osdev-caps@0.1.0.0/caps.bend as C

6def show_err(e: C.CapsError) -> String:
7  match e:
8    case C.CapsInvalidCap{}:
9      "EINVAL invalid capability"
10    case C.CapsPermittedGrows{}:
11      "EPERM permitted set grows"
12    case C.CapsEffectiveNotPermitted{}:
13      "EPERM effective not permitted"
14    case C.CapsInheritableNotBounded{}:
15      "EPERM inheritable not bounded"
16    case C.CapsInheritableNotPermitted{}:
17      "EPERM inheritable not permitted"
18    case C.CapsNoSetpcap{}:
19      "EPERM no CAP_SETPCAP"
20    case C.CapsAmbientRaiseLocked{}:
21      "EPERM ambient raise locked"
22    case C.CapsAmbientNotAllowed{}:
23      "EPERM ambient not allowed"
24    case C.CapsCapabilityDumb{}:
25      "EPERM capability-dumb binary"

Uses (2)

Used by (1)