func (sps SecurityProfileSpec) GetActionFlag() kernel.SecurityProfileAction {
	actionFlag := kernel.Ignore
	for _, action := range sps.Actions {
		switch action {
		case "enforce":
			actionFlag = actionFlag | kernel.Enforce
			break
		case "alert":
			actionFlag = actionFlag | kernel.Alert
		case "trace-dns":
			actionFlag = actionFlag | kernel.TraceDNS
		}
	}
	return actionFlag
}
// GetActionFlag - Computes the action flag of the security profile
Computes the action flag of the security profile
// GetActionFlag - Computes the action flag of the security profile
func (sps SecurityProfileSpec) GetActionFlag() kernel.SecurityProfileAction {
	actionFlag := kernel.Ignore
	for _, action := range sps.Actions {
		switch action {
		case "enforce":
			actionFlag = actionFlag | kernel.Enforce
			break
		case "alert":
			actionFlag = actionFlag | kernel.Alert
		case "trace-dns":
			actionFlag = actionFlag | kernel.TraceDNS
		}
	}
	return actionFlag
}
func ( sps SecurityProfileSpec ) GetActionFlag ( ) kernel . SecurityProfileAction { actionFlag := kernel . Ignore for _ , action := range sps . Actions { switch action { case " " : actionFlag = actionFlag | kernel . Enforce break case " " : actionFlag = actionFlag | kernel . Alert case " " : actionFlag = actionFlag | kernel . TraceDNS } } return actionFlag }
Computes the action flag of the security profile
Computes the action flag of the security profile