]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_audit: AUDIT_NLGRP_READLOG is defined since kernel v3.16
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 20:34:23 +0000 (05:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 17:24:49 +0000 (02:24 +0900)
More specifically, since 451f921639fea4600dfb9ab2889332bdcc7b48d3.
Now, our kernel baseline is 5.4. Hence, we can drop the definition.

src/basic/missing_audit.h

index 3f72acf02f628ab08cc6d7273cffeda41b67f900..e14599ebe674b5820958a1b6575628239ea0f6ca 100644 (file)
@@ -24,11 +24,3 @@ assert_cc(AUDIT_SERVICE_STOP == 1131);
 #else
 assert_cc(MAX_AUDIT_MESSAGE_LENGTH == 8970);
 #endif
-
-/* Note: we check for AUDIT_NLGRP_MAX because it's a define, but we actually
- * need AUDIT_NLGRP_READLOG which is an enum. */
-#ifndef AUDIT_NLGRP_MAX
-#  define AUDIT_NLGRP_READLOG 1
-#else
-assert_cc(AUDIT_NLGRP_READLOG == 1);
-#endif