Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Olivain <ju.o@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Adam Duskett <adam.duskett@amarulasolutions.com>,
	buildroot@buildroot.org,
	Marcus Folkesson <marcus.folkesson@gmail.com>,
	Antoine Tenart <atenart@kernel.org>,
	Marek Belisko <marek.belisko@open-nandra.com>,
	"Fiona Klute (WIWA)" <fiona.klute@gmx.de>
Subject: Re: [Buildroot] [PATCH 13/13] package/audit: bump version to 4.0.2
Date: Sun, 27 Oct 2024 11:06:46 +0100	[thread overview]
Message-ID: <f9d70f87165b70be92829d43e9addca2@free.fr> (raw)
In-Reply-To: <20241026181808.4cae0be9@windsurf>

Hi Thomas, Adam, all,

On 26/10/2024 18:18, Thomas Petazzoni wrote:
> Hello Adam,
> 
> Cc Julien for runtime test, Cc Fiona for init script.
> 
> On Mon, 16 Sep 2024 17:12:06 +0200
> Adam Duskett <adam.duskett@amarulasolutions.com> wrote:
> 

[...]

>> Tested with qemu_x86_64_defconfig and running checking if audit is 
>> running
>> properly.
> 
> Would be nice to have an audit test case in support/testing :-)

Thanks for suggesting a new runtime test! I added this one on
my list.

While I quickly tried to draft something, I've hit the following
issue. Compiling with a (aarch64) Bootlin external toolchain, the
build failed with:

     libaudit.c: In function 'audit_rule_fieldpair_data':
     libaudit.c:1911:22: error: 'AUDIT_SADDR_FAM' undeclared (first use 
in this function); did you mean 'AUDIT_ADD_RULE'?
      1911 |                 case AUDIT_SADDR_FAM:
           |                      ^~~~~~~~~~~~~~~
           |                      AUDIT_ADD_RULE

This build failure is not happening with audit v3.1.2.

This is because the toolchain I used included Kernel headers 4.20.
This AUDIT_SADDR_FAM support was added in Kernel v5.3. See [1].

Also, audit v4.0 removed some definitions in [2]. This commit
claim to raise the Kernel header requirement to 5.0. Unless I missed
something, it seems there is a small discrepancy here (v5.0 ~ v5.3).
There is possibly a bug in the audit code (which should have kept
this definition). The audit code indeed claim kernel >= 5.0, see [3].

Anyways, whatever the exact kernel version is needed, I believe audit
needs a new "depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_x".

Adam, could you have a look at this?

Best regards,

Julien.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bf361231c295d92a28ca283ea713f56e93e55796
[2] 
https://github.com/linux-audit/audit-userspace/commit/7e417fd78ae89eef8c512d4f1ded29d58b36f11b
[3] 
https://github.com/linux-audit/audit-userspace/blob/v4.0.2/README.md#build-time-dependencies-for-tar-file
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-10-27 10:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-16 15:11 [Buildroot] [PATCH 00/13] selinux-packages: bump to 3.7 Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 01/13] package/libsepol: bump version " Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 02/13] package/libsemanage: " Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 03/13] package/libselinux: " Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 04/13] package/policycoreutils: " Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 05/13] package/checkpolicy: " Adam Duskett
2024-09-16 15:11 ` [Buildroot] [PATCH 06/13] package/restorecond: " Adam Duskett
2024-09-16 15:12 ` [Buildroot] [PATCH 07/13] package/semodule-utils: bump to version 3.7 Adam Duskett
2024-09-16 15:12 ` [Buildroot] [PATCH 08/13] package/selinux-python: " Adam Duskett
2024-09-16 15:12 ` [Buildroot] [PATCH 09/13] package/setools: bump version to 4.5.1 Adam Duskett
2024-09-16 15:12 ` [Buildroot] [PATCH 10/13] package/refpolicy: bump version to 2.20240226 Adam Duskett
2024-09-16 15:12 ` [Buildroot] [PATCH 11/13] package/polkit: bump version to 125 Adam Duskett
2024-11-02 22:03   ` Romain Naour via buildroot
2024-09-16 15:12 ` [Buildroot] [PATCH 12/13] package/audit/S02auditd: fix shellcheck and check-package warnings Adam Duskett
2024-10-26 16:09   ` Thomas Petazzoni via buildroot
2024-10-27 22:03     ` Fiona Klute via buildroot
2024-09-16 15:12 ` [Buildroot] [PATCH 13/13] package/audit: bump version to 4.0.2 Adam Duskett
2024-10-26 16:18   ` Thomas Petazzoni via buildroot
2024-10-27 10:06     ` Julien Olivain [this message]
2024-10-27 16:45     ` Fiona Klute via buildroot
2024-10-27 18:12       ` Thomas Petazzoni via buildroot
2024-10-26 16:08 ` [Buildroot] [PATCH 00/13] selinux-packages: bump to 3.7 Thomas Petazzoni via buildroot

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=f9d70f87165b70be92829d43e9addca2@free.fr \
    --to=ju.o@free.fr \
    --cc=adam.duskett@amarulasolutions.com \
    --cc=atenart@kernel.org \
    --cc=buildroot@buildroot.org \
    --cc=fiona.klute@gmx.de \
    --cc=marcus.folkesson@gmail.com \
    --cc=marek.belisko@open-nandra.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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