mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6187] [MERGED] landlock: split .special into .makeipc and .makedev #5866
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#5866
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/6187
Author: @kmk3
Created: 2/2/2024
Status: ✅ Merged
Merged: 2/5/2024
Merged by: @kmk3
Base:
master← Head:landlock-add-dev📝 Commits (1)
f70ffbelandlock: split .special into .makeipc and .makedev📊 Changes
12 files changed (+55 additions, -23 deletions)
View changed files
📝
contrib/syntax/lists/profile_commands_arg1.list(+2 -1)📝
etc/inc/landlock-common.inc(+1 -1)📝
etc/templates/profile.template(+2 -1)📝
src/bash_completion/firejail.bash_completion.in(+5 -1)📝
src/firejail/firejail.h(+4 -3)📝
src/firejail/landlock.c(+11 -4)📝
src/firejail/main.c(+4 -2)📝
src/firejail/profile.c(+6 -2)📝
src/firejail/usage.c(+2 -1)📝
src/man/firejail-profile.5.in(+8 -3)📝
src/man/firejail.1.in(+8 -3)📝
src/zsh_completion/_firejail.in(+2 -1)📄 Description
As discussed with @topimiettinen[1], it is unlikely that an unprivileged
process would need to directly create block or character devices. Also,
landlock.specialis not very descriptive of what it allows.So split
landlock.specialinto:landlock.makeipc: allow creating named pipes and sockets (which areusually used for inter-process communication)
landlock.makedev: allow creating block and character devicesMisc: The
makedevname is based onnodevfrom mount(8), which makesmount not interpret block and character devices.
ipcwas suggested by@rusty-snake[2].
Relates to #6078.
[1] https://github.com/netblue30/firejail/pull/6078#pullrequestreview-1740569786
[2] https://github.com/netblue30/firejail/pull/6187#issuecomment-1924107294
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.