mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1732] Getting Error: "/etc/rc?.d" is an invalid filename when including disable-common.inc in the firejail profile #1173
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#1173
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 @mYnDstrEAm on GitHub (Jan 14, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1732
Since recently I'm getting the following error when running
firejail firefox-esr:Error: "/etc/rc?.d" is an invalid filename
I don't get this error when commenting out the following line:
include /etc/firejail/disable-common.inc
ls -lshows that all rc folders in /etc/ have normal filenames.I'm running Debian 9.
Why am I getting this error? How to reenable disable-common.inc? Is this a bug of some other software? Is this the right place to ask about this?
@SkewedZeppelin commented on GitHub (Jan 15, 2018):
Are you on Firejail 0.9.52? As a temporary workaround you could simply comment out the line
sudo sed -i 's|blacklist /etc/rc?.d|#blacklist /etc/rc?.d|' /etc/firejail/disable-common.inc@mYnDstrEAm commented on GitHub (Jan 15, 2018):
Thanks. What parts of disable-common.inc are actually needed given that no additional directories were whitelisted? disable-common.inc seems to be almost exclusively blacklistings and setting some files to read-only: shouldn't those files be blacklisted/read-only anyway?
Please get the latest version onto the Debian repositories.
@SkewedZeppelin commented on GitHub (Jan 15, 2018):
See here about which versions are packaged in Debian.
As for your question about disable-common, it is very useful and extremely recommended to use, even if you're using a whitelist only profile. Although from how you said it "almost exclusively whitelistings", I'm not too sure what your disable-common is doing.
@mYnDstrEAm commented on GitHub (Jan 15, 2018):
Sorry, I meant to say blacklistings not whitelistings. But why is that? Shouldn't all those files be inaccessible to firefox-esr by default anyway as long as they aren't noblacklisted / whitelisted explicitly in the profile? Is it about disabling the QML image cache?
@SkewedZeppelin commented on GitHub (Jan 15, 2018):
@mYnDstrEAm if a file doens't explicitly whitelist anything it can access any and all files that aren't blacklisted. In the case of firefox-esr which is a whitelist profile, it actually can access some of those files (the ones not in ${HOME})