error.bend checks
raw source on the hub · import bend-osdev-apparmor@0.1.0.0/error.bend as Error
bend-osdev-apparmor: why a policy fails to load. Each failure names the file and line where it was found (line 0 when it belongs to no line).
1 import
import Base
Types
type AaError source · line 5 · raw
Data
AaErrLex@file:List<&2, U32> -> @line:U32 -> AaError
the text cannot be split into tokens (an unterminated quote, an unbalanced parenthesis)
AaErrSyntax@file:List<&2, U32> -> @line:U32 -> AaError
a statement or block that does not fit the grammar
AaErrGlob@file:List<&2, U32> -> @line:U32 -> AaError
a malformed pattern (glob)
AaErrName@file:List<&2, U32> -> @line:U32 -> AaError
an unknown name: capability, network domain or type, signal, mount option, flag
AaErrPerms@file:List<&2, U32> -> @line:U32 -> AaError
an invalid permission string: unknown letters, w with a, two exec modes, an exec mode in a deny rule, a bare x in an allow rule, a target without an exec mode
AaErrUnsupported@file:List<&2, U32> -> @line:U32 -> AaError
a rule kind or condition outside the model (unix, pivot_root, rlimit, link, ...)
AaErrInclude@file:List<&2, U32> -> @line:U32 -> AaError
an included file that is not in the file map (and the include is not "if exists")
AaErrIncludeDepth@file:List<&2, U32> -> @line:U32 -> AaError
includes nested deeper than the options allow
AaErrVarUndefined@file:List<&2, U32> -> @line:U32 -> AaError
a variable used but never assigned
AaErrVarRedefined@file:List<&2, U32> -> @line:U32 -> AaError
a variable assigned with = twice, or extended with += before it is assigned
AaErrPreamble@file:List<&2, U32> -> @line:U32 -> AaError
a variable or alias statement after the first profile, or inside one
AaErrFlag@file:List<&2, U32> -> @line:U32 -> AaError
an unknown or conflicting profile flag
AaErrDuplicate@file:List<&2, U32> -> @line:U32 -> AaError
two profiles, children or hats with the same name
AaErrExecConflict@file:List<&2, U32> -> @line:U32 -> AaError
two rules for the same literal path with different exec modes
type AaSrc source · line 99 · raw
Data
where a statement came from: what rule parsers report errors against
AaSrc@file:List<&2, U32> -> @line:U32 -> AaSrc
Definitions
def AaError.line source · line 36 · raw
@e:AaError -> U32
def AaError.name source · line 67 · raw
@e:AaError -> String
def AaSrc.line source · line 102 · raw
@s:AaSrc -> U32
def AaSrc.lex source · line 107 · raw
@s:AaSrc -> AaError
def AaSrc.syntax source · line 112 · raw
@s:AaSrc -> AaError
def AaSrc.glob source · line 117 · raw
@s:AaSrc -> AaError
def AaSrc.name source · line 122 · raw
@s:AaSrc -> AaError
def AaSrc.perms source · line 127 · raw
@s:AaSrc -> AaError
def AaSrc.unsupported source · line 132 · raw
@s:AaSrc -> AaError
def AaSrc.include source · line 137 · raw
@s:AaSrc -> AaError
def AaSrc.include_depth source · line 142 · raw
@s:AaSrc -> AaError
def AaSrc.var_undefined source · line 147 · raw
@s:AaSrc -> AaError
def AaSrc.var_redefined source · line 152 · raw
@s:AaSrc -> AaError
def AaSrc.preamble source · line 157 · raw
@s:AaSrc -> AaError
def AaSrc.flag source · line 162 · raw
@s:AaSrc -> AaError
def AaSrc.duplicate source · line 167 · raw
@s:AaSrc -> AaError
def AaSrc.exec_conflict source · line 172 · raw
@s:AaSrc -> AaError