From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 08/17] audit: new package
Date: Sat, 31 Oct 2026 21:38:09 +0100 [thread overview]
Message-ID: <20261031203823.357406-9-oss-lists@triops.cz> (raw)
In-Reply-To: <20261031203823.357406-1-oss-lists@triops.cz>
From: Ladislav Michl <ladis@triops.cz>
Linux audit userspace, needed by libsemanage for libaudit.
Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
CHANGES:
- v2: install /etc/libaudit.conf and tmpfiles.d snippet with 0640
permissions, as upstream does.
patches/audit-userspace-4.2.1/autogen.sh | 1 +
rules/audit.in | 19 +++++
rules/audit.make | 102 +++++++++++++++++++++++
3 files changed, 122 insertions(+)
create mode 120000 patches/audit-userspace-4.2.1/autogen.sh
create mode 100644 rules/audit.in
create mode 100644 rules/audit.make
diff --git a/patches/audit-userspace-4.2.1/autogen.sh b/patches/audit-userspace-4.2.1/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/audit-userspace-4.2.1/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh
\ No newline at end of file
diff --git a/rules/audit.in b/rules/audit.in
new file mode 100644
index 000000000..2c2582d8e
--- /dev/null
+++ b/rules/audit.in
@@ -0,0 +1,19 @@
+## SECTION=security
+
+menuconfig AUDIT
+ tristate
+ prompt "audit "
+ select LIBCAP_NG
+ help
+ Linux audit userspace: libaudit, libauparse and the auditd
+ daemon with its tools.
+
+if AUDIT
+
+config AUDIT_TOOLS
+ bool
+ prompt "install auditd and tools"
+ help
+ Install auditd, auditctl, augenrules, ausearch and aureport.
+
+endif
diff --git a/rules/audit.make b/rules/audit.make
new file mode 100644
index 000000000..0353efd94
--- /dev/null
+++ b/rules/audit.make
@@ -0,0 +1,102 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Ladislav Michl <ladis@triops.cz>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_AUDIT) += audit
+
+#
+# Paths and names
+#
+AUDIT_VERSION := 4.2.1
+AUDIT_SHA256 := 42876d195ee2ded19e5f72d7664096eee314928aa36ad346719ba5b25818fc84
+AUDIT := audit-userspace-$(AUDIT_VERSION)
+AUDIT_SUFFIX := tar.gz
+AUDIT_URL := https://github.com/linux-audit/audit-userspace/archive/refs/tags/v$(AUDIT_VERSION).$(AUDIT_SUFFIX)
+AUDIT_SOURCE := $(SRCDIR)/$(AUDIT).$(AUDIT_SUFFIX)
+AUDIT_DIR := $(BUILDDIR)/$(AUDIT)
+AUDIT_LICENSE := GPL-2.0-or-later AND LGPL-2.1-or-later
+AUDIT_LICENSE_FILES := \
+ file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
+ file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06
+AUDIT_CVE_PRODUCT := audit-userspace_project:audit-userspace
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+AUDIT_CONF_TOOL := autoconf
+AUDIT_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --runstatedir=/run \
+ --disable-listener \
+ --disable-zos-remote \
+ --disable-legacy-actions \
+ --disable-gssapi-krb5 \
+ --disable-tls \
+ --disable-experimental \
+ --without-python3 \
+ --without-golang \
+ --without-asan \
+ --$(call ptx/wwo, PTXCONF_ARCH_ARM)-arm \
+ --$(call ptx/wwo, PTXCONF_ARCH_ARM64)-aarch64 \
+ --$(call ptx/wwo, PTXCONF_ARCH_RISCV)-riscv \
+ --without-apparmor \
+ --without-libwrap \
+ --without-io_uring \
+ --without-nftables \
+ --with-libcap-ng
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/audit.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, audit)
+ @$(call install_fixup, audit,PRIORITY,optional)
+ @$(call install_fixup, audit,SECTION,base)
+ @$(call install_fixup, audit,AUTHOR,"Ladislav Michl <ladis@triops.cz>")
+ @$(call install_fixup, audit,DESCRIPTION,missing)
+
+ @$(call install_lib, audit, 0, 0, 0644, libaudit)
+ @$(call install_lib, audit, 0, 0, 0644, libauparse)
+ @$(call install_alternative, audit, 0, 0, 0640, /etc/libaudit.conf)
+
+ifdef PTXCONF_AUDIT_TOOLS
+ @$(call install_copy, audit, 0, 0, 0755, -, /usr/sbin/auditd)
+ @$(call install_copy, audit, 0, 0, 0755, -, /usr/sbin/auditctl)
+ @$(call install_copy, audit, 0, 0, 0755, -, /usr/sbin/augenrules)
+ @$(call install_copy, audit, 0, 0, 0755, -, /usr/sbin/aureport)
+ @$(call install_copy, audit, 0, 0, 0755, -, /usr/sbin/ausearch)
+ @$(call install_alternative, audit, 0, 0, 0640, /etc/audit/auditd.conf)
+ @$(call install_alternative, audit, 0, 0, 0640, /etc/audit/audit-stop.rules)
+ @$(call install_copy, audit, 0, 0, 0750, /etc/audit/rules.d)
+ @$(call install_copy, audit, 0, 0, 0700, /var/log/audit)
+
+ifdef PTXCONF_INITMETHOD_SYSTEMD
+ @$(call install_alternative, audit, 0, 0, 0644, /usr/lib/systemd/system/auditd.service)
+ @$(call install_link, audit, ../auditd.service, \
+ /usr/lib/systemd/system/multi-user.target.wants/auditd.service)
+ @$(call install_alternative, audit, 0, 0, 0644, /usr/lib/systemd/system/audit-rules.service)
+ @$(call install_link, audit, ../audit-rules.service, \
+ /usr/lib/systemd/system/multi-user.target.wants/audit-rules.service)
+ @$(call install_alternative, audit, 0, 0, 0640, /usr/lib/tmpfiles.d/audit.conf)
+endif
+endif
+
+ @$(call install_finish, audit)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.47.3
next prev parent reply other threads:[~2026-10-31 20:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 20:38 [ptxdist] [PATCH v2 00/17] selinux: back at version 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 01/17] selinux: add common version and URL Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 02/17] Revert "python: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 03/17] host-swig: version bump 4.0.1 -> 4.5.1 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 04/17] Revert "*libsepol: remove" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 05/17] libsepol: version bump 2.1.8 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 06/17] Revert "libselinux: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 07/17] libselinux: version bump 2.1.12 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` Ladislav Michl [this message]
2026-10-31 20:38 ` [ptxdist] [PATCH v2 09/17] Revert "libsemanage: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 10/17] libsemanage: version bump 2.1.9 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 11/17] Revert "checkpolicy: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 12/17] checkpolicy: version bump 2.1.11 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 13/17] Revert "policycoreutils: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 14/17] policycoreutils: version bump 2.1.13 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 15/17] Revert "sepolgen: remove after one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 16/17] sepolgen: version bump 1.1.8 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 17/17] selinux: restore the global option Ladislav Michl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261031203823.357406-9-oss-lists@triops.cz \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox