mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(tunable): add all int, hex and read variable from 2 to 64.
This commit is contained in:
parent
7963a65a88
commit
da7747e0fe
1 changed files with 29 additions and 8 deletions
|
@ -15,20 +15,41 @@
|
|||
# Integer up to 10 digits (0-9999999999)
|
||||
@{int}=[0-9]{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}
|
||||
|
||||
# Hexadecimal up to 64 characters
|
||||
# hexadecimal, alphanumeric up to 64 characters
|
||||
@{hex}=@{h}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}{@{h},}
|
||||
@{hex16}=@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}
|
||||
@{rand}=@{c}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}{@{c},}
|
||||
|
||||
# Any x digits characters
|
||||
@{int2}=[0-9][0-9]
|
||||
@{int4}=@{int2}@{int2}
|
||||
@{int6}=@{int4}@{int2}
|
||||
@{int8}=@{int4}@{int4}
|
||||
@{int10}=@{int8}@{int2}
|
||||
@{int16}=@{int8}@{int8}
|
||||
@{int32}=@{int16}@{int16}
|
||||
@{int64}=@{int32}@{int32}
|
||||
|
||||
# Any x hexadecimal characters
|
||||
@{hex2}=@{h}@{h}
|
||||
@{hex4}=@{hex2}@{hex2}
|
||||
@{hex6}=@{hex4}@{hex2}
|
||||
@{hex8}=@{hex4}@{hex4}
|
||||
@{hex9}=@{hex8}@{h}
|
||||
@{hex10}=@{hex8}@{hex2}
|
||||
@{hex16}=@{hex8}@{hex8}
|
||||
@{hex32}=@{hex16}@{hex16}
|
||||
@{hex64}=@{hex32}@{hex32}
|
||||
@{md5}=@{hex32} # kept for now for compatibility
|
||||
|
||||
# Any x alphanumeric characters
|
||||
@{rand2}=@{c}@{c}
|
||||
@{rand4}=@{c}@{c}@{c}@{c}
|
||||
@{rand6}=@{c}@{c}@{c}@{c}@{c}@{c}
|
||||
@{rand8}=@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}
|
||||
@{rand9}=@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}
|
||||
@{rand10}=@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}@{c}
|
||||
@{rand4}=@{rand2}@{rand2}
|
||||
@{rand6}=@{rand4}@{rand2}
|
||||
@{rand8}=@{rand4}@{rand4}
|
||||
@{rand9}=@{rand8}@{c}
|
||||
@{rand10}=@{rand8}@{rand2}
|
||||
@{rand16}=@{rand8}@{rand8}
|
||||
@{rand32}=@{rand16}@{rand16}
|
||||
@{rand64}=@{rand64}@{rand64}
|
||||
|
||||
# Universally unique identifier
|
||||
@{uuid}=@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}
|
||||
|
|
Loading…
Reference in a new issue