mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6125] [MERGED] landlock: move commands into profile and add landlock.enforce #5836
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#5836
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/6125
Author: @kmk3
Created: 12/11/2023
Status: ✅ Merged
Merged: 12/21/2023
Merged by: @netblue30
Base:
master← Head:landlock-enforce📝 Commits (4)
19e1082landlock: expand simple macros in commandsf0dc85elandlock: sort --landlock commands5679d10landlock: avoid landlock syscalls before ll_restrict760f50flandlock: move commands into profile and add landlock.enforce📊 Changes
15 files changed (+91 additions, -153 deletions)
View changed files
📝
contrib/syntax/lists/profile_commands_arg0.list(+1 -1)📝
contrib/syntax/lists/profile_commands_arg1.list(+0 -1)➕
etc/inc/landlock-common.inc(+39 -0)📝
etc/profile-a-l/default.profile(+2 -0)📝
etc/templates/profile.template(+7 -0)📝
src/bash_completion/firejail.bash_completion.in(+1 -1)📝
src/firejail/firejail.h(+1 -3)📝
src/firejail/landlock.c(+12 -57)📝
src/firejail/main.c(+3 -17)📝
src/firejail/profile.c(+3 -18)📝
src/firejail/sandbox.c(+4 -11)📝
src/firejail/usage.c(+1 -2)📝
src/man/firejail-profile.5.in(+4 -11)📝
src/man/firejail.1.in(+12 -29)📝
src/zsh_completion/_firejail.in(+1 -2)📄 Description
Changes:
etc/inc/landlock-common.inc
Instead of hard-coding the default commands (and having a separate
command just for /proc), move them into a dedicated profile to make it
easier for users to interact with the entries (view, copy, add ignore
entries, etc).
Only enforce the Landlock commands if --landlock.enforce is supplied.
This allows safely adding Landlock commands to (upstream) profiles while
keeping their enforcement opt-in. It also makes it simpler to
effectively disable all Landlock commands, by using
--ignore=landlock.enforce.Relates to #6078.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.