commit | b5464b7ce00d13209504968a1161c94fe61da9d6 | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <[email protected]> | Tue Aug 09 21:22:40 2022 +0000 |
committer | Chromeos LUCI <[email protected]> | Wed Aug 10 15:41:32 2022 +0000 |
tree | 2c7fbae3490573a0292d6a29b44f767f217685ea | |
parent | 45e2dd6f2d40b817d2d47b056c8a91b14a99bcb1 [diff] [blame] |
minijail: Expand is_canonical_path. Some Minijail invocations use trailing slashes in -b paths. Since these trailing slashes are not a risk symlink-wise, allow them for now while we clean them up. BUG=b:241137716 TEST=New unit tests. TEST=login.Chrome, arc.Boot, security.Minijail*. Change-Id: I8e49e5f551ed9d4ef61b38e62577183d36779030 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minijail/+/3820909 Commit-Queue: Jorge Lucangeli Obes <[email protected]> Reviewed-by: Ben Scarlato <[email protected]> Tested-by: Jorge Lucangeli Obes <[email protected]> Reviewed-by: Allen Webb <[email protected]>
diff --git a/system.h b/system.h index fb351b4..11b7030 100644 --- a/system.h +++ b/system.h
@@ -69,6 +69,7 @@ * -Absolute. * -No symlinks. * -No /./, /../, or extra '/'. + * -Single trailing '/' is OK. */ bool is_canonical_path(const char *path);