mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3972] Add sara LSM library for W^X protection #2484
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#2484
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?
Originally created by @osevan on GitHub (Feb 11, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3972
https://sara.smeso.it/en/latest/
Sara library exists too
https://github.com/smeso/libsara
Maybe useful for firejail sandbox
Thanks and
Best regards
@topimiettinen commented on GitHub (Feb 11, 2021):
Sara (or something like it) would be nice, though kernel support is not merged yet. Currently Firejail has a poor man's version of it with
memory-deny-write-execute(mdwx). This is implemented with seccomp, so it's only capable of blockingmprotect()andmmap()system calls withPROT_EXEC|PROT_WRITEflag combination as well asmemfd()system call. Because Sara would be part of the kernel, it can do further checks including the history of the pages. Firejail profiles can also complement Sara (and mdwx) withnoexecandread-onlyoptions, by making sure that also file systems are mounted with W^X logic: no file system is executable which is also writable. Sara also tries to be compatible with trampolines without giving up entire protection: with seccomp it's not possible to identify the use case. Some class of programs won't be able to use Sara or mdwx, for example Java and probably they are the same programs which can't usememory-deny-write-execute.When/if Sara gets merged, Firejail could simply enable it with
memory-deny-write-executeautomatically or with a new option(s) if finer control is needed.@osevan commented on GitHub (Feb 11, 2021):
Sara is already used by many guys...
We need a solutions easy one at compile time.--with-sara option and in profiles for specific apps .
Thanks and
Best regards
@Vincent43 commented on GitHub (Feb 12, 2021):
Does sara patches even compile against latest kernels? I didn't saw updated version for many months.
@osevan commented on GitHub (Feb 12, 2021):
Author need update patch.
:-(
@rusty-snake commented on GitHub (Feb 26, 2023):
S.A.R.A. had no releases/development activity for around 5 years. Closing for now.