mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1564] Firetools GUI incorrectly reporting Seccomp & Protocols as disabled #1039
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#1039
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 @Irvinehimself on GitHub (Sep 19, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1564
With reference to this post on the Arch Linux forums, the Firetools GUI appears to be incorrectly reporting Seccomp & Protocols as disabled.
Os: Arch Linux
Kernels: linux-hardened 4.13.2, linux-hardened-apparmor 4.13.2
Desktops: xfdesktop 4.12.4-1 , (also tested with a stand alone openbox 3.6.1-3)
Firejail: firejail-apparmor 0.9.50-1
Firectl: firectl 1.0-1
Firetools: firetools 0.9.46-1
Running:
I get:
Which, I am reliably informed, shows that “Firejail is clearly using Seccomp filters”, yet the Firetools GUI reports both Seccomp and Protocols as being disabled.
A simple test using the VLC profile shows that Protocols is in fact enabled and working: With protocol unix,inet,inet6,netlink I am able to search/download subtitles; on the other hand, with protocol unix, the search/download plug-in fails.
Similarly, enabling/disabling the seccomp filter in the Wireshark profile produces the following:
Seccomp commented out:
Seccomp un-commented:
If you need any more information or would like me to run further tests, I would be glad to help.
Best regards and thanks for the good work
Irvine
@Fred-Barclay commented on GitHub (Sep 19, 2017):
G'day @Irvinehimself
Just to make sure I've understood the situation properly:
Seccomp is in fact enabled.
Firejail reports that seccomp is enabled.
Firetools reports that seccomp is disabled.
Is that right?
@Irvinehimself commented on GitHub (Sep 19, 2017):
Yes,that appears to be the case. Looking at the debug output, the seccomp filters appear to be enabled. Additionally, the quick and dirty test with the VLC and Wireshark profiles also indicate that both Protocols and Seccomp are enabled, yet the Firetools GUI says they are disabled.
For example, copy/pasting from the Firetools GUI
Irvine
@Irvinehimself commented on GitHub (Sep 19, 2017):
I just realised that the above Firetools GUI example uses a conky profile which you do not have. So, in case you need to examine it, I am attaching it here.
PS
If you wish to add it to the official collection, feel free. (Note it is fairly restrictive, but could do with some tightening up.)
conky.zip
@SkewedZeppelin commented on GitHub (Sep 19, 2017):
Can you
pacman -S checksecandsudo checksec --proc-all? Take a look and see if there is any process with seccomp, if there is seccomp is working. Now if you then runfiremon --seccompand the output is all zeroes, can you try running again as root? Any difference? If not then something is indeed broken.Also I've added your Conky profile
807ec197d3, thanks!@Irvinehimself commented on GitHub (Sep 19, 2017):
Okay, I have run the tests you asked and attached the zipped output. I don't know if it helps, but I also include the output from firejail --list
In summary, the firejailed items appear to be using seccomp-bpf. There was a slight hitch comparing sudo firemon --seccomp with firemon --seccomp. Basically, I use hidepid so firemon can only be run as root. If it matters I will uninstall hidepid. Anyway, firemon shows Seccomp: 2 for everything except Opera, which, I believe, use its own Seccomp sandbox.
Edit
In particular, for comparison with the above copy/paste of the Firetools GUI, I would draw your attention to
Hope this helps
Irvine
FirejailCheckSeccomp.zip
@SkewedZeppelin commented on GitHub (Sep 19, 2017):
@Irvinehimself afaik hidepid isn't recommended anymore, and has always broken many things.
But if you had hidepid enabled and you were running firetools without root could that of been the problem?
@Irvinehimself commented on GitHub (Sep 19, 2017):
I just un-installed hidepid, (and rebooted,) and yes, it was the cause of the problem. There should be a warning about hidepid in the Arch-Wiki, it's caused me other problems in the past, and I will not be re-installing it.
I apologise for any problems and wish you all the best
Irvine