[PR #6441] [CLOSED] build: fix undeclared AUDIT_ARCH_AARCH64 on Linux <3.17 #6019

Closed
opened 2026-05-05 10:49:12 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6441
Author: @kmk3
Created: 8/21/2024
Status: Closed

Base: masterHead: build-fix-seccomp-arm64


📝 Commits (1)

  • 83dccd9 build: fix undeclared AUDIT_ARCH_AARCH64 on Linux <3.17

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 src/include/seccomp.h (+5 -0)

📄 Description

It apparently only exists since Linux kernel version 3.17 (in
linux/audit.h)[1].

Partial build log:

../include/seccomp.h:114:25: error: 'AUDIT_ARCH_AARCH64' undeclared (first use in this function); did you mean 'AUDIT_ARCH_SPARC64'?
  114 | # define ARCH_NR        AUDIT_ARCH_AARCH64
      |                         ^~~~~~~~~~~~~~~~~~
../include/seccomp.h:198:38: note: in expansion of macro 'ARCH_NR'
  198 |      BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, 1, 0), \
      |                                      ^~~~~~~
sbox.c:113:25: note: in expansion of macro 'VALIDATE_ARCHITECTURE'
  113 |                         VALIDATE_ARCHITECTURE,
      |                         ^~~~~~~~~~~~~~~~~~~~~
../include/seccomp.h:114:25: note: each undeclared identifier is reported only once for each function it appears in
  114 | # define ARCH_NR        AUDIT_ARCH_AARCH64
      |                         ^~~~~~~~~~~~~~~~~~
../include/seccomp.h:198:38: note: in expansion of macro 'ARCH_NR'
  198 |      BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, 1, 0), \
      |                                      ^~~~~~~
sbox.c:113:25: note: in expansion of macro 'VALIDATE_ARCHITECTURE'
  113 |                         VALIDATE_ARCHITECTURE,
      |                         ^~~~~~~~~~~~~~~~~~~~~

Environment: Linux kernel/headers 3.10 / CentOS 7 / arm64.

Fixes #6440.

[1] 875cbf3e46

Reported-by: @snakethatlovesstaticlibs


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/6441 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 8/21/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `build-fix-seccomp-arm64` --- ### 📝 Commits (1) - [`83dccd9`](https://github.com/netblue30/firejail/commit/83dccd9cbca41454a2e5e5a8da5606e7bfc3a013) build: fix undeclared AUDIT_ARCH_AARCH64 on Linux <3.17 ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/include/seccomp.h` (+5 -0) </details> ### 📄 Description It apparently only exists since Linux kernel version 3.17 (in linux/audit.h)[1]. Partial build log: ../include/seccomp.h:114:25: error: 'AUDIT_ARCH_AARCH64' undeclared (first use in this function); did you mean 'AUDIT_ARCH_SPARC64'? 114 | # define ARCH_NR AUDIT_ARCH_AARCH64 | ^~~~~~~~~~~~~~~~~~ ../include/seccomp.h:198:38: note: in expansion of macro 'ARCH_NR' 198 | BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, 1, 0), \ | ^~~~~~~ sbox.c:113:25: note: in expansion of macro 'VALIDATE_ARCHITECTURE' 113 | VALIDATE_ARCHITECTURE, | ^~~~~~~~~~~~~~~~~~~~~ ../include/seccomp.h:114:25: note: each undeclared identifier is reported only once for each function it appears in 114 | # define ARCH_NR AUDIT_ARCH_AARCH64 | ^~~~~~~~~~~~~~~~~~ ../include/seccomp.h:198:38: note: in expansion of macro 'ARCH_NR' 198 | BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, 1, 0), \ | ^~~~~~~ sbox.c:113:25: note: in expansion of macro 'VALIDATE_ARCHITECTURE' 113 | VALIDATE_ARCHITECTURE, | ^~~~~~~~~~~~~~~~~~~~~ Environment: Linux kernel/headers 3.10 / CentOS 7 / arm64. Fixes #6440. [1] https://github.com/torvalds/linux/commit/875cbf3e4614cfdcc7f65033e25292aec80f09c0 Reported-by: @snakethatlovesstaticlibs --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:49:12 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#6019
No description provided.