law vector_suid_root_with_caps

bend-osdev-caps@0.1.0.0 · LAWS.bend:255

import bend-osdev-caps@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-caps@0.1.0.0/caps.bend as C
import bend-osdev-caps@0.1.0.0/exec.bend as E

255# A set-user-ID-root program with file capabilities (cap_net_bind_service=ep)
256# run by user 1000: the effective and saved UIDs become 0, and the process
257# gains just the file's capabilities.
258law vector_suid_root_with_caps:
259  {E.Caps.execve(C.CapsKernel.linux(), C.CapCred{1000, 1000, 1000, False{}, False{}, C.CapState{C.CapSet.empty(), C.CapSet.empty(), C.CapSet.empty(), C.CapSet.full(), C.CapSet.empty()}}, C.CapFile{0, True{}, False{}, Some{C.CapFileSets{C.CapSet.of(10), C.CapSet.empty(), True{}}}}, False{}) == Done{C.CapCred{1000, 0, 0, False{}, False{}, C.CapState{C.CapSet.of(10), C.CapSet.empty(), C.CapSet.of(10), C.CapSet.full(), C.CapSet.empty()}}} : Result<&2, &2, C.CapsError, C.CapCred>}

Uses (13)

Used by (0)

No other definition uses this definition.