[roll] Roll fuchsia [starnix] Implement TIOCGPTPEER ioctl in devpts

This implements the TIOCGPTPEER ioctl for primary PTYs. It allows safely
obtaining a replica PTY file descriptor without performing path lookup,
which is useful for avoiding race conditions and bypasses mount
namespace restrictions.

When opening /dev/ptmx, we record the replica's NamespaceNode on the
primary PTY file object directly. This allows TIOCGPTPEER to open a file
descriptor to the replica without performing path resolution.

Test: Added Pty.IoctlTIOCGPTPEER to terminal_test.cc.
Test: fx test fuchsia-pkg://fuchsia.com/starnix_syscalls_cpp_tests#meta/terminal_test.cm --test-filter "*IoctlTIOCGPTPEER*"
Original-Original-Fixed: 525046044
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1679056
Original-Original-Revision: 9992f2c5e95ed9cb4887ff18ca84503a50abe804
GitOrigin-RevId: 1fef9bd818e309f526b400ca4b7a70ee86db2b01
Change-Id: I1bce6402d88be2552b994a19bf43f21872025f8c
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1697554
Cr-Commit-Position: refs/heads/main@{#196375}
1 file changed
tree: 9da82ac70111fd80791abcbaf3613d2c6ada9483
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

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 in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.