mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3050] Opera FireJail-profile network problem #1917
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1917
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Nov 22, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3050
Hi!
How can I fix that here:
firejail --private --dns=84.200.69.80 --dns=84.200.70.40 opera
Reading profile /etc/firejail/opera.profile
Reading profile /etc/firejail/opera-base.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 19907, child pid 19908
DNS server 84.200.69.80
DNS server 84.200.70.40
Child process initialized in 151.94 ms
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
While handling crash: can't execute crash inspector.
Parent is shutting down, bye...
opera.profile:
What must I add to my profile to fix "Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted"?
EDIT by @rusty-snake: code-block for profile.
@rusty-snake commented on GitHub (Nov 22, 2019):
Probably you need to drop
caps.drop all.@rusty-snake commented on GitHub (Nov 22, 2019):
@rusty-snake commented on GitHub (Nov 22, 2019):
caps.keep CAPSmean remove all caps except of the once listed in CAPS.@ghost commented on GitHub (Nov 22, 2019):
I have also problems to run a video-slot game on online casino.
The game opened but no connection to game server.
Is there a way to fix that in the Opera.profile, maybee CAPS?
@ghost commented on GitHub (Nov 22, 2019):
without FireJail, the online game works.
@rusty-snake commented on GitHub (Nov 22, 2019):
Try removing all
caps*lines. Probably it is--dns=...maybe this site wants ISP-DNS. Does it work withfirejail --noprofile opera? What firejail verison do you use?@ghost commented on GitHub (Nov 22, 2019):
firejail --noprofile --private --dns=84.200.69.80 --dns=84.200.70.40 opera
loads...
but same problem.
I suppose it could also be in connection with my Opera AppArmor profile.
Which CAPS do I need for network in my Opera FireJail profile? Idea?
In Opera AppArmor profile:
Maybee I did a mistake or forgot to add something.
firejail version 0.9.58.2
Compile time support:
- AppArmor support is enabled
- AppImage support is enabled
- chroot support is enabled
- file and directory whitelisting support is enabled
- file transfer support is enabled
- networking support is enabled
- overlayfs support is enabled
- private-home support is enabled
- seccomp-bpf support is enabled
- user namespace support is enabled
- X11 sandboxing support is enabled
@rusty-snake commented on GitHub (Nov 22, 2019):
see
man capabilitiesfor what caps are and which exists. but I don't think that caps are the issue here.IPv6?
@ghost commented on GitHub (Nov 22, 2019):
I don't use IPv6 so I deny it in Opera AppArmor profile:
@ghost commented on GitHub (Nov 22, 2019):
I don't know what this error means:
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
While handling crash: can't execute crash inspector.
Must I add network protocol/network-caps to my Opera FireJail profile?
@rusty-snake commented on GitHub (Nov 22, 2019):
The IPv6 idea was that the site maybe requires ipv6.
The error message looks like the opera (chromium) sandbox conflicts with AA or FJ.
@Vincent43 commented on GitHub (Nov 24, 2019):
Could you try disabling it? In general mixing external apparmor profile with firejail is not supported and usually leads to trouble. You can use
--apparmoroption to load generic apparmor profile as a companion to firejail. You may also use your external apparmor profile without firejail.@ghost commented on GitHub (Nov 28, 2019):
...I have it:
firejail --noprofile --nogroups --private=/path-to/ --private-dev --private-tmp --ipc-namespace --machine-id --noroot --caps.drop=all --seccomp --nosound --no3d opera --no-sandbox
Must be changed:
--private=/path-to/
Any path, for example:
/home/user/Opera-Jail/
Re-create the path first:
Example:
/home/user/Opera-Jail/
@rusty-snake commented on GitHub (Dec 23, 2019):
@trancemind65
I'm closing here due to inactivity, please fell free to reopen if you have more questions.