Explorar o código

audit: WARN if audit_rule_change called illegally

Signed-off-by: Eric Paris <eparis@redhat.com>
Eric Paris %!s(int64=11) %!d(string=hai) anos
pai
achega
739c95038e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      kernel/auditfilter.c

+ 2 - 1
kernel/auditfilter.c

@@ -1085,7 +1085,8 @@ int audit_rule_change(int type, __u32 portid, int seq, void *data,
 		audit_free_rule(entry);
 		break;
 	default:
-		return -EINVAL;
+		err = -EINVAL;
+		WARN_ON(1);
 	}
 
 	return err;