mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #126] With v. 0.9.34 services don't start anymore #82
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#82
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 @curiosity-seeker on GitHub (Nov 9, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/126
I have unbound and dnscrypt-proxy sandboxed with Firejail. Unfortunately, with v. 0.9.34 those services don't start anymore with my old self-made profile. But even with the default server.profile it doesn't work. Example:
And for unbound:
Both services start normally once un-firejailed. So something has changed in v. 0.9.34 but I can't figure out what exactly.
@netblue30 commented on GitHub (Nov 9, 2015):
My guess would be --private-dev. Can you please comment it out from server.profile? Thanks
@curiosity-seeker commented on GitHub (Nov 9, 2015):
Okay, I tried that for dnscrypt-proxy but to no avail. I got the same systemctl status message as above.
@netblue30 commented on GitHub (Nov 9, 2015):
What version did you have installed before 0.9.34?
@curiosity-seeker commented on GitHub (Nov 9, 2015):
0.9.32
@curiosity-seeker commented on GitHub (Nov 9, 2015):
And the same problem also for unbound with private-dev commented out.
@netblue30 commented on GitHub (Nov 9, 2015):
One problem found: I was missing /dev/log from private-dev. But this is not what crashes you.
@netblue30 commented on GitHub (Nov 10, 2015):
Found it!
The only thing that changed is seccomp. chroot syscall was added to the default list. In your profiles, replace "seccomp" line with "seccomp.drop mount,umount2,ptrace,kexec_load,kexec_file_load,open_by_handle_at,init_module,finit_module,delete_module,iopl,ioperm,swapon,swapoff,syslog,process_vm_readv,process_vm_writev,sysfs,_sysctl,adjtimex,clock_adjtime,lookup_dcookie,perf_event_open,fanotify_init,kcmp,add_key,request_key,keyctl,uselib,acct,modify_ldt,pivot_root,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,mbind,get_mempolicy,set_mempolicy,migrate_pages,move_pages,vmsplice,perf_event_open" - it is the default list from man page without "chroot".
I've tested only unbound on Antergos (Arch). If it's working on your setup, I'll add default profiles for both unbound and dnscrypt-proxy
@curiosity-seeker commented on GitHub (Nov 10, 2015):
Hurra! This really works - both for dnscrypt-proxy and unbound. And btw., private-dev is no problem here.
Thanks a lot, netblue30, you're my hero ;-)
@netblue30 commented on GitHub (Nov 10, 2015):
I've noticed that log messages from unbound didn't go into syslog. It turned out private-dev didn't create a /dev/log entry in /dev directory - I've fixed it for the next version. I'll put default profiles in for unbound and dnscrypt-proxy , thanks for the bug!