func (r *SyscallRule) Validate() error {

	if err := r.List.Validate("list"); err != nil {
		return err
	}

	if err := r.Action.Validate("action"); err != nil {
		return err
	}

	for _, f := range r.Filters {
		if err := f.Validate(); err != nil {
			return err
		}
	}

	for _, s := range r.Syscalls {
		if err := s.Validate("syscalls"); err != nil {
			return err
		}
	}

	return nil
}
// Validate validates the filewathc rule.
Validate validates the filewathc rule.
// Validate validates the filewathc rule .
func (r *SyscallRule) Validate() error {
	if err := r.List.Validate("list"); err != nil {
		return err
	}
	if err := r.Action.Validate("action"); err != nil {
		return err
	}
	for _, f := range r.Filters {
		if err := f.Validate(); err != nil {
			return err
		}
	}
	for _, s := range r.Syscalls {
		if err := s.Validate("syscalls"); err != nil {
			return err
		}
	}
	return nil
}
func ( r * SyscallRule ) Validate ( ) error { if err := r . List . Validate ( " " ) ; err != nil { return err } if err := r . Action . Validate ( " " ) ; err != nil { return err } for _ , f := range r . Filters { if err := f . Validate ( ) ; err != nil { return err } } for _ , s := range r . Syscalls { if err := s . Validate ( " " ) ; err != nil { return err } } return nil }
Validate validates the filewathc rule.
Validate validates the filewathc rule .