feat(aa): add the Kind struct to manage aa rules.
This commit is contained in:
parent
1333ec2025
commit
3b0944c615
23 changed files with 239 additions and 223 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
package aa
|
||||
|
||||
const tokUSERNS = "userns"
|
||||
const USERNS Kind = "userns"
|
||||
|
||||
type Userns struct {
|
||||
RuleBase
|
||||
|
|
@ -45,6 +45,6 @@ func (r *Userns) Constraint() constraint {
|
|||
return blockKind
|
||||
}
|
||||
|
||||
func (r *Userns) Kind() string {
|
||||
return tokUSERNS
|
||||
func (r *Userns) Kind() Kind {
|
||||
return USERNS
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue