mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #2158] [MERGED] Add support for rudimentary conditionals in profiles #4190
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#4190
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/2158
Author: @crass
Created: 10/10/2018
Status: ✅ Merged
Merged: 10/17/2018
Merged by: @crass
Base:
master← Head:profile_conditional📝 Commits (2)
dbf8d44Add support for rudimentary conditionals in profiles, currently only the HAS_APPIMAGE conditional is supported.b9e7412Update documentation for profile conditionals.📊 Changes
3 files changed (+100 additions, -0 deletions)
View changed files
📝
etc/whitelist-common.inc(+1 -0)📝
src/firejail/profile.c(+87 -0)📝
src/man/firejail-profile.txt(+12 -0)📄 Description
This was suggested in #2147. The feature is designed to be extensible, though currently only
HAS_APPIMAGEis supported. The conditional profile line is of the form?+<conditional>+<normal profile line>. I've included inwhitelist-common.incthe line?HAS_APPIMAGE whitelist ${HOME}/.local/share/appimagekit, which demonstrates usage of this feature and solves #2147.It should be noted that conditionals cannot be used for
quietorincludeprofile lines. There is appropriate error messaging if the user tries this.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.