mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(tunables): improve hex variables.
This commit is contained in:
parent
9007daf842
commit
ceb78d971e
@ -12,24 +12,26 @@
|
||||
# Single alphanumeric character
|
||||
@{c}=[0-9a-zA-Z]
|
||||
|
||||
# Up to 10 digits (0-9999999999)
|
||||
# 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
|
||||
@{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},}
|
||||
@{hex32}=@{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}
|
||||
@{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}
|
||||
|
||||
# MD5 hash
|
||||
@{md5}=@{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}
|
||||
|
||||
# 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}
|
||||
|
||||
# Hexadecimal
|
||||
@{hex}=@{h}*@{h}
|
||||
|
||||
# Shortcut for PCI device
|
||||
@{pci_id}=@{h}@{h}@{h}@{h}:@{h}@{h}:@{h}@{h}.@{h}
|
||||
@{pci_bus}=pci@{h}@{h}@{h}@{h}:@{h}@{h}
|
||||
|
Loading…
Reference in New Issue
Block a user