mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
build: support directive without argument.
This commit is contained in:
parent
05a489e021
commit
fbdf9cea64
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ var (
|
||||||
// Build the profiles with the following directive applied
|
// Build the profiles with the following directive applied
|
||||||
Directives = map[string]Directive{}
|
Directives = map[string]Directive{}
|
||||||
|
|
||||||
regDirective = regexp.MustCompile(`(?m).*` + Keyword + `([a-z]*) (.*)`)
|
regDirective = regexp.MustCompile(`(?m).*` + Keyword + `([a-z]*)( .*)?`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Main directive interface
|
// Main directive interface
|
||||||
|
|
Loading…
Reference in a new issue