-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--tracelog
and --trace
override /etc/ld.so.preload
inside the sandbox
#4558
Comments
Off topic, but I wish there was a |
@topimiettinen commented on Sep 19:
This reminds me of the following article:
One of the relevant parts:
Man page: I don't know much about it, but it looks like it should be doing "randomization |
Filling memory with junk before malloc() and immediately after free() is nice and very lightweight compared to gcc/llvm MSAN or valgrind. But that's for finding bugs and not for preventing attacks utilizing weak address space layout randomization (ASLR). I'd make OpenBSD realloc() instead of trying to not to move the mapping, always move. The randomization feature relies on mmap() returning pages at really random addresses and this probably works well on OpenBSD, but on Linux this is not so true (the base is randomized only once). The cache feature could be even counterproductive to security, at least I'd try to make it as small as possible. |
Ok, after a few days' work, I came up with libaslrmalloc. Now I wish its bugs were magically fixed. |
Note: They are added in the order that the issues were fixed/closed. Note2: The issues were found through the following url: https://github.com/netblue30/firejail/issues?q=is%3Aclosed+label%3Abug+-label%3Asecurity+closed%3A%3E2021-06-29+ The date used is the release date of 0.9.66, so in theory the query should return every bug closed after that. Security-related issues are excluded because they will be added separately. Note3: All issues other than netblue30#4328 were fixed before 0.9.68rc1. Relates to netblue30#2758 netblue30#4235 netblue30#4328 netblue30#4387 netblue30#4395 netblue30#4460 netblue30#4467 netblue30#4558 netblue30#4560 netblue30#4586.
Description
--tracelog
and--trace
override/etc/ld.so.preload
inside the sandbox.Steps to Reproduce
Expected behavior
--tracelog
and--trace
append to an existing/etc/ld.so.preload
.Actual behavior
--tracelog
and--trace
override an existing/etc/ld.so.preload
.Additional context
Workaround is to
env LD_PRELOAD=…
in globals.local.Environment
Checklist
OT: We need to split-up between regressions with programs/profiles and bug in firejail itself.
Log
Output of
firejail --debug /path/to/program
The text was updated successfully, but these errors were encountered: