mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cache: fix trailing slash support in face of permission problems
Reported by: Johan Hendriks <joh.hendriks gmail.com> Tested by: kevans
This commit is contained in:
parent
70dfc101b6
commit
45456abc4c
1 changed files with 10 additions and 0 deletions
|
|
@ -5521,6 +5521,16 @@ cache_fplookup_failed_vexec(struct cache_fpl *fpl, int error)
|
|||
dvp = fpl->dvp;
|
||||
dvp_seqc = fpl->dvp_seqc;
|
||||
|
||||
/*
|
||||
* TODO: Due to ignoring slashes lookup will perform a permission check
|
||||
* on the last dir when it should not have. If it fails, we get here.
|
||||
* It is possible possible to fix it up fully without resorting to
|
||||
* regular lookup, but for now just abort.
|
||||
*/
|
||||
if (cache_fpl_istrailingslash(fpl)) {
|
||||
return (cache_fpl_aborted(fpl));
|
||||
}
|
||||
|
||||
/*
|
||||
* Hack: delayed degenerate path checking.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue