Page MenuHomeFreeBSD

libsys: Don't create or expose __realpathat
ClosedPublic

Authored by brooks on Feb 18 2025, 6:38 PM.
Tags
None
Referenced Files
F161216136: D49049.diff
Wed, Jul 1, 6:46 PM
Unknown Object (File)
Wed, Jul 1, 9:03 AM
Unknown Object (File)
Sun, Jun 28, 12:56 AM
Unknown Object (File)
Wed, Jun 10, 8:33 AM
Unknown Object (File)
May 28 2026, 9:15 PM
Unknown Object (File)
Apr 27 2026, 2:45 PM
Unknown Object (File)
Apr 23 2026, 2:51 AM
Unknown Object (File)
Apr 21 2026, 11:58 AM
Subscribers

Details

Summary

Previously, __realpathat was in libsys, but not exported from libc which
meant the stub in libc was not filtered and thus libc's copy of the
syscall was used. This broke an upcoming change to CheriBSD limiting
syscalls to libsys.

The realpath(3) implementation now uses sys_realpathat so there are no
consumers of realpathat. Switch it to PSEUDO (only _foo and sys_foo
symbols) and remove __realpathat from Symbol.map.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62504
Build 59388: arc lint + arc unit