github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/gadgets/advise/seccomp/tracer/gadget.go (about) 1 // Copyright 2022-2023 The Inspektor Gadget authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package tracer 16 17 import ( 18 gadgetregistry "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-registry" 19 "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets" 20 "github.com/inspektor-gadget/inspektor-gadget/pkg/params" 21 "github.com/inspektor-gadget/inspektor-gadget/pkg/parser" 22 ) 23 24 type GadgetDesc struct{} 25 26 func (g *GadgetDesc) Name() string { 27 return "seccomp" 28 } 29 30 func (g *GadgetDesc) Category() string { 31 return gadgets.CategoryAdvise 32 } 33 34 func (g *GadgetDesc) Type() gadgets.GadgetType { 35 return gadgets.TypeProfile 36 } 37 38 func (g *GadgetDesc) Description() string { 39 return "Generate seccomp profiles based on recorded syscalls activity" 40 } 41 42 func (g *GadgetDesc) ParamDescs() params.ParamDescs { 43 return nil 44 } 45 46 func (g *GadgetDesc) Parser() parser.Parser { 47 return nil 48 } 49 50 func (g *GadgetDesc) EventPrototype() any { 51 return nil 52 } 53 54 func init() { 55 gadgetregistry.Register(&GadgetDesc{}) 56 }