diff options
author | Andrei Vagin <avagin@google.com> | 2019-11-12 15:58:41 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-12 15:59:59 -0800 |
commit | ca9cba66d2062811db9fa2b89a610f8eaa13fe99 (patch) | |
tree | 5826bc8bd6d3ac87ea51058945a74eb2feb1329e /pkg/seccomp/seccomp_rules.go | |
parent | 3f51bef8cdad5f0555e7c6b05f777769d23aaf77 (diff) |
seccomp: introduce the GreaterThan rule type
PiperOrigin-RevId: 280075805
Diffstat (limited to 'pkg/seccomp/seccomp_rules.go')
-rw-r--r-- | pkg/seccomp/seccomp_rules.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/seccomp/seccomp_rules.go b/pkg/seccomp/seccomp_rules.go index 29eec8db1..84c841d7f 100644 --- a/pkg/seccomp/seccomp_rules.go +++ b/pkg/seccomp/seccomp_rules.go @@ -49,6 +49,9 @@ func (a AllowAny) String() (s string) { // AllowValue specifies a value that needs to be strictly matched. type AllowValue uintptr +// GreaterThan specifies a value that needs to be strictly smaller. +type GreaterThan uintptr + func (a AllowValue) String() (s string) { return fmt.Sprintf("%#x ", uintptr(a)) } |