mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6228] [MERGED] landlock: use "landlock.fs." prefix in filesystem commands #5885
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#5885
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/6228
Author: @kmk3
Created: 2/28/2024
Status: ✅ Merged
Merged: 2/29/2024
Merged by: @netblue30
Base:
master← Head:landlock-add-fs📝 Commits (2)
1758765landlock: add _fs prefix to filesystem functions9cfeb48landlock: use "landlock.fs." prefix in filesystem commands📊 Changes
12 files changed (+101 additions, -101 deletions)
View changed files
📝
contrib/syntax/lists/profile_commands_arg1.list(+5 -5)📝
etc/inc/landlock-common.inc(+28 -28)📝
etc/templates/profile.template(+5 -5)📝
src/bash_completion/firejail.bash_completion.in(+5 -5)📝
src/firejail/firejail.h(+5 -5)📝
src/firejail/landlock.c(+10 -10)📝
src/firejail/main.c(+10 -10)📝
src/firejail/profile.c(+10 -10)📝
src/firejail/usage.c(+5 -5)📝
src/man/firejail-profile.5.in(+5 -5)📝
src/man/firejail.1.in(+8 -8)📝
src/zsh_completion/_firejail.in(+5 -5)📄 Description
Since Landlock ABI v4 it is possible to restrict actions related to the
network and potentially more areas will be added in the future.
So use
landlock.fs.as the prefix in the current filesystem-relatedcommands (and later
landlock.net.for the network-related commands) tokeep them organized and to match what is used in the kernel.
Examples of filesystem and network access flags:
LANDLOCK_ACCESS_FS_EXECUTE: Execute a file.LANDLOCK_ACCESS_FS_READ_DIR: Open a directory or list its content.LANDLOCK_ACCESS_NET_BIND_TCP: Bind a TCP socket to a local port.LANDLOCK_ACCESS_NET_CONNECT_TCP: Connect an active TCP socket to aremote port.
Relates to #6078.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.