mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1534] nginx problem in 0.9.50 #1023
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#1023
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 @cjconstante on GitHub (Sep 6, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1534
Hi. I am using firejail version 0.9.8.1 on debian 8 64 bits and try to do the next:
I just tried to start firejail with (default) server profile and it appears this error:
Error: line 4 in the custom profile is invalid
That line says:
noblacklist /sbin
I changed by
read-only /sbin
And works.
Then, i got the same error in other line.
That line says:
read-write /var/lib/mysql/mysql.sock
I changed by:
whitelist /var/lib/mysql/mysql.sock
And does not work.
Which option should i work here?
Thanks.
@netblue30 commented on GitHub (Sep 14, 2017):
You need to update to version 0.9.50. There have been a lot of bug fixes since 0.9.8. The deb package I have on https://sourceforge.net/projects/firejail/files/firejail/ will work fine on debian 8.
@cjconstante commented on GitHub (Sep 22, 2017):
I just tried with this new version to run a nginx and i got this:
/bin/bash: /etc/init.d/nginx start: No such file or directory
I have tried several ways. I run just firejail and i check and the file is in there. I run with no blacklist, whitelist, with/without profile, etc, and always get the same...
@netblue30 commented on GitHub (Sep 25, 2017):
/etc/init.d/nginx file should be there in your filesystem, it is coming from nginx-common package. Without any sandbox, do a ls /etc/init.d and see if it is there.
There is another problem, introduced by us in 0.9.50. You have to go with a text editor in /etc/firejail/disable-common.inc and remove "blacklist /var/log" line. I put a fix in on mainline:
94bb78856b@cjconstante commented on GitHub (Sep 25, 2017):
Sure, nginx is installed. I can run it without firejail. I have noted that if i run: firejail /etc/init.d/nginx it works, but, when i try to personalize with private, profile, etc, n it doesn't work. Even, after i run that command, i go to sandbox filesystem and its in there.
@netblue30 commented on GitHub (Sep 25, 2017):
What profile are you using? Print it here. Also make sure you delete "balcklist /var/log" line from /etc/firejail/disable-common.inc.
@cjconstante commented on GitHub (Sep 25, 2017):
If i run this the nginx server works:
firejail /etc/init.d/nginx start &
[2] 55831
root@web:/etc# Reading profile /etc/firejail/nginx.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Parent pid 55831, child pid 55832
The new log directory is /proc/55832/root/var/log
Child process initialized in 63.49 ms
I used the server profile and i create a new one called nginx.profile: