commit | a69cf627a54da7add2c9f4c549d469b21cedfb1a | [log] [tgz] |
---|---|---|
author | Adam Barth <abarth@fuchsia.infra.roller.google.com> | Tue Jul 16 20:29:00 2024 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jul 16 13:32:11 2024 -0700 |
tree | d1abaa5f84ba2ee57143f847324ec24879f507c1 | |
parent | b90f05d75bded52ae16d2440b3ab23411d7106c9 [diff] |
[roll] Roll fuchsia [starnix][vfs] Prevent opening symlinks You can open a symlink with O_PATH and O_NOFOLLOW, which creates an entry in /proc/self/fd. If you try to open that entry, you encounter a magic symlink, which resolves to the original symlink. Previously, this codepath would let you open the original symlink, resulting in a kernel panic. Now, we detect this case and return ELOOP, matching Linux. Test: ProcTaskDirTest.FdOpath, ProcTaskDirTest.FdOpathSymlink Original-Fixed: b/349451694 Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1082737 Original-Revision: bae9d353768a282d47f42e62f8b4fd29e48d8b34 GitOrigin-RevId: b97d24c192097ae244ad0a8a18bab59143d2dfb3 Change-Id: I2e9878e928300cbb00d03afcce17ff929a0a3af0
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia
on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party
.