lol

audit: 4.1.0 -> 4.1.1-unstable-2025-08-01

Release notes: https://github.com/linux-audit/audit-userspace/releases/tag/v4.1.1

Unstable patches:
- musl support
- `--disable-legacy-actions` support
- `--runstatedir` support

Grimmauld 0e42aed2 e9552294

+7 -85
-76
pkgs/by-name/au/audit/musl.patch
··· 1 - From 87c782153deb10bd8c3345723a8bcee343826e78 Mon Sep 17 00:00:00 2001 2 - From: Grimmauld <Grimmauld@grimmauld.de> 3 - Date: Thu, 10 Jul 2025 18:58:31 +0200 4 - Subject: [PATCH 1/2] lib/audit_logging.h: fix includes for musl 5 - 6 - `sys/types.h` is indirectly included with `glibc`, 7 - but needs to be specified explicitly on musl. 8 - --- 9 - lib/audit_logging.h | 1 + 10 - 1 file changed, 1 insertion(+) 11 - 12 - diff --git a/lib/audit_logging.h b/lib/audit_logging.h 13 - index 9082a2720..c58861b1e 100644 14 - --- a/lib/audit_logging.h 15 - +++ b/lib/audit_logging.h 16 - @@ -25,6 +25,7 @@ 17 - 18 - // Next include is to pick up the function attribute macros 19 - #include <features.h> 20 - +#include <sys/types.h> 21 - #include <audit-records.h> 22 - 23 - #ifdef __cplusplus 24 - 25 - From 98adfcc4bfa66ac25db0b609d7172d7d40c4f85f Mon Sep 17 00:00:00 2001 26 - From: Grimmauld <Grimmauld@grimmauld.de> 27 - Date: Fri, 11 Jul 2025 08:11:21 +0200 28 - Subject: [PATCH 2/2] Guard __attr_dealloc_free seperately from __attr_dealloc 29 - 30 - Otherwise, header include order matters when building against a libc that 31 - does not itself define __attr_dealloc_free, such as musl. 32 - --- 33 - auparse/auparse.h | 2 ++ 34 - lib/audit_logging.h | 2 ++ 35 - lib/libaudit.h | 2 ++ 36 - 3 files changed, 6 insertions(+) 37 - 38 - diff --git a/auparse/auparse.h b/auparse/auparse.h 39 - index 48375e2c7..ba5139625 100644 40 - --- a/auparse/auparse.h 41 - +++ b/auparse/auparse.h 42 - @@ -31,6 +31,8 @@ 43 - #endif 44 - #ifndef __attr_dealloc 45 - # define __attr_dealloc(dealloc, argno) 46 - +#endif 47 - +#ifndef __attr_dealloc_free 48 - # define __attr_dealloc_free 49 - #endif 50 - #ifndef __attribute_malloc__ 51 - diff --git a/lib/audit_logging.h b/lib/audit_logging.h 52 - index c58861b1e..fab7e75d1 100644 53 - --- a/lib/audit_logging.h 54 - +++ b/lib/audit_logging.h 55 - @@ -40,6 +40,8 @@ extern "C" { 56 - #endif 57 - #ifndef __attr_dealloc 58 - # define __attr_dealloc(dealloc, argno) 59 - +#endif 60 - +#ifndef __attr_dealloc_free 61 - # define __attr_dealloc_free 62 - #endif 63 - // Warn unused result 64 - diff --git a/lib/libaudit.h b/lib/libaudit.h 65 - index 2c51853b7..cce5dc493 100644 66 - --- a/lib/libaudit.h 67 - +++ b/lib/libaudit.h 68 - @@ -43,6 +43,8 @@ 69 - // malloc and free assignments 70 - #ifndef __attr_dealloc 71 - # define __attr_dealloc(dealloc, argno) 72 - +#endif 73 - +#ifndef __attr_dealloc_free 74 - # define __attr_dealloc_free 75 - #endif 76 - #ifndef __attribute_malloc__
+7 -9
pkgs/by-name/au/audit/package.nix
··· 22 22 }: 23 23 stdenv.mkDerivation (finalAttrs: { 24 24 pname = "audit"; 25 - version = "4.1.0"; 25 + version = "4.1.1-unstable-2025-08-01"; 26 26 27 27 src = fetchFromGitHub { 28 28 owner = "linux-audit"; 29 29 repo = "audit-userspace"; 30 - tag = "v${finalAttrs.version}"; 31 - hash = "sha256-MWlHaGue7Ca8ks34KNg74n4Rfj8ivqAhLOJHeyE2Q04="; 30 + rev = "bee5984843d0b38992a369825a87a65fb54b18fc"; # musl fixes, --disable-legacy-actions and --runstatedir support 31 + hash = "sha256-l3JHWEHz2xGrYxEvfCUD29W8xm5llUnXwX5hLymRG74="; 32 32 }; 33 - 34 - patches = [ 35 - # https://github.com/linux-audit/audit-userspace/pull/476 36 - ./musl.patch 37 - ]; 38 33 39 34 postPatch = '' 40 35 substituteInPlace bindings/swig/src/auditswig.i \ ··· 81 76 "--with-arm" 82 77 "--with-aarch64" 83 78 "--with-io_uring" 79 + # allows putting audit files in /run/audit, which removes the requirement 80 + # to wait for tmpfiles to set up the /var/run -> /run symlink 81 + "--runstatedir=/run" 84 82 # capability dropping, currently mostly for plugins as those get spawned as root 85 83 # see auditd-plugins(5) 86 84 "--with-libcap-ng=yes" ··· 105 103 meta = { 106 104 homepage = "https://people.redhat.com/sgrubb/audit/"; 107 105 description = "Audit Library"; 108 - changelog = "https://github.com/linux-audit/audit-userspace/releases/tag/v${finalAttrs.version}"; 106 + changelog = "https://github.com/linux-audit/audit-userspace/releases/tag/v4.1.1"; 109 107 license = lib.licenses.gpl2Plus; 110 108 maintainers = with lib.maintainers; [ grimmauld ]; 111 109 pkgConfigModules = [