Skip to content

Commit 39e8898

Browse files
committed
audit: support loading audisp plugins from symlinks
Upstream PR: linux-audit/audit-userspace#467
1 parent 9c22038 commit 39e8898

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pkgs/by-name/au/audit/package.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch,
56
autoreconfHook,
67
bash,
78
buildPackages,
@@ -26,6 +27,24 @@ stdenv.mkDerivation (finalAttrs: {
2627
hash = "sha256-SgMt1MmcH7r7O6bmJCetRg3IdoZXAXjVJyeu0HRfyf8=";
2728
};
2829

30+
patches = [
31+
# nix configures most stuff by symlinks, e.g. in /etc
32+
# thus, for plugins to be picked up, symlinks must be allowed
33+
# https://github.com/linux-audit/audit-userspace/pull/467
34+
(fetchpatch {
35+
url = "https://github.com/linux-audit/audit-userspace/pull/467/commits/dbefc642b3bd0cafe599fcd18c6c88cb672397ee.patch?full_index=1";
36+
hash = "sha256-Ksn/qKBQYFAjvs1OVuWhgWCdf4Bdp9/a+MrhyJAT+Bw=";
37+
})
38+
(fetchpatch {
39+
url = "https://github.com/linux-audit/audit-userspace/pull/467/commits/50094f56fefc0b9033ef65e8c4f108ed52ef5de5.patch?full_index=1";
40+
hash = "sha256-CJKDLdlpsCd+bG6j5agcnxY1+vMCImHwHGN6BXURa4c=";
41+
})
42+
(fetchpatch {
43+
url = "https://github.com/linux-audit/audit-userspace/pull/467/commits/5e75091abd297807b71b3cfe54345c2ef223939a.patch?full_index=1";
44+
hash = "sha256-LPpO4PH/3MyCJq2xhmhhcnFeK3yh7LK6Mjypuvhacu4=";
45+
})
46+
];
47+
2948
postPatch = ''
3049
substituteInPlace bindings/swig/src/auditswig.i \
3150
--replace-fail "/usr/include/linux/audit.h" \

0 commit comments

Comments
 (0)