From: Yu Watanabe Date: Fri, 28 Feb 2025 20:34:23 +0000 (+0900) Subject: missing_audit: AUDIT_NLGRP_READLOG is defined since kernel v3.16 X-Git-Tag: v258-rc1~1195^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc2bb59bddaaffa74c3cf88a6063975be0a16f9a;p=thirdparty%2Fsystemd.git missing_audit: AUDIT_NLGRP_READLOG is defined since kernel v3.16 More specifically, since 451f921639fea4600dfb9ab2889332bdcc7b48d3. Now, our kernel baseline is 5.4. Hence, we can drop the definition. --- diff --git a/src/basic/missing_audit.h b/src/basic/missing_audit.h index 3f72acf02f6..e14599ebe67 100644 --- a/src/basic/missing_audit.h +++ b/src/basic/missing_audit.h @@ -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