mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #7109] [MERGED] build: fix empty lists in syscall.c breaking compilation #6320
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#6320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/7109
Author: @kmk3
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/20/2026
Merged by: @kmk3
Base:
master← Head:fix-syscall-empty-lists📝 Commits (1)
5318a1cbuild: fix empty lists in syscall.c breaking compilation📊 Changes
1 file changed (+72 additions, -44 deletions)
View changed files
📝
src/lib/syscall.c(+72 -44)📄 Description
If no syscalls are defined (such as with an older kernel) inside of a
.listelement, then compilation breaks due to a syntax error:For example,
SYS_memfd_createandSYS_memfd_secretare apparentlynot defined on Linux 3.8, which is used on 32-bit x86 Chromebooks:
Also, syscall lists cannot be empty (
""), so ensure that__dummy_syscall__appears in every list as the last element forsimplicity.
This makes every non-dummy syscall string in the source code end with
,(including the last item, which makes sorting them easier) andremoves the need for checking all syscall macros in each list before
adding
__dummy_syscall__.Related commits:
34ee8e03f("Seccomp: system call grouping and call numbers",2017-08-06)
88a75a650("add a new option--debug-syscall-groups- part 1",2026-01-31) / PR #7049
a3f352521("update system call groups - part 3", 2026-01-18) / PR#7034
Fixes #7108.
Reported-by: @Zopolis4
Cc: @topimiettinen
Cc: @pierretom
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.