mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6305] [MERGED] landlock: amend empty functions and comments #5945
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#5945
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/6305
Author: @kmk3
Created: 4/10/2024
Status: ✅ Merged
Merged: 4/11/2024
Merged by: @netblue30
Base:
master← Head:landlock-amend-empty📝 Commits (1)
a05ae97landlock: amend empty functions and comments📊 Changes
3 files changed (+17 additions, -5 deletions)
View changed files
📝
src/firejail/firejail.h(+0 -2)📝
src/firejail/landlock.c(+13 -1)📝
src/firejail/profile.c(+4 -2)📄 Description
Changes:
HAVE_LANDLOCKll_add_profile)also be empty when
HAVE_LANDLOCKis not definedThis amends commit
8259f66e1("landlock fix for old kernel versions",2024-04-06).
For clarity, landlock-common.inc is included by default.profile and the
issue that the aforementioned commit fixes is that if profile.c is built
without the part that parses landlock commands (that is, when
HAVE_LANDLOCKis not defined), using default.profile would causefirejail to abort due to "invalid lines".
Note that the issue would only occur when firejail is built with an
older kernel (or with --disable-landlock), not when simply running on an
older kernel.
See also commit
b02a7a337("landlock: remove empty functions",2023-12-07).
Relates to #6078.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.