Replies: 23 comments 31 replies
-
Thanks for using a separate branch for this! Please open a PR whenever you think it's ready for review, as there were many In the PR, I can do these fixes directly in the branch as well if you want. |
Beta Was this translation helpful? Give feedback.
-
This is certainly exciting news! However, it should be noted that the birdcage project recently removed Landlock:
So ... is including Landlock possibly a bit pre-mature? Or are the existing Landlock features already worth enough to be added to Firejail? |
Beta Was this translation helpful? Give feedback.
-
OK, this is what I have in this moment:
I think I'll merge it over the weekend. |
Beta Was this translation helpful? Give feedback.
-
I'm on Debian stable, default 6.1 kernel. The previous Debian had a 5.9 kernel, but if we find a machine with a lower kernel number and is working fine, we modify the code to accept that version.
Good point! I'll push it up before seccomp!
Thanks, I'll look into it. |
Beta Was this translation helpful? Give feedback.
-
Note:
I'll put it here so I don't forget about it. We could probably redo some of the --private features using Landlock, and get rid of the previous implementation. For example: --private-etc, --private-bin, private-opt, and private-srv. I think we have in landlock kernel 6.1 everything we need. |
Beta Was this translation helpful? Give feedback.
-
Note that the initial commits in the Also, even though the branch is based on #5315, there is no attribution given Merging the branch directly as is would bring those issues in and make Considering the above, I created a Diff comparison between the branches: Note: The diff only shows the code differences between the entire branches, not |
Beta Was this translation helpful? Give feedback.
-
Cool! Let's move on your branch. I don't see it under firejail git. How do we do it? Or we can merge landlock_v3 in the existing landlock branch? Any other ideas?
We should fix it and give @ChrysoliteAzalea full attribution. I still have to put the seccomp fix brought up by @rusty-snake, maybe some other small fixes. And any fixes you guys have, just merge them in directly on the branch, and we'll talk about them on this discussion thread. |
Beta Was this translation helpful? Give feedback.
-
Ah, I had pushed that one to my user. Pushed the current version to this repository as Just let me know when you think it's ready for merging; I'd like to edit a few Changes compared to the The main change in the code is that it checks whether landlock is supported at Also, now if
Added some details to the first/main landlock commit in the branch. |
Beta Was this translation helpful? Give feedback.
-
By the way, if there are going to be multiple people committing in the same git config pull.ff only Then use git checkout landlock_v4
git pull # optional, to check if both local/remote branches have extra commits
git pull --rebase
# If there are conflicts, resolve them then run:
git add -u
git rebase --continue This makes the local Which prevents merging the branch into itself when pulling and makes
Also, make sure to not edit (amend/rebase) any commit that was already pushed Note: The above is also valid for |
Beta Was this translation helpful? Give feedback.
-
Merged on mainline! seccomp fix and some other small issues are coming. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Maybe i didnt understand. Whats the state of landlock inside Firejail? Which decisions made? |
Beta Was this translation helpful? Give feedback.
-
networking support for the Landlock security module landed in kernel 6.7: landlock: Support network rules with TCP bind and connect
|
Beta Was this translation helpful? Give feedback.
-
What does landlock do? What does it do for firejail? |
Beta Was this translation helpful? Give feedback.
-
Thanks, @rusty-snake - that‘s a very nice overview.
Yes, but how will this project proceed? Will landlock only be available as an additional optional hardening measure for the time being? Or will all existing profiles be rewritten to integrate landlock rules? |
Beta Was this translation helpful? Give feedback.
-
More
|
Beta Was this translation helpful? Give feedback.
-
Shouldn't this rather be
? |
Beta Was this translation helpful? Give feedback.
-
Because of I guess. |
Beta Was this translation helpful? Give feedback.
-
Huh? What does this precisely mean? Is this really not reversible? Let's say that I added Landlock rules to a *.local profile and comment them later again - what happens? |
Beta Was this translation helpful? Give feedback.
-
https://lore.kernel.org/landlock/20240716.yui4Iezai8ae@digikod.net/T/#u |
Beta Was this translation helpful? Give feedback.
-
https://www.phoronix.com/news/Landlock-Restrictions-Bug-Fixed Can we resrtrict further fork and keyctl syscalls? |
Beta Was this translation helpful? Give feedback.
-
https://landlock.io/talks/2024-06-06_landlock-article.pdf "Ongoing work For now, the main limitations of file access control are |
Beta Was this translation helpful? Give feedback.
-
I've just cut a branch for landlock. I'll start re-merging pull request #5315. Stay away from the branch for now, things will break! Will go live in the next release (probably January).
Relates to:
Beta Was this translation helpful? Give feedback.
All reactions