diff options
author | smitsohu <smitsohu@gmail.com> | 2021-03-25 15:14:36 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2021-03-25 17:20:08 +0100 |
commit | 2295b1c91a32a56f34209ca40a4a9c1bddbdbdd2 (patch) | |
tree | 62ba3324880de1739d070f299ce138ca91888b35 /src/firemon/caps.c | |
parent | fix hardening comment (diff) | |
download | firejail-2295b1c91a32a56f34209ca40a4a9c1bddbdbdd2.tar.gz firejail-2295b1c91a32a56f34209ca40a4a9c1bddbdbdd2.tar.zst firejail-2295b1c91a32a56f34209ca40a4a9c1bddbdbdd2.zip |
private-lib: trim ending slashes and dots
Currently pathological endings like in
/foo/bar/./. are mapped to RUN_LIB_DIR,
with the effect that the mount is skipped
because this directory always exists at
this point in time.
Even though it's harmless, it is wrong
behaviour, so handle trailing slashes and
dots before doing the mounts. Also avoids
running into an assertion if there is a trailing
slash.
Plus few small cosmetic changes to make
things more explicit.
Diffstat (limited to 'src/firemon/caps.c')
0 files changed, 0 insertions, 0 deletions