Page MenuHomeFreeBSD

libsys: Don't create or expose __realpathat
ClosedPublic

Authored by brooks on Feb 18 2025, 6:38 PM.
Tags
None
Referenced Files
F162947120: D49049.diff
Sat, Jul 18, 2:34 PM
Unknown Object (File)
Fri, Jul 3, 5:12 AM
Unknown Object (File)
Fri, Jul 3, 3:23 AM
Unknown Object (File)
Fri, Jul 3, 12:59 AM
Unknown Object (File)
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)
Jun 10 2026, 8:33 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