def CapsError.errno

bend-osdev-caps@0.1.0.0 · caps.bend:528

import bend-osdev-caps@0.1.0.0/caps.bend as Caps
import Base

528# the errno the kernel answers: EINVAL (22) for a capability it does not
529# support, EPERM (1) otherwise
530def CapsError.errno(e: CapsError) -> U32:
531  match e:
532    case CapsInvalidCap{}:
533      22
534    case CapsPermittedGrows{}:
535      1
536    case CapsEffectiveNotPermitted{}:
537      1
538    case CapsInheritableNotBounded{}:
539      1
540    case CapsInheritableNotPermitted{}:
541      1
542    case CapsNoSetpcap{}:
543      1
544    case CapsAmbientRaiseLocked{}:
545      1
546    case CapsAmbientNotAllowed{}:
547      1
548    case CapsCapabilityDumb{}:
549      1

Uses (2)

Used by (0)

No other definition uses this definition.