Closed cyrinux closed 6 years ago
I only use stable firejail releases, and don't follow its development closely between releases, so I'm not sure what they changed to cause this.
The invalid filename is related to either our --private-srv
or private-opt
flags. Firewarden passes both of those bogus filenames because (as of firejail 0.9.54) that is the only way to end up with empty /srv
and /opt
in the jail. Perhaps firejail is changing those flags to act more like --private-dev
.
The firewarden command you gave is the equivalent of running (except for the network isolation):
/usr/bin/firejail --private-srv=firewarden/2018-08-29T09:19:43+02:00 --private-opt=firewarden/2018-08-29T09:19:43+02:00 --private --private-dev chromium --no-first-run --no-default-browser-check --enforce-webrtc-ip-permission-check https://www.nsa.gov/ia/
Try running that and you should get the same error.
Try taking out --private-srv
and --private-opt
and see if either of those fixes it.
Hey @pigmonkey thanks for reply. This works without --private-srv
and --private-opt
Can you pass --private-srv
and --private-opt
without additional options and still end up with empty directories?
$ firejail --noprofile --private-srv --private-opt bash
$ ls /srv
$ ls /opt
--private-opt
and --private-srv
are invalid args without value :/
And firejail --noprofile --private-srv=nonexistentfile bash
throws the invalid filename error?
No true, this works
firejail --noprofile --private-srv=nonexistentfile bash
, with an empty /srv dir.
❯ firejail --noprofile --private-srv=nonexistentfile bash
Parent pid 30701, child pid 30702
Warning: skipping nonexistentfile for private /srv
Private /srv installed in 0.20 ms
Child process initialized in 26.68 ms
Same for opt and srv
❯ firejail --noprofile --private-srv=nonexistentfile --private-opt=nonexistentfile bash
Parent pid 31277, child pid 31278
Warning: skipping nonexistentfile for private /opt
Private /opt installed in 0.25 ms
Warning: skipping nonexistentfile for private /srv
Private /srv installed in 0.12 ms
Child process initialized in 36.31 ms
[cyril@laptop ~]$ ls /opt/
[cyril@laptop ~]$ ls /opt/
[cyril@laptop ~]$
Does 7017f485 fix it?
Yes man this fix 👍 🍺
Hi man, I get this since few day. I use arch with last firejail-git r4189.0c2cbf05-1
Any idea?