1
// Code generated by bpf2go; DO NOT EDIT.
12
"github.com/cilium/ebpf"
15
type auditseccompEvent struct {
24
// loadAuditseccomp returns the embedded CollectionSpec for auditseccomp.
25
func loadAuditseccomp() (*ebpf.CollectionSpec, error) {
26
reader := bytes.NewReader(_AuditseccompBytes)
27
spec, err := ebpf.LoadCollectionSpecFromReader(reader)
29
return nil, fmt.Errorf("can't load auditseccomp: %w", err)
35
// loadAuditseccompObjects loads auditseccomp and converts it into a struct.
37
// The following types are suitable as obj argument:
39
// *auditseccompObjects
40
// *auditseccompPrograms
43
// See ebpf.CollectionSpec.LoadAndAssign documentation for details.
44
func loadAuditseccompObjects(obj interface{}, opts *ebpf.CollectionOptions) error {
45
spec, err := loadAuditseccomp()
50
return spec.LoadAndAssign(obj, opts)
53
// auditseccompSpecs contains maps and programs before they are loaded into the kernel.
55
// It can be passed ebpf.CollectionSpec.Assign.
56
type auditseccompSpecs struct {
57
auditseccompProgramSpecs
61
// auditseccompSpecs contains programs before they are loaded into the kernel.
63
// It can be passed ebpf.CollectionSpec.Assign.
64
type auditseccompProgramSpecs struct {
65
IgAuditSecc *ebpf.ProgramSpec `ebpf:"ig_audit_secc"`
68
// auditseccompMapSpecs contains maps before they are loaded into the kernel.
70
// It can be passed ebpf.CollectionSpec.Assign.
71
type auditseccompMapSpecs struct {
72
Events *ebpf.MapSpec `ebpf:"events"`
73
GadgetMntnsFilterMap *ebpf.MapSpec `ebpf:"gadget_mntns_filter_map"`
74
TmpEvent *ebpf.MapSpec `ebpf:"tmp_event"`
77
// auditseccompObjects contains all objects after they have been loaded into the kernel.
79
// It can be passed to loadAuditseccompObjects or ebpf.CollectionSpec.LoadAndAssign.
80
type auditseccompObjects struct {
85
func (o *auditseccompObjects) Close() error {
86
return _AuditseccompClose(
87
&o.auditseccompPrograms,
92
// auditseccompMaps contains all maps after they have been loaded into the kernel.
94
// It can be passed to loadAuditseccompObjects or ebpf.CollectionSpec.LoadAndAssign.
95
type auditseccompMaps struct {
96
Events *ebpf.Map `ebpf:"events"`
97
GadgetMntnsFilterMap *ebpf.Map `ebpf:"gadget_mntns_filter_map"`
98
TmpEvent *ebpf.Map `ebpf:"tmp_event"`
101
func (m *auditseccompMaps) Close() error {
102
return _AuditseccompClose(
104
m.GadgetMntnsFilterMap,
109
// auditseccompPrograms contains all programs after they have been loaded into the kernel.
111
// It can be passed to loadAuditseccompObjects or ebpf.CollectionSpec.LoadAndAssign.
112
type auditseccompPrograms struct {
113
IgAuditSecc *ebpf.Program `ebpf:"ig_audit_secc"`
116
func (p *auditseccompPrograms) Close() error {
117
return _AuditseccompClose(
122
func _AuditseccompClose(closers ...io.Closer) error {
123
for _, closer := range closers {
124
if err := closer.Close(); err != nil {
131
// Do not access this directly.
133
//go:embed auditseccomp_bpfel_arm64.o
134
var _AuditseccompBytes []byte