rule.bend checks
raw source on the hub · import bend-osdev-apparmor@0.1.0.0/rule.bend as Rule
bend-osdev-apparmor: what the rule kinds share when they read their terms: patterns from words, strings and conditions, and checked name lists.
6 imports
import Base import ./text.bend as X import ./glob.bend as G import ./token.bend as T import ./error.bend as E import ./perm.bend as P
Definitions
def AaRule.of_maybe source · line 10 · raw
@m:Maybe<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> @e:0x2b280a281d356b8e5cd7b338ab267df1/error.AaError -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
def AaRule.glob_text source · line 18 · raw
@xs:List<&2, U32> -> @src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
the pattern written as xs
def AaRule.glob.go source · line 21 · raw
@m:Maybe<&2, List<&2, U32>> -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
def AaRule.glob source · line 29 · raw
@t:0x2b280a281d356b8e5cd7b338ab267df1/token.AaTerm -> @src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
the pattern a word or quoted string writes
def AaRule.one.go source · line 32 · raw
@xs:List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/token.AaTerm> -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
def AaRule.value_glob source · line 45 · raw
@v:0x2b280a281d356b8e5cd7b338ab267df1/token.AaTerm -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
the pattern of a condition's value: a word, a quoted string, or one of them in parentheses
def AaRule.value_globs.go source · line 59 · raw
@xs:List<&2, List<&2, U32>> -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>>
the patterns of a value: one, or a parenthesised list
def AaRule.texts source · line 69 · raw
@m:Maybe<&2, List<&2, List<&2, U32>>> -> @src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, List<&2, U32>>>
def AaRule.value_globs source · line 76 · raw
@v:0x2b280a281d356b8e5cd7b338ab267df1/token.AaTerm -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>>
def AaRule.check_names.go source · line 82 · raw
@hit:Bool -> @x:List<&2, U32> -> @r:Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, List<&2, U32>>> -> @src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, List<&2, U32>>>
the names of a value, each one of the allowed names
def AaRule.check_names source · line 93 · raw
@xs:List<&2, List<&2, U32>> -> @+ok:List<&2, String> -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, List<&2, U32>>>
def AaRule.names source · line 100 · raw
@v:0x2b280a281d356b8e5cd7b338ab267df1/token.AaTerm -> @+ok:List<&2, String> -> @+src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, List<&2, List<&2, U32>>>
def AaRule.opt_match source · line 107 · raw
@m:Maybe<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> @+s:List<&2, U32> -> Bool
def AaRule.any_match source · line 115 · raw
@gs:List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> @+s:List<&2, U32> -> Bool
some pattern of the list matches s
def AaRule.opt_any source · line 122 · raw
@m:Maybe<&2, List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>> -> @+s:List<&2, U32> -> Bool
def AaRule.glob_append source · line 129 · raw
@xs:List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> @ys:List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>
def AaRule.add_globs source · line 136 · raw
@m:Maybe<&2, List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>> -> @gs:List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob> -> Maybe<&2, List<&2, 0x2b280a281d356b8e5cd7b338ab267df1/glob.AaGlob>>
def AaRule.no_owner source · line 144 · raw
@q:0x2b280a281d356b8e5cd7b338ab267df1/perm.AaQual -> @src:0x2b280a281d356b8e5cd7b338ab267df1/error.AaSrc -> Result<&2, &2, 0x2b280a281d356b8e5cd7b338ab267df1/error.AaError, 0x2b280a281d356b8e5cd7b338ab267df1/perm.AaQual>
the qualifiers of a rule kind that does not take owner