From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v3 09/18] audit: new package
Date: Mon, 16 Nov 2026 08:26:29 +0100 [thread overview]
Message-ID: <20261116072639.3157459-10-oss-lists@triops.cz> (raw)
In-Reply-To: <20261116072639.3157459-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.
- v3: None
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-11-16 7:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 7:26 [ptxdist] [PATCH v3 00/18] selinux: back at version 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 01/18] selinux: add common version and URL Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 02/18] Revert "python: remove after more than one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 03/18] host-swig: version bump 4.0.1 -> 4.5.1 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 04/18] Revert "*libsepol: remove" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 05/18] libsepol: version bump 2.1.8 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 06/18] Revert "libselinux: remove after more than one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 07/18] libselinux: version bump 2.1.12 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 08/18] python3-libselinux: new package Ladislav Michl
2026-11-16 7:26 ` Ladislav Michl [this message]
2026-11-16 7:26 ` [ptxdist] [PATCH v3 10/18] Revert "libsemanage: remove after more than one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 11/18] libsemanage: version bump 2.1.9 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 12/18] Revert "checkpolicy: remove after more than one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 13/18] checkpolicy: version bump 2.1.11 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 14/18] Revert "policycoreutils: remove after more than one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 15/18] policycoreutils: version bump 2.1.13 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 16/18] Revert "sepolgen: remove after one year in staging" Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 17/18] sepolgen: version bump 1.1.8 -> 3.11 Ladislav Michl
2026-11-16 7:26 ` [ptxdist] [PATCH v3 18/18] 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=20261116072639.3157459-10-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