aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorLibravatar Aleksey Manevich <manevich.aleksey@gmail.com>2016-02-10 13:40:30 +0200
committerLibravatar Aleksey Manevich <manevich.aleksey@gmail.com>2016-02-10 13:40:30 +0200
commitd4e6b2e16866fa74acc5ba491e3b862e8a634dd4 (patch)
tree82c9bfb67bbf45d83fd243c7fe67cdef2818b56e /Makefile.in
parentwhitelisting ~/.pki in Firefox, Crome/Cromium, Opera (diff)
downloadfirejail-d4e6b2e16866fa74acc5ba491e3b862e8a634dd4.tar.gz
firejail-d4e6b2e16866fa74acc5ba491e3b862e8a634dd4.tar.zst
firejail-d4e6b2e16866fa74acc5ba491e3b862e8a634dd4.zip
Fix problem with relative path in storage_find function
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: touch /home/user/somefile firejail --blacklist=somefile --tracelog cat somefile Solution: keep CWD value and set it before calling realpath. In order to do this: * new wrapper for chdir call, and variable to keep CWD added. * storage_find modified to chdir before calling realpath function. * order of storage_find and orig_* calls in syscall wrappers changed, to prevent error set by calls in storage_find leak outside. * condition for calling realpath changed to include double-slash and path without initial slash.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions