Skip to content
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

add PATH_FCOPY to private-lib automatically #4004

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

smitsohu
Copy link
Collaborator

@smitsohu smitsohu commented Feb 23, 2021

Essentially restores 4530462. Removing read permission on helper executables (fcopy) broke this original fix.

Now run fldd as root in order to fix #3741 without having to compromise or give up on the new permission system. It runs as root only on binaries that are not controlled by the user, and that Firejail needs to trust anyway. Also infrastructure is put in place to add more helper binaries to private-lib, should the need arise.

This pull request might be useful also for other reasons. For example, if one day we want to run the test suite with ASan/UBsan instrumentation, private-lib should now pick up all necessary libraries automatically (again).

@smitsohu smitsohu force-pushed the privatelib4 branch 3 times, most recently from 3a1402d to 5d62b15 Compare February 24, 2021 01:35
restore 4530462, but now run
fldd as root user. This became necessary because in the meantime
read permission on helper executables was removed.

Puts infrastructure in place to add other helper binaries to
private-lib as well, should the need arise.
@netblue30 netblue30 merged commit 14c5ecf into netblue30:master Feb 24, 2021
@netblue30
Copy link
Owner

all set, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: failed to run /run/firejail/lib/fcopy
2 participants