-
Notifications
You must be signed in to change notification settings - Fork 588
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
--build
creates invalid paths with "after,$HOME" $HOME expanded
#4592
Comments
This reverts commit 4438f14. Also, partially revert related commit e4307b4 ("fix whitelist/allow in make test-utils") to keep tests working. The profiles are being generated using aliases, which are not documented nor used on the profiles in the repository. So generate them using the normal commands for consistency. See also commit dd13595 ("Revert "allow/deny help and man pages"") / PR netblue30#4502. Relates to netblue30#4410. Misc: I noticed this on issue netblue30#4592.
looks like a wild pointer to me. The only occurence of UPDATED description. |
Maybe this is helpful https://github.com/netblue30/firejail/wiki/Debugging-Firejail#advanced-troubleshooting. ASAN build would be nice too however I did not make it work so far. |
Just run
|
+1 |
nvm. I should not use mold for this stuff.
12 .rodata 00000202 0000000000001a50 0000000000001a50 00001a50 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
13 .rodata 00001260 0000000000001c60 0000000000001c60 00001c60 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
This reverts commit 4438f14. Also, partially revert related commit e4307b4 ("fix whitelist/allow in make test-utils") to keep the tests working. The profiles are being generated using aliases, which are not used on the profiles in the repository. So generate them using the normal commands for consistency. See also commit dd13595 ("Revert "allow/deny help and man pages"") / PR netblue30#4502. Relates to netblue30#4410. Misc: I noticed this on issue netblue30#4592.
Building with filedb.c:71:22: error: use of possibly-NULL ‘strdup(fname)’ where non-null expected [CWE-690] [-Werror=analyzer-possible-null-argument]
|
Description
Path handling for
firejail --build nvim
is broken.Steps to Reproduce
Steps to reproduce the behavior
LANG=C firejail --build nvim
allow ${HOME}/.local/share/nvim/site/after,/etc/xdg/nvim/after,/home/misterspoon/.config/kdedefaults/nvim/after,/home/misterspoon/.config/nvim/after/start
Expected behavior
There should be never invalid paths generated. I hope this code is not used elsewhere.
Actual behavior
site/after,/ ... nvim/after, and especially
/kdedefaults/nvim/after,
looks broken. Invalid path generated.Error: "${HOME}/.local/share/nvim/site/after,/etc/xdg/nvim/after,/home/misterspoon/.config/kdedefaults/nvim/after,/home/misterspoon/.config/nvim/after/start" is an invalid filename: rejected character: ","
Additional context
PATH contains the path to nvim installation from source.
I have a file $HOME/.local/share/nvim/site/pack/packer/start/coq_nvim/.vars/runtime/lib/python3.9/site-packages/pip/_vendor/tenacity/after.py
and
$HOME/.local/share/nvim/site/pack/packer/start/coq_nvim/.vars/runtime/lib/python3.9/site-packages/pip/_vendor/tenacity/pycache/after.cpython-39.pyc.
Environment
firejail --version
). master with commit 32fb5edChecklist
/usr/bin/vlc
) "fixes" it).https://github.com/netblue30/firejail/issues/1139
)browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.--profile=PROFILENAME
to set the right profile. (Only relevant for AppImages)Log
Output of
firejail --build nvim
The text was updated successfully, but these errors were encountered: