mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #2152] [CLOSED] Improve profile handling #4185
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#4185
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/2152
Author: @crass
Created: 10/9/2018
Status: ❌ Closed
Base:
master← Head:improve-profile-handling📝 Commits (10+)
5d36986rename expand_home -> expand_macros to better reflect usage and remove unneeded homedir argument.36c04dbAllow specifying a profile "name" with the profile option (eg. --profile=firefox).1990103Update man pages and usage to reflect --profile enhancement.36281efallow overriding of disable-mnt with noblacklist - #215462d1e5aFix file.profile86267d2Harden file.profilee16f469Create QMediathekView985ed28Update disable-programs.incdcc05a5Update firecfg.configf51e3b4Harden strings.profile📊 Changes
79 files changed (+1219 additions, -114 deletions)
View changed files
📝
README(+15 -2)📝
README.md(+41 -1)📝
RELNOTES(+14 -0)📝
configure(+9 -9)📝
configure.ac(+1 -1)➕
etc/QMediathekView.profile(+54 -0)➕
etc/aria2c.profile(+45 -0)➕
etc/artha.profile(+46 -0)➕
etc/authenticator.profile(+49 -0)➕
etc/bsdcat.profile(+6 -0)➕
etc/bsdcpio.profile(+6 -0)📝
etc/bsdtar.profile(+1 -1)➕
etc/checkbashisms.profile(+49 -0)📝
etc/claws-mail.profile(+3 -0)➕
etc/desktop.profile(+44 -0)➕
etc/devilspie.profile(+49 -0)➕
etc/devilspie2.profile(+49 -0)📝
etc/disable-common.inc(+10 -8)📝
etc/disable-passwdmgr.inc(+1 -0)📝
etc/disable-programs.inc(+15 -2)...and 59 more files
📄 Description
The first commit is not strictly necessary, but it makes the code easier to understand because
expand_homewas really expanding all the macros.The second commit allows specifying
--profile=firefoxon the command line and doing what you'd expect. That is looking first in.config/firejailforfirefox.profile, and if not there checking${CFG}/firefox.profile.The third commit enhances the
includedirective to allow specifying just the filename component of a profile path and searching the userdir and then system config dir for the file to include.And the fourth commit did
sed -i 's#include /etc/firejail/#include #' etc/*to use the behavior of the third commit. This makes it simple to "hook" various include directives without needing write access toSYSCONFDIR, which is especially useful forglobals.local.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.