mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #289] [MERGED] Fix problem with relative path in storage_find function #3585
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#3585
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/289
Author: @manevich
Created: 2/10/2016
Status: ✅ Merged
Merged: 2/11/2016
Merged by: @netblue30
Base:
master← Head:patch-2📝 Commits (1)
d4e6b2eFix problem with relative path in storage_find function📊 Changes
1 file changed (+55 additions, -22 deletions)
View changed files
📝
src/libtracelog/libtracelog.c(+55 -22)📄 Description
storage_find function fails on relative path, so nothing reported to log when blacklisted file accessed by relative path.
This is because CWD is NULL when realpath function called.
How to reproduce:
Solution: keep CWD value and set it before calling realpath. In order to do this:
to prevent error set by calls in storage_find leak outside.
and path without initial slash
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.