-
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
Paths in app profiles with ^
and !
wildcards in them are not expanded
#3862
Comments
|
For me this raises two questions:
|
@Snugface commented on Jan 1:
I think it would be simpler to just fix globbing to ignore @rusty-snake commented 10 hours ago:
PCRE is quite large/complex; POSIX ERE already supports If you really want to use an external implementation, I'd suggest using a
This one seems to be more common (it's used by And there's a fork that's used by Ruby, though on Arch it only exists in the |
You're right, however for me:
|
$ ldd /usr/bin/firejail
linux-vdso.so.1 (0x00007ffd92b8c000)
libapparmor.so.1 => /usr/lib/libapparmor.so.1 (0x00007fee1f8b0000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fee1f6e0000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fee1f6b8000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fee1fa70000) |
|
I see, it's a dependency of SELinux, but I don't really get what exactly is |
Just to clear what causes the different |
Ah alright; I thought that you were arguing in favor of using PCRE directly. |
Bug and expected behavior
^
and!
in them when reading profile files.[^.]*/
and*!(.)/
Reproduce
Steps to reproduce the behavior:
~/.config/firejail/firefox-common.profile
after the lineinclude whitelist-var-common.inc
:firejail firefox
Environment
linux-hardened
), last updated ~10 days ago# aa-status
anywhereAdditional context
~/parent_dir
, and whitelist theparent_dir
itself and all files in it.Glob pattern
blacklist ${HOME}/parent_dir/*/
was used. This also blacklisted${HOME}/parent_dir/..
which is the$HOME
itself. Which broke firefox and it failed to execute.[^.]*/
and.[^.]*/
wildcards instead of*/
.The two glob patterns list all regular and
.
directories except/..
if used directly from a bash shell(such as withecho [^.]*/
) However, upon starting firefox I get:Error: "${HOME}/parent_dir/[^.]*/" is an invalid filename: rejected character: "^"
^
and!
work - it's just important for me to be able to use wildcards to blacklist/whitelist all child directories, but not all files, in a specific parent directory. So if you know a specific recipe for this - please, share it. I'd be glad to tip you some $10-20 if there will be a workaround.Checklist
--profile=PROFILENAME
is used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.debug output
The text was updated successfully, but these errors were encountered: